Displaying 7 results from an estimated 7 matches for "swfdisplayitem_addaction".
2007 Jul 12
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie_as.c test/trace
...ar name[100];
+
+ movie = newSWFMovieWithVersion (version);
+ movie = newSWFMovie();
+ SWFMovie_setRate (movie, 1);
+ SWFMovie_setDimension (movie, 200, 150);
+
+ clip = newSWFMovieClip ();
+ item = SWFMovie_add (movie, (SWFBlock) clip);
+ SWFDisplayItem_setName (item, "movie");
+ SWFDisplayItem_addAction (item, newSWFAction ("trace (this + \": init\");"), SWFACTION_INIT);
+ SWFDisplayItem_addAction (item, newSWFAction ("trace (this + \": construct\");"), SWFACTION_CONSTRUCT);
+ SWFDisplayItem_addAction (item, newSWFAction ("trace (this + \": load\...
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c test/trace
...newSWFMovieWithVersion (version);
+ movie = newSWFMovie();
+ SWFMovie_setRate (movie, 1);
+ SWFMovie_setDimension (movie, 200, 150);
+
+ clip = newSWFMovieClip ();
+ item = SWFMovie_add (movie, (SWFBlock) clip);
+ SWFMovieClip_addInitAction (clip, newSWFAction ("_root.x = 42;"));
+ SWFDisplayItem_addAction (item, newSWFAction ("trace (_root.x);"), SWFACTION_INIT);
+ SWFDisplayItem_addAction (item, newSWFAction ("trace (_root.x);"), SWFACTION_CONSTRUCT);
+ SWFDisplayItem_flush (item);
+ SWFMovie_nextFrame (movie);
+
+ SWFMovie_add (movie, (SWFBlock) newSWFAction (""...
2007 Mar 20
0
4 commits - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_movie.c test/trace
...ck) compileSWFActionCode (""
+ " trace (\"Check that the parent onLoad event happens before the child's onLoad\");"
+ ""));
+ parent = newSWFMovieClip ();
+ child = newSWFMovieClip ();
+ item = SWFMovieClip_add (parent, (SWFBlock) child);
+ SWFDisplayItem_addAction (item, compileSWFActionCode (""
+ " trace (\"child\");"
+ ""), SWFACTION_ONLOAD);
+ SWFMovieClip_nextFrame (parent);
+ item = SWFMovie_add (movie, (SWFBlock) parent);
+ SWFDisplayItem_addAction (item, compileSWFActionCode (""
+ &q...
2007 Mar 22
0
11 commits - libswfdec/swfdec_color.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_net_stream.h libswfdec/swfdec_pattern.c libswfdec/swfdec_script.c NEWS test/trace
...+ if (Ming_init ())
+ return 1;
+ Ming_useSWFVersion (7);
+
+ movie = newSWFMovie();
+ SWFMovie_setRate (movie, 1);
+ SWFMovie_setDimension (movie, 200, 150);
+
+ clip = newSWFMovieClip ();
+ item = SWFMovie_add (movie, (SWFBlock) clip);
+ SWFDisplayItem_setName (item, "m");
+ SWFDisplayItem_addAction (item, compileSWFActionCode (""
+ " trace (\"clipEvent (load)\");"
+ " trace (this);"
+ ""), SWFACTION_ONLOAD);
+ SWFMovie_add (movie, (SWFBlock) compileSWFActionCode (""
+ "trace (\"Frame 0\");"...
2008 Jan 08
0
9 commits - configure.ac test/custom test/Makefile.am test/swfdec_test_initialize.as test/swfdec_test_initialize.h test/swfdec_test_test.c test/trace
...);
+ SWFButton_addAction (button, newSWFAction (script), (1 << i));
+ }
+}
+
+static SWFCharacter
+get_clip_events_movie (const char *name)
+{
+ SWFMovieClip clip;
+ SWFDisplayItem item;
+
+ clip = newSWFMovieClip ();
+ item = SWFMovieClip_add (clip, (SWFBlock) newSWFMovieClip ());
+ SWFDisplayItem_addAction (item, newSWFAction ("trace (\"load \" + this);"), SWFACTION_ONLOAD);
+ SWFDisplayItem_addAction (item, newSWFAction ("trace (\"unload \" + this);"), SWFACTION_UNLOAD);
+ SWFDisplayItem_setName (item, name);
+ SWFMovieClip_nextFrame (clip);
+ return (SWFC...
2007 Jun 19
0
Branch 'as' - 4 commits - libswfdec/swfdec_codec_video.c libswfdec/swfdec_movie.c test/trace
...(name)
+ g_string_append (name, "-name");
+ else
+ SWFDisplayItem_setName (item, "instanceX");
+ }
+ if (mod & MODIFY_CLIP_DEPTH) {
+ if (name)
+ g_string_append (name, "-clip");
+ else
+ SWFDisplayItem_setMaskLevel (item, 5);
+ }
+ SWFDisplayItem_addAction (item, newSWFAction ("trace (_root._currentframe + \": init \" + this);"), SWFACTION_INIT);
+ SWFDisplayItem_addAction (item, newSWFAction ("trace (_root._currentframe + \": load \" + this);"), SWFACTION_ONLOAD);
+ SWFDisplayItem_addAction (item, newSWFActi...
2007 Nov 28
0
59 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_button.c libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_button_movie.h libswfdec/swfdec_event.c
...);
+ SWFButton_addAction (button, newSWFAction (script), (1 << i));
+ }
+}
+
+static SWFCharacter
+get_clip_events_movie (const char *name)
+{
+ SWFMovieClip clip;
+ SWFDisplayItem item;
+
+ clip = newSWFMovieClip ();
+ item = SWFMovieClip_add (clip, (SWFBlock) newSWFMovieClip ());
+ SWFDisplayItem_addAction (item, newSWFAction ("trace (\"load \" + this);"), SWFACTION_ONLOAD);
+ SWFDisplayItem_addAction (item, newSWFAction ("trace (\"unload \" + this);"), SWFACTION_UNLOAD);
+ SWFDisplayItem_setName (item, name);
+ SWFMovieClip_nextFrame (clip);
+ return (SWFC...