2 <swf version="6" compressed="1">
6 | This file test that DOINITACTION tag inside a DEFINESPRITE is allowed
7 | and results in the action to be executed only once and only if the
8 | defined sprite is placed.
10 | Also, this file tests that of multiple DOINITACTION tags referring to
11 | the *same* DisplayObject only the first executed gets trough, no matter in
12 | which timeline the DOINITACTION tag is.
14 | Expected output is just an 'END OF TEST' trace.
16 | The test could be improved a lot but it ain't easy to do AS coding
20 <Header framerate="12" frames="1">
22 <Rectangle left="0" right="12800" top="0" bottom="9600"/>
26 <DefineSprite objectID="1" frames="1">
33 <DefineSprite objectID="3" frames="1">
35 <DoInitAction sprite="1">
39 <StackString value="FAILED: init actions targetting sprite 1 executed again (defined in sprite3)"/>
51 <DefineSprite objectID="2" frames="1">
53 <DoInitAction sprite="1">
55 <!-- TODO: automate test for these actions to being only executed once -->
58 <StackString value="END OF TEST"/>
59 <StackString value="PASSED: executing init actions defined in sprite2 and targetting sprite1"/>
73 | Place the sprite2 containing DOINITACTION block
74 | referring to object2
76 <PlaceObject2 replace="0" depth="1" objectID="2">
80 | Place the sprite2 containing DOINITACTION block
81 | referring to object2 *again* at a different depth.
82 | Init actions won't be executed again
84 <PlaceObject2 replace="0" depth="2" objectID="2">
88 | Place the sprite3 containing DOINITACTION block
89 | referring to object2, for which init actions where
92 <PlaceObject2 replace="0" depth="3" objectID="3">