Flex ~ Event.ENTER_FRAME

如果想要每一個影格作一次動作~~~~用addEventListener + Event.ENTER_FRAME

public function init():void
{
       addEventListener(Event.ENTER_FRAME, enterFrameHandler);
}

private function enterFrameHandler(event:Event):void
{
        trace('qqqqqqqqqqqqqqqqqqq');
}

http://www.java2s.com/Code/Flash-Flex-ActionScript/Animation/AddEnterFrameeventlistener.htm

沒有留言:

發佈留言