Displaying 13 results from an estimated 13 matches for "doinitaction".
2007 Mar 07
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_movie.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...2
libswfdec/swfdec_sprite_movie.c | 41 ---------------
libswfdec/swfdec_swf_decoder.c | 18 ------
libswfdec/swfdec_swf_decoder.h | 4 -
libswfdec/swfdec_tag.c | 52 -------------------
libswfdec/swfdec_types.h | 1
test/trace/DoInitAction-once.swf |binary
test/trace/DoInitAction-once.swf.trace | 12 ++++
test/trace/DoInitAction-this.swf |binary
test/trace/DoInitAction-this.swf.trace | 4 +
test/trace/ExportAssets.swf |binary
test/trace/ExportAssets.swf.trace | 9 +++
test/trace/Makefile.am...
2007 Nov 14
0
5 commits - libswfdec/.gitignore libswfdec/swfdec_initialize.as test/image test/sound test/trace
...diff --git a/test/trace/Makefile.am b/test/trace/Makefile.am
index 3eb9bc8..584e7be 100644
--- a/test/trace/Makefile.am
+++ b/test/trace/Makefile.am
@@ -492,6 +492,10 @@ EXTRA_DIST = \
doaction-before-placeobject.c \
doaction-before-placeobject.swf \
doaction-before-placeobject.swf.trace \
+ DoInitAction-once.swf \
+ DoInitAction-once.swf.trace \
+ DoInitAction-this.swf \
+ DoInitAction-this.swf.trace \
double.swf \
double.swf.trace \
double.swf.trace.org \
@@ -584,6 +588,8 @@ EXTRA_DIST = \
export-case-6.swf.trace \
export-case-7.swf \
export-case-7.swf.trace \
+ ExportAssets.swf \
+ E...
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...der_get_video/audio more robust
unref connection and stream after setting them
fix video scaling is correct
: is an unescaped character for formencoded
improve debugging
register the loader correctly
No need for storing the player in the script anymore
read DoInitAction contents
implement ActionInitArray
add array test
s/swfdec_action_to_number/swfdec_value_to_number/
implement ActionToNumber
implement Delete2
only remove movie as property if it is one
allow attaching runtime data to characters
use per-character data...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...der_get_video/audio more robust
unref connection and stream after setting them
fix video scaling is correct
: is an unescaped character for formencoded
improve debugging
register the loader correctly
No need for storing the player in the script anymore
read DoInitAction contents
implement ActionInitArray
add array test
s/swfdec_action_to_number/swfdec_value_to_number/
implement ActionToNumber
implement Delete2
only remove movie as property if it is one
allow attaching runtime data to characters
use per-character data...
2007 Mar 05
0
11 commits - configure.ac libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_movie.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_swf_decoder.c
...O_CFLAGS)
if test "$HAVE_CAIRO" = "no"; then
diff-tree bc1fe2987c20d2425c0e7997270dea35aa168c92 (from 260cdc86a897a8f76a923c6deef48c1f28dc475b)
Author: Benjamin Otte <otte@gnome.org>
Date: Mon Mar 5 00:30:24 2007 +0100
use per-character data to check if movie's DoInitAction has been run,
and if not, run it
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index d5545df..22e0458 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -32,6 +32,38 @@
#include "swfdec_script.h"
#include "swf...
2008 Jan 02
0
4 commits - libswfdec/Makefile.am libswfdec/swfdec_movie.c libswfdec/swfdec_shape_parser.c test/dump.c test/trace
...uot;, "_level" + i);
+ }
+} else {
+ delete this.$version;
+ trace (this.$version);
+ loadMovie ("fscommand:quit", "");
+}
commit d03071b49846f69e27903c68b91ad34a58b5e3b4
Author: Benjamin Otte <otte at gnome.org>
Date: Tue Jan 1 21:42:58 2008 +0100
add DoInitAction
diff --git a/test/dump.c b/test/dump.c
index 48f037d..efea56d 100644
--- a/test/dump.c
+++ b/test/dump.c
@@ -153,6 +153,9 @@ dump_sprite (SwfdecSwfDecoder *dec, SwfdecSprite *s)
case SWFDEC_TAG_EXPORTASSETS:
g_print (" %4u export\n", j);
break;
+ case SWFDEC_TAG_DOINITACTION:...
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c test/trace
...""
+ "loadMovie (\"fscommand:quit\", \"\");"
+ ));
+ SWFMovie_nextFrame (movie);
+
+ real_name = g_strdup_printf ("initaction-queue-%d.swf", version);
+ /* remove this after having understood that the generated code was modified to have
+ * the DoInitAction tag placed _after_ the PlaceObject tag */
+ g_assert (FALSE);
+ SWFMovie_save (movie, real_name);
+ g_free (real_name);
+}
+
+int
+main (int argc, char **argv)
+{
+ int i;
+
+ if (Ming_init ())
+ return 1;
+
+ for (i = 8; i > 4; i--)
+ do_movie (i);
+
+ return 0;
+}
commit 9641151c...
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c
...%s %u as %s", G_OBJECT_TYPE_NAME (object), id, name);
+ g_print ("exporting %s %u as %s\n", G_OBJECT_TYPE_NAME (object), id, name);
+ g_object_ref (object);
+ swfdec_resource_add_export (resource, object, name);
+ }
+ }
+ }
+ return TRUE;
+ case SWFDEC_TAG_DOINITACTION:
+ if (!first_time)
+ return TRUE;
+ if (!swfdec_movie_get_own_resource (mov)) {
+ SWFDEC_FIXME ("behavior of init actions in DefineSprite untested");
+ }
+ {
+ guint id;
+ SwfdecSprite *sprite;
+ char *name;
+
+ id = swfdec_bits_get_u16 (&bits);
+ SWFDEC_LOG (&quo...
2007 Jun 15
0
Branch 'as' - 5 commits - libswfdec/swfdec_as_native_function.c libswfdec/swfdec_edittext.c libswfdec/swfdec_edittext.h libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_morphshape.h
...[SWFDEC_TAG_DEFINEBUTTON2] = {"DefineButton2", tag_func_define_button_2, 0},
[SWFDEC_TAG_DEFINEBITSJPEG3] = {"DefineBitsJPEG3", tag_func_define_bits_jpeg_3, 0},
[SWFDEC_TAG_DEFINEBITSLOSSLESS2] =
@@ -662,13 +636,13 @@ static struct tag_func_struct tag_funcs[
[SWFDEC_TAG_DOINITACTION] = {"DoInitAction", tag_func_do_init_action, SPRITE},
[SWFDEC_TAG_DEFINEVIDEOSTREAM] = {"DefineVideoStream", tag_func_define_video, 0},
[SWFDEC_TAG_VIDEOFRAME] = {"VideoFrame", tag_func_video_frame, 0},
- [SWFDEC_TAG_DEFINEFONTINFO2] = {"DefineFontInfo2&quo...
2007 Feb 13
0
9 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c test/Makefile.am test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c
..._CLIPEVENTFLAGS, 1, NULL },
{ "actions", SWFEDIT_TOKEN_OBJECT, 1, PlaceObject2Action },
{ NULL, 0, 0, NULL }
};
+static const SwfeditTagDefinition DoAction[] = {
+ { "action", SWFEDIT_TOKEN_SCRIPT, 0, NULL },
+ { NULL, 0, 0, NULL }
+};
+static const SwfeditTagDefinition DoInitAction[] = {
+ { "character", SWFEDIT_TOKEN_UINT16, 0, NULL },
+ { "action", SWFEDIT_TOKEN_SCRIPT, 0, NULL },
+ { NULL, 0, 0, NULL }
+};
static const SwfeditTagDefinition *tags[] = {
[SWFDEC_TAG_SHOWFRAME] = ShowFrame,
[SWFDEC_TAG_SETBACKGROUNDCOLOR] = SetBackgroundColor,...
2007 Jul 21
0
12 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/jpeg libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...e
diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c
index fb8dfc7..b6acf1b 100644
--- a/libswfdec/swfdec_tag.c
+++ b/libswfdec/swfdec_tag.c
@@ -668,7 +668,7 @@ static struct tag_func_struct tag_funcs[
[SWFDEC_TAG_ENABLEDEBUGGER] = {"EnableDebugger", NULL, 0},
[SWFDEC_TAG_DOINITACTION] = {"DoInitAction", tag_func_do_init_action, SPRITE},
[SWFDEC_TAG_DEFINEVIDEOSTREAM] = {"DefineVideoStream", tag_func_define_video, 0},
- [SWFDEC_TAG_VIDEOFRAME] = {"VideoFrame", tag_func_video_frame, 0},
+ [SWFDEC_TAG_VIDEOFRAME] = {"VideoFrame", tag_fu...
2007 Oct 18
0
18 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_flash_security.c
...6 +697,16 @@ static struct tag_func_struct tag_funcs[] = {
[SWFDEC_TAG_EXPORTASSETS] = {"ExportAssets", tag_func_export_assets, 0},
[SWFDEC_TAG_IMPORTASSETS] = {"ImportAssets", NULL, 0},
[SWFDEC_TAG_ENABLEDEBUGGER] = {"EnableDebugger", NULL, 0},
- [SWFDEC_TAG_DOINITACTION] = {"DoInitAction", tag_func_do_init_action, SPRITE},
+ [SWFDEC_TAG_DOINITACTION] = {"DoInitAction", tag_func_do_init_action, SWFDEC_TAG_DEFINE_SPRITE },
[SWFDEC_TAG_DEFINEVIDEOSTREAM] = {"DefineVideoStream", tag_func_define_video, 0},
- [SWFDEC_TAG_VIDEOFRAME] =...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...reak;
- case SWFDEC_TAG_SHOWFRAME:
- j++;
- break;
- case SWFDEC_TAG_STARTSOUND:
- /* FIXME add info about what sound etc */
- g_print (" %4u start sound\n", j);
- break;
- case SWFDEC_TAG_EXPORTASSETS:
- g_print (" %4u export\n", j);
- break;
- case SWFDEC_TAG_DOINITACTION:
- g_print (" %4u init action\n", j);
- break;
- default:
- g_assert_not_reached ();
- }
- }
- }
-}
-
-static void
-dump_path (cairo_path_t *path)
-{
- int i;
- cairo_path_data_t *data = path->data;
- const char *name;
-
- for (i = 0; i < path->num_data; i++)...