Pay for Hesitation

Pages

2011年4月8日 星期五

AS3 flickr API 

先申請Flickr API Key, non-commercial就可以了.

這個下方有列出很多可用的API

我是用這個

這個library會用到as3corelib, 所以先裝一下

這個人為as3flickrlib寫了一個example

從上面這個網頁抓一下他的 flickrGrabber class
trace 他的code,再比對一下 http://www.flickr.com/services/api/
大概就知道怎麼用或hack as3flickrlib了...



BTW, 中文的keyword query,
必須先將query string用encodeURI()做編碼再送UrlRequest,否則flickr會回傳查無結果。
(這部分要感謝卡卡米教教!! :D)
下面是兩篇有用的參考:

要求Flickr在收到search request時丟回Photo list 的Thumbnail urls
http://www.flickr.com/services/api/flickr.photos.search.html
有個 extras (Optional) 參數
把"url_t" assign給extras, flickr就會在search result中加上<url_t>這個tag, 並且把 thumbnail url 內嵌在裡面丟回來。



2011年3月16日 星期三

用 js 完成 Flash 的右鍵事件

http://www.uza.lt/2007/08/19/solved-right-click-in-as3/

2011年3月13日 星期日

Archived Flash Player versions

http://kb2.adobe.com/cps/142/tn_14266.html

2011年3月9日 星期三

Flash builder 4 + subclipse error

http://blog.kinrou.com/2010/03/31/flash-builder-4-subclipse-error/


After installing subclipse flash builder will nag you every time you launch it with a pop up window containing this error message.
Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
The solution is rather simple go to the Flash builder preference and make your way to Team->SVN.
Under Client interface choose switch to SVNKit(PureJava).

2011年2月14日 星期一

A rest for your SWF

試過了, 可以work.
好用的trick!


http://imagineric.ericd.net/?p=353
Well, it works for a SWF, but if you’re deploying a projector it doesn’t want to work correctly. It loads nothing in the projector’s viewport. It works if you launch the SWF as a standalone or in a browser.

2011年1月19日 星期三

Uniquely random number array generation

http://ticore.blogspot.com/2011/01/as3-unique-random-number.html

三招都很cool!
尤其第三招用了Array.RETURNINDEXEDARRAY會回傳不重覆index array的特性.
超酷!!


Array.RETURNINDEXEDARRAY的用法可參考下面這篇~
http://blogs.adobe.com/actionscriptdocs/tag/returnindexedarray



Ticore大大還用Array.RETURNINDEXEDARRAY
實做簡潔的連續整數(0-n)array
http://ticore.blogspot.com/2011/01/as3-fast-way-generate-integer-sequence.html

Trick on iterating array concatenation

nice trick!!
http://blog.eddie.com.tw/2011/01/18/faster-array-concatenation-in-as3/

array1.push.apply( array1, array2);


2011年1月12日 星期三

Javascript Detect Device and Browser

介紹:http://etrex.blogspot.com/2011/01/javascript-detect-device-and-browser.html

DEMO:http://cgm.cs.ntust.edu.tw/etrex/etrexJs/GetDevice/detect.html

這是我最近的心得

2011年1月9日 星期日

HashMap in ActionScript

2011年1月8日 星期六

Flex to MySQL

我回來了~
研究用到, 最近在寫Facebook和Plurk的AP
重學 Flex/ActionScript 了
請多指教~ XD
原來 Flex Builder 3 升級為 Flash Builder 4 / Flex SDK 4.1 了!

Flash Builder Form to MySQL


PHP - MySQL - Flex 3 Client-Server Application