June 19, 2008

[Flash] fileRef.Download()


分享


照慣例,一切有關阿宅寫程式的文章,都藏到裡面去。

正在寫有關下載圖片的功能,AS3裡面有個很好用的 fileRef.Download(),
可以下載指定位址的網路資料,
不過沒想到真的去用的時候,對話框是正常跳出了,
但是按下確定儲存以後卻沒有任何檔案真的被存下來!?

查了一下資料: 這裡
原來是一個古老的問題,2006年就有人問了。

總之,你只要把
var fileRef:FileReference = new FileReference();
的這一段宣告,放到 function 外面就ok了。

沒仔細看是什麼神妙的原因,有興趣研究的人再來分享心得吧。










0 TrackBacks

Listed below are links to blogs that reference this entry: [Flash] fileRef.Download().

TrackBack URL for this entry: http://www.dab.idv.tw/blog/dab-mt-tb-dab.cgi/725



更多同類文章看這裡: [ 宅˙Geek ] [ 浮累許。Flash ] [ 貼寶˙ClipBoa ]   
由 dAb 發表於 June 19, 2008 10:57 PM


60 Comments

[1] Posted by: AIR MAX on September 21, 2013 7:46 PM

Actually that plan b movie looks pretty good, I am leaving your site at this point and going to look at IMDB and read about plan B nike Air max binnxshop.com.

[2] Posted by: XRumerTest on February 14, 2015 1:08 PM

Hello. And Bye.

[3] Posted by: XRumerTest on February 14, 2015 1:08 PM

Hello. And Bye.

[4] Posted by: XRumerTest on February 14, 2015 1:10 PM

Hello. And Bye.

[5] Posted by: XRumerTest on February 14, 2015 4:56 PM

Hello. And Bye.

[6] Posted by: XRumerTest on February 15, 2015 3:46 PM

Hello. And Bye.

[7] Posted by: XRumerTest on February 15, 2015 3:55 PM

Hello. And Bye.

[8] Posted by: XRumerTest on February 15, 2015 3:56 PM

Hello. And Bye.

[9] Posted by: XRumerTest on February 15, 2015 9:40 PM

Hello. And Bye.

[10] Posted by: XRumerTest on February 16, 2015 11:19 PM

Hello. And Bye.

[11] Posted by: XRumerTest on February 16, 2015 11:24 PM

Hello. And Bye.

[12] Posted by: XRumerTest on February 17, 2015 5:16 AM

Hello. And Bye.

[13] Posted by: XRumerTest on February 18, 2015 6:50 AM

Hello. And Bye.

[14] Posted by: XRumerTest on February 20, 2015 7:00 AM

Hello. And Bye.

[15] Posted by: XRumerTest on February 20, 2015 7:54 AM

Hello. And Bye.

[16] Posted by: XRumerTest on February 20, 2015 4:55 PM

Hello. And Bye.

[17] Posted by: XRumerTest on February 20, 2015 5:06 PM

Hello. And Bye.

[18] Posted by: XRumerTest on February 22, 2015 1:45 AM

Hello. And Bye.

[19] Posted by: XRumerTest on February 22, 2015 3:54 AM

Hello. And Bye.

[20] Posted by: XRumerTest on February 25, 2015 12:37 AM

Hello. And Bye.

[21] Posted by: XRumerTest on February 25, 2015 7:09 AM

Hello. And Bye.

[22] Posted by: XRumerTest on February 26, 2015 2:09 AM

Hello. And Bye.

[23] Posted by: XRumerTest on February 26, 2015 2:15 AM

Hello. And Bye.

[24] Posted by: XRumerTest on February 26, 2015 9:42 AM

Hello. And Bye.

[25] Posted by: XRumerTest on February 27, 2015 1:50 AM

Hello. And Bye.

[26] Posted by: XRumerTest on February 28, 2015 2:48 AM

Hello. And Bye.

[27] Posted by: XRumerTest on February 28, 2015 6:40 AM

Hello. And Bye.

[28] Posted by: XRumerTest on February 28, 2015 4:54 PM

Hello. And Bye.

[29] Posted by: XRumerTest on March 1, 2015 3:27 PM

Hello. And Bye.

[30] Posted by: XRumerTest on March 1, 2015 3:27 PM

Hello. And Bye.

[31] Posted by: XRumerTest on March 2, 2015 12:22 AM

Hello. And Bye.

[32] Posted by: XRumerTest on March 5, 2015 3:02 AM

Hello. And Bye.

[33] Posted by: XRumerTest on March 5, 2015 7:00 PM

Hello. And Bye.

[34] Posted by: XRumerTest on March 5, 2015 7:00 PM

Hello. And Bye.

[35] Posted by: XRumerTest on March 5, 2015 7:18 PM

Hello. And Bye.

[36] Posted by: XRumerTest on March 6, 2015 1:37 PM

Hello. And Bye.

[37] Posted by: XRumerTest on March 7, 2015 10:34 PM

Hello. And Bye.

[38] Posted by: XRumerTest on March 7, 2015 10:45 PM

Hello. And Bye.

[39] Posted by: XRumerTest on March 12, 2015 3:09 AM

Hello. And Bye.

[40] Posted by: XRumerTest on March 12, 2015 6:41 AM

Hello. And Bye.

[41] Posted by: XRumerTest on March 12, 2015 6:41 AM

Hello. And Bye.

[42] Posted by: XRumerTest on March 12, 2015 6:54 AM

Hello. And Bye.

[43] Posted by: XRumerTest on March 13, 2015 3:01 PM

Hello. And Bye.

[44] Posted by: XRumerTest on March 13, 2015 11:33 PM

Hello. And Bye.

[45] Posted by: XRumerTest on March 13, 2015 11:38 PM

Hello. And Bye.

[46] Posted by: XRumerTest on March 13, 2015 11:59 PM

Hello. And Bye.

[47] Posted by: XRumerTest on March 18, 2015 6:24 AM

Hello. And Bye.

[48] Posted by: XRumerTest on March 18, 2015 12:22 PM

Hello. And Bye.

[49] Posted by: XRumerTest on March 18, 2015 12:34 PM

Hello. And Bye.

[50] Posted by: XRumerTest on March 18, 2015 12:44 PM

Hello. And Bye.

[51] Posted by: XRumerTest on March 19, 2015 11:33 PM

Hello. And Bye.

[52] Posted by: XRumerTest on March 20, 2015 2:36 AM

Hello. And Bye.

[53] Posted by: XRumerTest on March 20, 2015 2:50 AM

Hello. And Bye.

[54] Posted by: XRumerTest on March 21, 2015 9:08 PM

Hello. And Bye.

[55] Posted by: XRumerTest on March 21, 2015 9:44 PM

Hello. And Bye.

[56] Posted by: XRumerTest on March 21, 2015 9:44 PM

Hello. And Bye.

[57] Posted by: XRumerTest on March 22, 2015 7:10 AM

Hello. And Bye.

[58] Posted by: XRumerTest on March 23, 2015 3:36 PM

Hello. And Bye.

[59] Posted by: XRumerTest on March 23, 2015 5:27 PM

Hello. And Bye.

[60] Posted by: XRumerTest on March 23, 2015 5:29 PM

Hello. And Bye.

Leave a comment






備用迴響區(若上方迴響功能失效再使用)