Skip to content

Commit 8ced87a

Browse files
nivknerLord-McSweeney
authored andcommitted
avm2: Add known failure test for mixing events and frame scripts
1 parent a797456 commit 8ced87a

File tree

5 files changed

+74
-0
lines changed

5 files changed

+74
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Main Constructor
2+
Main addFrameScript
3+
Main added_to_stage
4+
MyChild Constructor
5+
Main frame3
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
package
2+
{
3+
import flash.display.MovieClip;
4+
import flash.events.Event;
5+
6+
public class Main extends MovieClip
7+
{
8+
9+
public var child:*;
10+
11+
public var mainSideChild:*;
12+
13+
public var secretChild:*;
14+
15+
public function Main()
16+
{
17+
trace("Main Constructor");
18+
super();
19+
trace("Main addFrameScript");
20+
addFrameScript(0,this.frame1,1,this.frame2,2,this.frame3);
21+
addEventListener(Event.ADDED_TO_STAGE,added_to_stage);
22+
}
23+
24+
internal function added_to_stage(event:*) : *
25+
{
26+
trace("Main added_to_stage");
27+
gotoAndStop(3);
28+
}
29+
30+
internal function frame1() : *
31+
{
32+
trace("Main frame1");
33+
}
34+
35+
internal function frame2() : *
36+
{
37+
trace("Main frame2");
38+
stop();
39+
}
40+
41+
internal function frame3() : *
42+
{
43+
trace("Main frame3");
44+
}
45+
}
46+
}
47+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package
2+
{
3+
import flash.display.MovieClip;
4+
5+
[Embed(source="/_assets/assets.swf", symbol="symbol2")]
6+
public class MyChild extends MovieClip
7+
{
8+
9+
public var myField:uint;
10+
11+
public var myFieldWithInit:Object = "Default value";
12+
13+
public function MyChild()
14+
{
15+
trace("MyChild Constructor");
16+
super();
17+
}
18+
}
19+
}
20+
6.66 KB
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
num_frames = 5
2+
known_failure = true

0 commit comments

Comments
 (0)