开发者

Flash/As3 won't autostart

开发者 https://www.devze.com 2023-02-21 18:07 出处:网络
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 whe

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)..

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号