1
/* gcc `pkg-config --libs --cflags libming glib-2.0` initaction-queue.c -o initaction-queue && ./initaction-queue
15
movie = newSWFMovieWithVersion (version);
16
movie = newSWFMovie();
17
SWFMovie_setRate (movie, 1);
18
SWFMovie_setDimension (movie, 200, 150);
20
clip = newSWFMovieClip ();
21
item = SWFMovie_add (movie, (SWFBlock) clip);
22
SWFMovieClip_addInitAction (clip, newSWFAction ("_root.x = 42;"));
23
SWFDisplayItem_addAction (item, newSWFAction ("trace (_root.x);"), SWFACTION_INIT);
24
SWFDisplayItem_addAction (item, newSWFAction ("trace (_root.x);"), SWFACTION_CONSTRUCT);
25
SWFDisplayItem_flush (item);
26
SWFMovie_nextFrame (movie);
28
SWFMovie_add (movie, (SWFBlock) newSWFAction (""
29
"loadMovie (\"fscommand:quit\", \"\");"
31
SWFMovie_nextFrame (movie);
33
real_name = g_strdup_printf ("initaction-queue-%d.swf", version);
34
/* remove this after having understood that the generated code was modified to have
35
* the DoInitAction tag placed _after_ the PlaceObject tag */
37
SWFMovie_save (movie, real_name);
42
main (int argc, char **argv)
49
for (i = 8; i > 4; i--)