search for: swfmovie_add

Displaying 20 results from an estimated 20 matches for "swfmovie_add".

2007 Nov 20
0
7 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie_as.c test/image
...uffixes[4] = { "forward", "backward", "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...
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
...o_movie (int version) +{ + SWFMovie movie; + SWFMovieClip clip; + SWFDisplayItem item; + char 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\");")...
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c test/trace
..._movie (int version) +{ + SWFMovie movie; + SWFMovieClip clip; + SWFDisplayItem item; + char *real_name; + + movie = 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_CONSTR...
2007 Oct 29
0
2 commits - libswfdec/swfdec_audio_event.c test/sound
...wSWFMovieClip (); + + file = fopen ("/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', '');" + "}&quot...
2007 Oct 28
1
test/trace
...e (int version) +{ + char name[100]; + SWFMovie movie; + SWFTextField text; + SWFDisplayItem display; + + movie = newSWFMovieWithVersion (version); + movie = newSWFMovie(); + SWFMovie_setRate (movie, 1); + SWFMovie_setDimension (movie, 200, 150); + + text = newSWFTextField (); + display = SWFMovie_add (movie, (SWFBlock) text); + + SWFMovie_add (movie, (SWFBlock) newSWFAction ("" + "trace ('Test whether native properties of TextField are initialized if the movie contains an EditText tag');" + "_global.TextField.prototype.hasOwnProperty = ASnative (101, 5);"...
2007 Mar 20
0
4 commits - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_movie.c test/trace
...lt;ming.h> + +int +main (int argc, char **argv) +{ + SWFMovie movie; + SWFMovieClip parent, child; + SWFDisplayItem item; + + if (Ming_init ()) + return 1; + Ming_useSWFVersion (7); + + movie = newSWFMovie(); + SWFMovie_setRate (movie, 1); + SWFMovie_setDimension (movie, 200, 150); + SWFMovie_add (movie, (SWFBlock) compileSWFActionCode ("" + " trace (\"Check that the parent onLoad event happens before the child's onLoad\");" + "")); + parent = newSWFMovieClip (); + child = newSWFMovieClip (); + item = SWFMovieClip_add (parent, (SWFBl...
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
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', '');" - "}&quot...
2007 Jun 20
0
Branch 'as' - 5 commits - libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie.c test/image
...Shape_addSolidFillStyle (shape, r, g, b, 255); + SWFShape_setRightFillStyle (shape, fill); + SWFShape_drawLineTo (shape, 50, 0); + SWFShape_drawLineTo (shape, 50, 50); + SWFShape_drawLineTo (shape, 0, 50); + SWFShape_drawLineTo (shape, 0, 0); + + switch (type) { + case SHAPE: + item = SWFMovie_add (movie, (SWFBlock) shape); + break; + case MOVIE: + { + SWFMovieClip clip; + clip = newSWFMovieClip (); + SWFMovieClip_add (clip, (SWFBlock) shape); + SWFMovieClip_nextFrame (clip); + item = SWFMovie_add (movie, (SWFBlock) clip); + } + break; + case BUTTON: + { + SWFB...
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
...t argc, char **argv) +{ + SWFMovie movie; + SWFMovieClip clip; + SWFDisplayItem item; + + 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 (...
2007 Mar 16
0
4 commits - libswfdec/swfdec_script.c test/image test/trace
...return 1; + Ming_useSWFVersion (7); + + movie = newSWFMovie(); + SWFMovie_setRate (movie, 1); + SWFMovie_setDimension (movie, 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....
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
...+ clip = (SWFBlock) newSWFMovieClip (); + 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"...
2007 Mar 14
0
10 commits - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loadertarget.c
...isplayItem item; + SWFAction action; + + if (Ming_init ()) + return 1; + Ming_useSWFVersion (7); + + movie = newSWFMovie(); + SWFMovie_setRate (movie, 1); + SWFMovie_setDimension (movie, 200, 150); + video = newSWFVideoStream (); + SWFVideoStream_setDimension (video, 200, 150); + item = SWFMovie_add (movie, (SWFBlock) video); + SWFDisplayItem_setName (item, "video"); + action = compileSWFActionCode ("" + "trace (\"Test what onStatus messages exist in an average movie.\");" + "nc = new NetConnection ();" + "nc.connect (null...
2007 Aug 02
0
10 commits - libswfdec/compiler.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_player.c NEWS test/trace
...NULL; guint i; + size_t len; + byte *data; if (argc < 2) { g_print ("usage: %s FILE ...\n\n", argv[0]); @@ -118,23 +79,14 @@ main (int argc, char **argv) error = NULL; return 1; } - movie = newSWFMovie (); action = newSWFAction (contents); - SWFMovie_add (movie, (SWFBlock) action); - g_free (contents); - - array = g_byte_array_new (); - SWFMovie_output (movie, output_array, array); + data = SWFAction_getByteCode (action, &len); contents = get_name (argv[i]); g_print ("/* compiled from %s */\n", argv[i]);...
2007 Jun 19
0
Branch 'as' - 4 commits - libswfdec/swfdec_codec_video.c libswfdec/swfdec_movie.c test/trace
...: + * Frame 1: PlaceObject + * (Frame 2: RemoveObject) + * Frame 2: PlaceObject + * Frame 3: quit + * The enum below changes properties of the second PlaceObject call. + * + * Note running this test requires a patched version of libmong 0.4, that adds + * SWFDisplayItem_setMove() and allows calling SWFMovie_add() with a NULL + * character. + */ +enum { + /* mark the PlaceObject as a move */ + MODIFY_MOVE = (1 << 0), + /* The next two control what character is set in the second PlaceObject: + * HAS_CHAR & DIFFERENT_CHAR: a Button + * DIFFERENT_CHAR: another MovieClip +...
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
...SWFBlock) clip; +} + +static void +do_movie (int version, 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 = SW...
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
...) shape; +} + +static void +do_movie (int version, int menu) +{ + char name[100]; + SWFMovie movie; + SWFDisplayItem item; + SWFButton button; + SWFButtonRecord rec; + + movie = newSWFMovieWithVersion (version); + SWFMovie_setRate (movie, 10); + SWFMovie_setDimension (movie, 200, 150); + + SWFMovie_add (movie, newSWFInitAction (newSWFAction ( + "button.onPress = function () { trace (\"onPress: \" + this); };" + "button.onRelease = function () { trace (\"onRelease: \" + this); };" + "button.onReleaseOutside = function () { trace (\"onReleaseO...
2007 Jul 26
0
17 commits - doc/swfdec-sections.txt libswfdec/compiler.c libswfdec/.gitignore libswfdec/Makefile.am libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c
...i < argc; i++) { + if (!g_file_get_contents (argv[1], &contents, NULL, &error)) { + g_printerr ("%s\n", error->message); + g_error_free (error); + error = NULL; + return 1; + } + movie = newSWFMovie (); + action = newSWFAction (contents); + SWFMovie_add (movie, (SWFBlock) action); + g_free (contents); + + array = g_byte_array_new (); + SWFMovie_output (movie, output_array, array); + contents = get_name (argv[i]); + g_print ("/* compiled from %s */\n", argv[i]); + g_print ("const unsigned char %s[] = {\n&quo...
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, 1); + add_button_events (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); + } +...
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, 1); + add_button_events (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); + } +...