看板 Flash 關於我們 聯絡資訊
請問flex有沒有類似C#的List可以用呢 例如: List<int> myList = new List<int>(); myList.add(1); myList.add(2); int output = myList[0];// output = 1 因為List用習慣了,結果突然在AS3上面找不到 本來想用Array來替代, 不過Array好像沒辦法給型態?(例如上面List是int) 麻煩各位指教一下, 感激不盡~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.116.89.176
cjcat2266:用Flex SDK 3.2以後支援Flash Player 10 05/09 22:25
cjcat2266:對應List<int>的class是Vector.<int> 05/09 22:25
cjcat2266:↑以上在Flash CS4也適用,總之是Flash Player10就可以 05/09 22:25
gamecubemomo:請問,因為我是用flashdevelop在寫 05/09 23:04
gamecubemomo:可是好像flash player10的程式都不會出現hint 05/09 23:05
gamecubemomo:編譯也沒辦法過, 是哪裡出錯了嗎? 謝謝 05/09 23:05
Jerrynet:Array不用給型態啊,直接指定給他就好了 05/10 01:21
cjcat2266:他應該是希望可以用typed array吧 05/10 09:50