Displaying 7 results from an estimated 7 matches for "swfdisplayitem_setdepth".
2007 Nov 20
0
7 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie_as.c test/image
...uot;, "remove", "set" };
+ char name[100];
+ SWFMovie movie;
+ SWFDisplayItem item, clip;
+
+ movie = newSWFMovieWithVersion (version);
+ SWFMovie_setRate (movie, 1);
+ SWFMovie_setDimension (movie, 200, 150);
+
+ clip = SWFMovie_add (movie, get_rectangle (255, 0, 0));
+ SWFDisplayItem_setDepth (clip, 0);
+ if (reverse != 3)
+ SWFDisplayItem_setMaskLevel (clip, (reverse & 1) ? 3 : 2);
+
+ item = SWFMovie_add (movie, get_rectangle (0, 255, 0));
+ SWFDisplayItem_moveTo (item, 0, 50);
+ SWFDisplayItem_setDepth (item, 2);
+
+ item = SWFMovie_add (movie, get_rectangle (0, 0, 255));...
2007 Jun 18
0
Branch 'as' - 8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_sprite_movie.h libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_swf_decoder.h
...ieClip ();
+ add_rectangle ((SWFMovieClip) clip, 255, 0, 0);
+ SWFMovieClip_nextFrame ((SWFMovieClip) clip);
+ clip2 = (SWFBlock) newSWFMovieClip ();
+ add_rectangle ((SWFMovieClip) clip2, 0, 0, 255);
+ SWFMovieClip_nextFrame ((SWFMovieClip) clip2);
+
+ item = SWFMovie_add (movie, clip);
+ SWFDisplayItem_setDepth (item, 1);
+ SWFDisplayItem_setName (item, "a");
+ SWFMovie_nextFrame (movie);
+
+ item = SWFMovie_add (movie, clip2);
+ SWFDisplayItem_setDepth (item, 1);
+ SWFDisplayItem_moveTo (item, 20, 20);
+ SWFDisplayItem_setName (item, "b");
+}
+
+static void
+do_movie (int versio...
2007 Jun 20
0
Branch 'as' - 5 commits - libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie.c test/image
...ck) clip);
+ }
+ break;
+ case BUTTON:
+ {
+ SWFButton button;
+ button = newSWFButton ();
+ SWFButton_addCharacter (button, (SWFCharacter) shape, 0xF);
+ item = SWFMovie_add (movie, (SWFBlock) button);
+ }
+ break;
+ default:
+ g_assert_not_reached ();
+ }
+
+ SWFDisplayItem_setDepth (item, 1);
+ return item;
+}
+
+static void
+modify_placement (SWFMovie movie, Type t1, Type t2)
+{
+ SWFDisplayItem item;
+
+ add_rectangle (movie, t1, 255, 0, 0);
+ SWFMovie_nextFrame (movie);
+ item = add_rectangle (movie, t2, 0, 0, 255);
+ SWFDisplayItem_setMove (item);
+ SWFMovie_nextFr...
2007 Nov 20
0
19 commits - libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_image.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
...sion, unsigned int flags)
+{
+ char name[100];
+ SWFMovie movie;
+ SWFDisplayItem item, item1, item2;
+
+ movie = newSWFMovieWithVersion (version);
+ SWFMovie_setRate (movie, 1);
+ SWFMovie_setDimension (movie, 200, 150);
+
+ item1 = item = SWFMovie_add (movie, get_rectangle (255, 0, 0));
+ SWFDisplayItem_setDepth (item, 0);
+ SWFDisplayItem_setName (item, "a");
+ if (FLAG_SET (flags, FIRST_MOVIE_CLIP_ALL)) {
+ SWFDisplayItem_setMaskLevel (item, 3);
+ } else {
+ SWFDisplayItem_setMaskLevel (item, 1);
+ }
+
+ item2 = item = SWFMovie_add (movie, get_rectangle (0, 255, 0));
+ SWFDisplayIte...
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
...SWFButtonRecord_setDepth (rec, 7);
+ rec = SWFButton_addCharacter (button, get_clip_events_movie ("over_down"), SWFBUTTON_DOWN | SWFBUTTON_OVER);
+ SWFButtonRecord_setDepth (rec, 8);
+
+ add_button_events (button);
+ item = SWFMovie_add (movie, button);
+ add_item_events (item);
+ SWFDisplayItem_setDepth (item, 0);
+ SWFDisplayItem_setName (item, "button");
+
+ SWFMovie_nextFrame (movie);
+
+ sprintf (name, "button-events-%s-%d.swf", menu ? "menu" : "button", version);
+ SWFMovie_save (movie, name);
+}
+
+int
+main (int argc, char **argv)
+{
+ int i;
+
+...
2007 Jun 19
0
Branch 'as' - 4 commits - libswfdec/swfdec_codec_video.c libswfdec/swfdec_movie.c test/trace
...h has changed */
+ MODIFY_CLIP_DEPTH = (1 << 7),
+ /* a Remove tag is added directly before the second PlaceObject */
+ MODIFY_REMOVE = (1 << 8),
+ /* add here */
+ MODIFY_MAX = (1 << 9)
+};
+
+static void
+modify_item (SWFDisplayItem item, GString *name, guint mod)
+{
+ SWFDisplayItem_setDepth (item, 1);
+
+ if (mod & MODIFY_MOVE) {
+ if (name)
+ g_string_append (name, "-move");
+ else
+ SWFDisplayItem_setMove (item);
+ }
+ if (mod & MODIFY_TRANSFORM) {
+ if (name)
+ g_string_append (name, "-transform");
+ else
+ SWFDisplayIt...
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
...SWFButtonRecord_setDepth (rec, 7);
+ rec = SWFButton_addCharacter (button, get_clip_events_movie ("over_down"), SWFBUTTON_DOWN | SWFBUTTON_OVER);
+ SWFButtonRecord_setDepth (rec, 8);
+
+ add_button_events (button);
+ item = SWFMovie_add (movie, button);
+ add_item_events (item);
+ SWFDisplayItem_setDepth (item, 0);
+ SWFDisplayItem_setName (item, "button");
+
+ SWFMovie_nextFrame (movie);
+
+ sprintf (name, "button-events-%s-%d.swf", menu ? "menu" : "button", version);
+ SWFMovie_save (movie, name);
+}
+
+int
+main (int argc, char **argv)
+{
+ int i;
+
+...