search for: swfmovie_nextfram

Displaying 16 results from an estimated 16 matches for "swfmovie_nextfram".

Did you mean: swfmovie_nextframe
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c test/trace
...p_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 ("" + "loadMovie (\"fscommand:quit\", \"\");" + )); + SWFMovie_nextFrame (movie); + + real_name = g_strdup_printf ("initaction-queue-%d.swf", version); + /* remove this after having un...
2007 Oct 29
0
2 commits - libswfdec/swfdec_audio_event.c test/sound
...ot;/dev/null", "r"); + sound = newSWFSound (file, SWF_SOUND_NOT_COMPRESSED | SWF_SOUND_44KHZ | SWF_SOUND_16BITS | SWF_SOUND_STEREO); + instance = SWFMovieClip_startSound(movie_clip, sound); + SWFMovieClip_nextFrame (movie_clip); + + SWFMovie_add (movie, (SWFBlock) movie_clip); + SWFMovie_nextFrame (movie); + + SWFMovie_add (movie, (SWFBlock) newSWFAction ("" + "trace ('To crash or not to crash?');" + "function quit () {" + " loadMovie ('FSCommand:quit', '');" + "}" + "setTimeout (quit, 200);" + "&quot...
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
..."trace (\"duplicating...\");" + "asm {" + " push \"movie\"" + " getvariable" + " push \"foo\", 10" + " duplicatemovieclip" + "};" + "trace (\"...done\");" + "")); + SWFMovie_nextFrame (movie); + SWFMovie_add (movie, (SWFBlock) newSWFAction ("" + "loadMovie (\"FSCommand:quit\", \"\");" + "")); + SWFMovie_nextFrame (movie); + + sprintf (name, "clonesprite-events-%d.swf", version); + SWFMovie_save (movie, name); +} +...
2007 Oct 28
1
2 commits - libswfdec/swfdec_as_interpret.c test/trace
libswfdec/swfdec_as_interpret.c | 1 + test/trace/Makefile.am | 3 +++ test/trace/crash-0.5.3-divide-by-zero.as | 5 +++++ test/trace/crash-0.5.3-divide-by-zero.swf |binary test/trace/crash-0.5.3-divide-by-zero.swf.trace | 1 + 5 files changed, 10 insertions(+) New commits: commit c6d96d7d47704ca3d62c08d35874c64f7878bdf2 Author:
2007 Nov 14
0
5 commits - libswfdec/.gitignore libswfdec/swfdec_initialize.as test/image test/sound test/trace
...ecessary frames diff --git a/test/sound/crash-0.5.3-no-samples.c b/test/sound/crash-0.5.3-no-samples.c index 4339f03..30c0e34 100644 --- a/test/sound/crash-0.5.3-no-samples.c +++ b/test/sound/crash-0.5.3-no-samples.c @@ -28,15 +28,6 @@ do_movie () SWFMovie_add (movie, (SWFBlock) movie_clip); SWFMovie_nextFrame (movie); - SWFMovie_add (movie, (SWFBlock) newSWFAction ("" - "trace ('To crash or not to crash?');" - "function quit () {" - " loadMovie ('FSCommand:quit', '');" - "}" - "setTimeout (quit, 200);" - "&quot...
2007 Nov 20
0
7 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie_as.c test/image
...mp; 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)); + SWFDisplayItem_moveTo (item, 50, 0); + SWFDisplayItem_setDepth (item, 3); + + SWFMovie_nextFrame (movie); + if (reverse != 2) + SWFDisplayItem_setMaskLevel (clip, (reverse & 1) ? 2 : 3); + else + SWFDisplayItem_setMaskLevel (clip, 0); + SWFMovie_nextFrame (movie); + + sprintf (name, "clip-change-%s-%d.swf", suffixes[reverse], version); + SWFMovie_save (movie, name); +...
2007 Jun 20
0
Branch 'as' - 5 commits - libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie.c test/image
...ovie, (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_nextFrame (movie); +} + +static void +do_movie (int version) +{ + SWFMovie movie; + char *real_name; + Type t1, t2; + + for (t1 = 0; t1 < N_TYPES; t1++) { + for (t2 = 0; t2 < N_TYPES...
2007 Oct 28
1
test/trace
...al.TextField.prototype.hasOwnProperty = ASnative (101, 5);" + "trace (_global.TextField.prototype.hasOwnProperty ('text'));" + "_global.TextField.prototype = new Object ();" + "loadMovie (\"FSCommand:quit\", \"\");" + "")); + SWFMovie_nextFrame (movie); + + sprintf (name, "text-field-init-native-%d.swf", version); + SWFMovie_save (movie, name); +} + +int +main (int argc, char **argv) +{ + int i; + + if (Ming_init ()) + return 1; + + for (i = 8; i >= 5; i--) { + do_movie (i); + } + + return 0; +} +
2007 Mar 20
0
4 commits - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_movie.c test/trace
..." + ""), SWFACTION_ONLOAD); + SWFMovieClip_nextFrame (parent); + item = SWFMovie_add (movie, (SWFBlock) parent); + SWFDisplayItem_addAction (item, compileSWFActionCode ("" + " trace (\"parent\");" + ""), SWFACTION_ONLOAD); + SWFMovie_nextFrame (movie); + + SWFMovie_save (movie, "onload-childparent.swf"); + return 0; +} diff --git a/test/trace/onload-childparent.swf b/test/trace/onload-childparent.swf new file mode 100644 index 0000000..b51d895 Binary files /dev/null and b/test/trace/onload-childparent.swf differ diff --git a...
2007 Mar 16
0
4 commits - libswfdec/swfdec_script.c test/image test/trace
...10, 10); + + image = newSWFJpegBitmap (fopen ("bw.jpg", "r+")); + shape = newSWFShapeFromBitmap ((SWFBitmap) image, SWFFILL_BITMAP); + + item = SWFMovie_add (movie, (SWFBlock) shape); + SWFDisplayItem_setCXform (item, newSWFCXform (100, 0, 0, 0, -90./256, 1.0, 1.0, 1.0)); + SWFMovie_nextFrame (movie); + + SWFMovie_save (movie, "negative-color-transform.swf"); + return 0; +} diff --git a/test/image/negative-color-transform.swf b/test/image/negative-color-transform.swf new file mode 100644 index 0000000..7c9eebe Binary files /dev/null and b/test/image/negative-color-transform...
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
...((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 version) +{ + SWFMovie movie; + char *real_name; + guint i; + + movie = newSWFMovie...
2007 Jun 19
0
Branch 'as' - 4 commits - libswfdec/swfdec_codec_video.c libswfdec/swfdec_movie.c test/trace
...+ } else if (mod & MODIFY_HAS_CHAR) { + clip2 = NULL; + g_string_append (name, "-char"); + } else { + clip2 = (SWFBlock) clip1; + } + + /* FIXME: I want the option to set a replace flag here */ + item = SWFMovie_add (movie, clip1); + modify_item (item, name, mod); + SWFMovie_nextFrame (movie); + + if (mod & MODIFY_REMOVE) { + SWFDisplayItem_remove (item); + } + item = SWFMovie_add (movie, clip2); + modify_item (item, NULL, mod); + return g_string_free (name, FALSE); +} + +static void +do_movie (int version) +{ + SWFMovie movie; + char *name, *real_name; + guint i...
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
...(button2); + rec = SWFButton_addCharacter (button2, get_rectangle (0, 255, 0), SWFBUTTON_HIT); + SWFButtonRecord_scaleTo (rec, 2, 1.5); + rec = SWFButton_addCharacter (button2, (SWFCharacter) button, SWFBUTTON_UP | SWFBUTTON_OVER | SWFBUTTON_DOWN); + + item = SWFMovie_add (movie, button2); + + SWFMovie_nextFrame (movie); + + sprintf (name, "button-hittest-%d.swf", version); + SWFMovie_save (movie, name); +} + +int +main (int argc, char **argv) +{ + int i; + + if (Ming_init ()) + return 1; + + for (i = 8; i >= 5; i--) { + do_movie (i); + } + + return 0; +} commit 930931b307fc143fa...
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
...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; + + if (Ming_init ()) + return 1; + + for (i = 8; i >= 5; i--) { + do_movie (i,...
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
...mask = SWFMovie_add (movie, get_rectangle (128, 128, 128)); + SWFDisplayItem_moveTo (mask, 50, 50); + SWFDisplayItem_setDepth (mask, 50); + SWFDisplayItem_setName (mask, "mask"); + SWFMovie_add (movie, (SWFBlock) newSWFAction ( + "c.setMask (mask);" + )); + } + SWFMovie_nextFrame (movie); + + sprintf (name, "mask-and-clip-%u-%d.swf", flags, version); + SWFMovie_save (movie, name); +} + +int +main (int argc, char **argv) +{ + int i, j; + + if (Ming_init ()) + return 1; + + for (i = 8; i <= 8; i++) { + for (j = 0; j < (1 << N_FLAGS); j++) { +...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...(button2); + rec = SWFButton_addCharacter (button2, get_rectangle (0, 255, 0), SWFBUTTON_HIT); + SWFButtonRecord_scaleTo (rec, 2, 1.5); + rec = SWFButton_addCharacter (button2, (SWFCharacter) button, SWFBUTTON_UP | SWFBUTTON_OVER | SWFBUTTON_DOWN); + + item = SWFMovie_add (movie, button2); + + SWFMovie_nextFrame (movie); + + sprintf (name, "button-hittest-%d.swf", version); + SWFMovie_save (movie, name); +} + +int +main (int argc, char **argv) +{ + int i; + + if (Ming_init ()) + return 1; + + for (i = 8; i >= 5; i--) { + do_movie (i); + } + + return 0; +} diff --git a/test/custom...