免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2010年4月18日 星期日

MovieClipLoader and Loader for Flash

[Q] "MovieClipLoader" type not found?
MovieClipLoader 是擺在哪個namespace底下呢?


 
[Sol]

  • MovieClipLoader is for old Actionscript and not available in ActionScript3
  • use Loader/URLLoader instead
  • import flash.display.Loader;
  • onLoadInit -> Event.EnterFrame???
  • import flash.events.MouseEvent;
  • Mouse.addListener() -> Stage.AddEventListener()
  • Mouse position -> event.target.mousex???


 
[ref]
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/index.html
http://maohao.wordpress.com/2007/07/14/getting-mouse-coordinates-on-stage/

 

沒有留言:

張貼留言