星期三, 1月 06, 2010

Flex Array Insert Function ( spliced )

var vegetables:Array = new Array("spinach",
"green pepper",
"cilantro",
"onion",
"avocado");

var spliced:Array = vegetables.splice(2, 2);
trace(vegetables); // spinach,green pepper,avocado
trace(spliced); // cilantro,onion

vegetables.splice(1, 0, "cilantro", "onion");
trace(vegetables); // spinach,cilantro,onion,green pepper,avocado


http://livedocs.adobe.com/flex/3/langref/Array.html#splice%28%29

星期五, 11月 27, 2009

Amazon S3 crossdomain.xml

Step1.
Use S3 Firefox Organizer to login your s3 account

Step2.
Create a [bucket](folder under your s3 root)

Step3.
Upload crossdomain.xml to this [bucket]

Step4.
Right click the crossdomain.xml and select "Edit ACL"

Step5.
Make "Everyone Read" checked



Step6.
Now you can access crossmain.xml

http://[bucketname].s3.amazonaws.com/crossdomain.xml

星期四, 9月 24, 2009

IPhone 一次寄送多張照片

Step1 選擇照片



Step2 進入相機膠卷或是其他相簿


Step3 選左下角的箭頭




Step4 選取照片(可以點很多張)



Step5 點選共享


完成!