Flash/As3 won't autostart
First of all, Flash/AS3 newbie here.
I create a small animation with ActionScript (basically fadeIn/fadeOut at different interval of different images). When I view in FlashPlayer directly it work when I view in browsers (any) I need to "click" inside the application for the fadeIn to start.
In my application I use this : stage.addEventListener(Event.ACTIVATE, launch); so I guessed it was caused because by defau开发者_StackOverflow社区tl the application is not activated, my question is how can I make the animation start at loading without needing to click on it?
try different events.. like ENTER_FRAME (don't forget to remove it if you entered the function)..
精彩评论