-
-
Notifications
You must be signed in to change notification settings - Fork 822
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
num_ticks = 3 | ||
known_failure = true |
20 changes: 20 additions & 0 deletions
20
tests/tests/swfs/avm2/swf_9_goto_in_enter_frame_simple/MyChild.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package { | ||
|
||
import flash.display.MovieClip; | ||
|
||
|
||
public class MyChild extends MovieClip { | ||
|
||
|
||
public function MyChild() { | ||
this.addFrameScript(0, function() { | ||
trace("MyChild framescript 0"); | ||
}); | ||
this.addFrameScript(1, function() { | ||
trace("MyChild framescript 1"); | ||
}); | ||
super(); | ||
} | ||
} | ||
|
||
} |
36 changes: 36 additions & 0 deletions
36
tests/tests/swfs/avm2/swf_9_goto_in_enter_frame_simple/MyContainer.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package { | ||
|
||
import flash.display.MovieClip; | ||
import flash.events.MouseEvent; | ||
import flash.utils.setTimeout; | ||
|
||
|
||
public class MyContainer extends MovieClip { | ||
|
||
|
||
public function MyContainer() { | ||
var self = this; | ||
addFrameScript(0,function():* | ||
{ | ||
trace("MyContainer framescript 0"); | ||
}); | ||
addFrameScript(1,function():* | ||
{ | ||
trace("MyContainer framescript 1"); | ||
}); | ||
super(); | ||
addEventListener("enterFrame",function():* | ||
{ | ||
trace("MyContainer enterFrame"); | ||
trace("Before MyContainer.gotoAndStop(2)"); | ||
self.gotoAndStop(2); | ||
trace("After MyContainer.gotoAndStop(2)"); | ||
}); | ||
addEventListener("frameConstructed",function():* | ||
{ | ||
trace("MyContainer frameConstructed"); | ||
}); | ||
} | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
tests/tests/swfs/avm2/swf_9_goto_in_enter_frame_simple/MyOtherChild.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package { | ||
|
||
import flash.display.MovieClip; | ||
import flash.events.Event; | ||
|
||
|
||
public class MyOtherChild extends MovieClip { | ||
|
||
|
||
public function MyOtherChild() { | ||
this.addEventListener(Event.ENTER_FRAME, this.onEnterFrame); | ||
this.addEventListener(Event.FRAME_CONSTRUCTED, this.onFrameConstructed); | ||
trace("Calling MyOtherChild super()") | ||
super(); | ||
trace("Called MyOtherChild super()"); | ||
} | ||
|
||
private function onEnterFrame(e) { | ||
trace("MyOtherChild onEnterFrame"); | ||
} | ||
|
||
private function onFrameConstructed(e) { | ||
trace("MyOtherChild onFrameConstructed"); | ||
} | ||
} | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
tests/tests/swfs/avm2/swf_9_goto_in_enter_frame_simple/Test.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package { | ||
|
||
import flash.display.MovieClip; | ||
|
||
|
||
public class Test extends MovieClip { | ||
|
||
public function Test() | ||
{ | ||
trace("Constructing Test"); | ||
var self = this; | ||
this.addFrameScript(1, function() { | ||
trace("Stopping Test at frame 2"); | ||
self.stop(); | ||
}) | ||
} | ||
} | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
tests/tests/swfs/avm2/swf_9_goto_in_enter_frame_simple/output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Constructing Test | ||
Calling MyOtherChild super() | ||
Called MyOtherChild super() | ||
MyContainer frameConstructed | ||
MyOtherChild onFrameConstructed | ||
Stopping Test at frame 2 | ||
MyContainer framescript 0 | ||
MyContainer enterFrame | ||
Before MyContainer.gotoAndStop(2) | ||
After MyContainer.gotoAndStop(2) | ||
MyOtherChild onEnterFrame | ||
MyContainer frameConstructed | ||
MyOtherChild onFrameConstructed | ||
MyContainer framescript 1 | ||
MyChild framescript 0 |
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions
1
tests/tests/swfs/avm2/swf_9_goto_in_enter_frame_simple/test.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
num_ticks = 3 |