tests: `as3_movieclip_displayevents_looping` should have a `RemoveObject` in it

This commit is contained in:
David Wendt 2022-01-24 20:46:56 -05:00 committed by kmeisthax
parent ee1f39bba7
commit f1d203311f
4 changed files with 26 additions and 13 deletions

View File

@ -25,6 +25,11 @@
}
public function destroy() {
this.addEventListener(Event.EXIT_FRAME, this.delayed_destroy);
}
public function delayed_destroy(evt: Event) {
this.removeEventListener(Event.EXIT_FRAME, this.delayed_destroy);
this.removeEventListener(Event.ENTER_FRAME, this.trace_event);
this.removeEventListener(Event.EXIT_FRAME, this.trace_event);
this.removeEventListener(Event.ADDED, this.trace_event);

View File

@ -20,36 +20,44 @@ blue (frame 2):[Event type="frameConstructed" bubbles=false cancelable=false eve
green (frame 1):[Event type="exitFrame" bubbles=false cancelable=false eventPhase=2]
blue (frame 2):[Event type="exitFrame" bubbles=false cancelable=false eventPhase=2]
green (frame 1):[Event type="enterFrame" bubbles=false cancelable=false eventPhase=2]
blue (frame 1):[Event type="enterFrame" bubbles=false cancelable=false eventPhase=2]
blue (frame 3):[Event type="enterFrame" bubbles=false cancelable=false eventPhase=2]
orange constructed
orange (frame 1):[Event type="added" bubbles=true cancelable=false eventPhase=2]
orange (frame 1):[Event type="addedToStage" bubbles=false cancelable=false eventPhase=2]
green (frame 1):[Event type="frameConstructed" bubbles=false cancelable=false eventPhase=2]
blue (frame 1):[Event type="frameConstructed" bubbles=false cancelable=false eventPhase=2]
blue (frame 3):[Event type="frameConstructed" bubbles=false cancelable=false eventPhase=2]
orange (frame 1):[Event type="frameConstructed" bubbles=false cancelable=false eventPhase=2]
//MainTimeline frame 3
//BlueSymbol frame 1...
//BlueSymbol frame 3...
//OrangeCircle frame 1...
green (frame 1):[Event type="exitFrame" bubbles=false cancelable=false eventPhase=2]
blue (frame 1):[Event type="exitFrame" bubbles=false cancelable=false eventPhase=2]
blue (frame 3):[Event type="exitFrame" bubbles=false cancelable=false eventPhase=2]
orange (frame 1):[Event type="exitFrame" bubbles=false cancelable=false eventPhase=2]
green (frame 1):[Event type="enterFrame" bubbles=false cancelable=false eventPhase=2]
blue (frame 2):[Event type="enterFrame" bubbles=false cancelable=false eventPhase=2]
blue (frame 3):[Event type="removed" bubbles=true cancelable=false eventPhase=3]
blue (frame 3):[Event type="removed" bubbles=true cancelable=false eventPhase=3]
blue (frame 4):[Event type="enterFrame" bubbles=false cancelable=false eventPhase=2]
orange (frame 1):[Event type="enterFrame" bubbles=false cancelable=false eventPhase=2]
green (frame 1):[Event type="frameConstructed" bubbles=false cancelable=false eventPhase=2]
blue (frame 2):[Event type="frameConstructed" bubbles=false cancelable=false eventPhase=2]
blue (frame 4):[Event type="frameConstructed" bubbles=false cancelable=false eventPhase=2]
orange (frame 1):[Event type="frameConstructed" bubbles=false cancelable=false eventPhase=2]
//MainTimeline frame 4
//BlueSymbol frame 2...
green (frame 1):[Event type="exitFrame" bubbles=false cancelable=false eventPhase=2]
blue (frame 2):[Event type="exitFrame" bubbles=false cancelable=false eventPhase=2]
//BlueSymbol frame 4...
blue (frame 4):[Event type="exitFrame" bubbles=false cancelable=false eventPhase=2]
orange (frame 1):[Event type="exitFrame" bubbles=false cancelable=false eventPhase=2]
green (frame 1):[Event type="enterFrame" bubbles=false cancelable=false eventPhase=2]
blue (frame 1):[Event type="enterFrame" bubbles=false cancelable=false eventPhase=2]
orange (frame 1):[Event type="enterFrame" bubbles=false cancelable=false eventPhase=2]
green (frame 1):[Event type="frameConstructed" bubbles=false cancelable=false eventPhase=2]
blue (frame 1):[Event type="added" bubbles=true cancelable=false eventPhase=3]
blue (frame 1):[Event type="added" bubbles=true cancelable=false eventPhase=3]
green constructed
green (frame 1):[Event type="added" bubbles=true cancelable=false eventPhase=2]
blue (frame 1):[Event type="added" bubbles=true cancelable=false eventPhase=3]
green (frame 1):[Event type="addedToStage" bubbles=false cancelable=false eventPhase=2]
blue (frame 1):[Event type="frameConstructed" bubbles=false cancelable=false eventPhase=2]
orange (frame 1):[Event type="frameConstructed" bubbles=false cancelable=false eventPhase=2]
green (frame 1):[Event type="frameConstructed" bubbles=false cancelable=false eventPhase=2]
//MainTimeline frame 5
//End MainTimeline frame 5
//BlueSymbol frame 1...
//GreenSymbol frame 1...
blue (frame 1):[Event type="exitFrame" bubbles=false cancelable=false eventPhase=2]
orange (frame 1):[Event type="exitFrame" bubbles=false cancelable=false eventPhase=2]
green (frame 1):[Event type="exitFrame" bubbles=false cancelable=false eventPhase=2]