ENTER_FRAME does not fire off display list
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jeash |
Confirmed
|
Low
|
Unassigned |
Bug Description
Shape (& Sprite) instances do not fire Event.ENTER_FRAME events when not added to the display list.
When targeting Flash they do. Creating un-displayed instances that fire these events specifically useful
for most tweening engines. Test code:
package ;
import flash.display.
import flash.display.
import flash.Lib;
import flash.events.Event;
class Main extends Sprite{
public static function main() {
}
private var _ticker:Shape;
public function new(){
super();
_ticker = new Shape();
_ticker.
//In Jeash you must add _ticker to display list to receive Event.ENTER_FRAME
//while in Flash you do not
//addChild(
}
private function handleFrame(
trace(
_ticker.
}
}
Changed in jeash: | |
status: | New → Confirmed |
Changed in jeash: | |
importance: | Undecided → Low |