晚上整理資料夾時發現一個好久以前寫的五子棋遊戲, 那時候AI寫的還真是不怎麼樣阿哈哈... 不過如果有人想要fla原始檔(真的會有人嗎?)還是可以和我索取^^。 一局結束後請按鍵盤Y鍵繼續, 棋力很強的就不用來拉, 這個程度大概只有小學生程度, 畢竟當初是拿來練習寫程式用的:P
要在 Flash 中,使用 WebCam 拍照,僅需透過 BitmapData 即可擷取畫面,然後問題在於如何將這張畫面存成檔案?由 Server 程式來做?Flash 如何將資料傳給 Server 程式?在 Flash 8 的時候,我曾經將 BitmapData 的所有像素讀出來串成一大串的字串送給後端,現在,則有更容易的作法了。 有人用 AS3 寫好 Flash 版本的 PNG / JPG encoder,可以將 BitmapData 變成 PNG / JPG 格式的 ByteArray,然後只要我們能將 ByteArray 送到後端程式作儲存即可。資料傳送的部份也有人是利用 URLRequest / URLLoader 來傳送 stream 資料到後端,然後由 PHP / ASP / Java 接收儲存。更讚的是,有人寫好一個 function 可以直接將 ByteArray 資料打包成 HTTP upload 的規格,這樣一來後台程式就跟接收一般由 HTML 標籤所做的上傳程序沒啥不同了。
The application gets 16 thumbnail images from the users flickr page, and presents them in a 4 by 4 matrix. Each image carries a link to the corresponding image at Flickr. Very nifty example, that runs out of the box.
簡易教學Flickr FlasFlickr Flash
ActionScript 2.0教學
PowUpload .NET Upload Control PowUpload is an ASP.Net file upload control that enables an ASP.NET application to capture and save files uploaded to the web server by a browser. PowUpload is fully compatible with the standard files upload protocol defined in RFC1867 for the HTML POST Form with the tags. Full product description..
這是一個相當好用的元件~~ 使用flash 可以搭配ASP PHP JAVA 來上傳 或是下載檔案~~ 可以參考喔~~
Rich Internet Applications is the new buzz-phrase for Web 2.0, and a key component of the substance behind Web 2.0 is Adobe Flash. Learn how to integrate Flash movies into your application and generate Flash movies dynamically using the Ming library.
Ever since my post about Converting Flash Shapes to WPF, I've been asked about the BitReader class that I mentioned. That class has since been replaced by a much more specialized class called SWFReader. As you can probably tell by the name, it's job is to make it easier to read Adobe/Macromedia Flash (SWF) files and their associated data types. If you're unfamiliar with the contents of a SWF file, you should check out A Concise Guide to the SWF File Format and Alexis' SWF Reference. Both are excellent resources.