2013年3月22日 星期五

2013.1.16 Starling初試啼聲

將網頁的水果盤放到AIR裡
初步問題:load 圖片失敗

在Adobe官網的ActionScript Help發現:
Note (iOS only):In AIR applications on iOS, only SWF files that do not contain ActionScript bytecode can be loaded. Instead, create SWC libraries and link them in to your main SWF. This restriction does not apply to the iOS Simulator (ipa-test-interpreter-simulator or ipa-debug-interpreter-simulator) or interpreter mode (ipa-test-interpreter or ipa-debug-interpreter.)

http://bbs.9ria.com/thread-145331-1-1.html
在看了這篇文章後
原本打算試試loader的方式讀圖
在分析出要用的圖片

但最後還是失敗了


後來發現上面那段是說不能load有AS的swf
所以還是可以load圖片吧@@


最後成功了..
原來只是連結有誤
"/png/sex.jpg"

這樣就可以試試load一大張圖
 在逐步切割成要的部分


結論:
starling下可以用loader
但不能load有AS控制的swf

雖然進行得頗慢
但能找到好文章還是有收穫
----------------------------------------------------------
http://www.cnblogs.com/tankaixiong/archive/2012/11/28/2792047.html
這是不經意看到的文章

裡面滿多starling的說明
在用starling時可參考

沒有留言: