Displaying 10 results from an estimated 10 matches for "swfdec_type_sprite_movi".
Did you mean:
swfdec_type_sprite_movie
2007 Jun 15
0
Branch 'as' - 2 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_sprite_movie_as.c test/trace
...);
+}
+
+static void
swfdec_sprite_movie_copy_props (SwfdecMovie *target, SwfdecMovie *src)
{
target->matrix = src->matrix;
@@ -421,6 +439,10 @@ swfdec_sprite_movie_init_context (Swfdec
/* now add all the functions */
swfdec_as_object_add_function (proto, SWFDEC_AS_STR_attachMovie, SWFDEC_TYPE_SPRITE_MOVIE,
swfdec_sprite_movie_attachMovie, 3);
+ if (version >= 6) {
+ swfdec_as_object_add_function (proto, SWFDEC_AS_STR_createEmptyMovieClip, SWFDEC_TYPE_SPRITE_MOVIE,
+ swfdec_sprite_movie_createEmptyMovieClip, 2);
+ }
swfdec_as_object_add_function (proto, SWFDEC_AS_STR_duplicateMovie...
2007 Jun 09
0
Branch 'as' - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie_as.c
...ent = content;
if (!movie->modified) {
movie->matrix = content->transform;
@@ -994,7 +997,7 @@ swfdec_movie_new_for_player (SwfdecPlaye
content = swfdec_content_new ((int) depth - 16384);
content->name = g_strdup_printf ("_level%u", depth);
ret = g_object_new (SWFDEC_TYPE_SPRITE_MOVIE, NULL);
- g_object_weak_ref (G_OBJECT (ret), (GWeakNotify) swfdec_content_free, content);
+ content->free = TRUE;
if (swfdec_as_context_use_mem (SWFDEC_AS_CONTEXT (player), sizeof (SwfdecSpriteMovie))) {
g_object_ref (ret);
swfdec_as_object_add (SWFDEC_AS_OBJECT (ret),
diff --git...
2007 Aug 07
0
5 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_keys.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie_as.c player/swfdebug.c player/swfdec_debug_movies.c player/swfdec_debug_movies.h test/trace
...ec_movie_compare_depths);
+ }
+ g_object_notify (G_OBJECT (movie), "depth");
+}
+
/**
* swfdec_movie_new:
* @player: a #SwfdecPlayer
@@ -925,13 +985,14 @@ swfdec_movie_new (SwfdecPlayer *player,
/* create the right movie */
if (graphic == NULL) {
- movie = g_object_new (SWFDEC_TYPE_SPRITE_MOVIE, NULL);
+ movie = g_object_new (SWFDEC_TYPE_SPRITE_MOVIE, "depth", depth, NULL);
size = sizeof (SwfdecSpriteMovie);
} else {
SwfdecGraphicClass *klass = SWFDEC_GRAPHIC_GET_CLASS (graphic);
g_return_val_if_fail (klass->create_movie != NULL, NULL);
movie = klas...
2007 Jul 27
0
11 commits - libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite_movie_as.c test/trace
...SWFDEC_AS_VALUE_SET_OBJECT (rval, object);
+}
+
void
swfdec_sprite_movie_init_context (SwfdecPlayer *player, guint version)
{
@@ -469,4 +502,6 @@ swfdec_sprite_movie_init_context (Swfdec
swfdec_sprite_movie_stopDrag, 0);
swfdec_as_object_add_function (proto, SWFDEC_AS_STR_swapDepths, SWFDEC_TYPE_SPRITE_MOVIE,
swfdec_sprite_movie_swapDepths, 1);
+ swfdec_as_object_add_function (proto, SWFDEC_AS_STR_getBounds, SWFDEC_TYPE_SPRITE_MOVIE,
+ swfdec_sprite_movie_getBounds, 0);
};
diff-tree 4179c20f5d0f9f072ad00a63e4eeb58437f602d0 (from cddba05b6db9b8fc0e4935afeb505790f68a2179)
Author: Benjami...
2007 Nov 12
0
20 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_string.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_player_as.c
...wfdec_sprite_movie_as.c
+++ b/libswfdec/swfdec_sprite_movie_as.c
@@ -151,10 +151,11 @@ swfdec_sprite_movie_gotoAndPlay (SwfdecAsContext *cx, SwfdecAsObject *object,
guint argc, SwfdecAsValue *argv, SwfdecAsValue *rval)
{
SwfdecSpriteMovie *movie;
+ SwfdecAsValue val;
- SWFDEC_AS_CHECK (SWFDEC_TYPE_SPRITE_MOVIE, (gpointer)&movie, "");
+ SWFDEC_AS_CHECK (SWFDEC_TYPE_SPRITE_MOVIE, (gpointer)&movie, "v", &val);
- swfdec_sprite_movie_do_goto (movie, &argv[0]);
+ swfdec_sprite_movie_do_goto (movie, &val);
movie->playing = TRUE;
}
@@ -164,10 +165,11 @@ sw...
2007 Aug 22
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_script_function.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
..._prototype, &val);
+ swfdec_as_object_set_variable_and_flags (player->MovieClip,
+ SWFDEC_AS_STR_prototype, &val, SWFDEC_AS_VARIABLE_HIDDEN |
+ SWFDEC_AS_VARIABLE_PERMANENT);
/* now add all the functions */
swfdec_as_object_add_function (proto, SWFDEC_AS_STR_attachMovie, SWFDEC_TYPE_SPRITE_MOVIE,
swfdec_sprite_movie_attachMovie, 3);
diff --git a/libswfdec/swfdec_video_movie_as.c b/libswfdec/swfdec_video_movie_as.c
index 79574e2..bde3a24 100644
--- a/libswfdec/swfdec_video_movie_as.c
+++ b/libswfdec/swfdec_video_movie_as.c
@@ -71,15 +71,18 @@ swfdec_video_movie_init_context (SwfdecP...
2007 Jun 13
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_sprite.c
...e_find (parent, depth) == NULL, NULL);
+ } else {
+ /* FIXME: do a find on player here */
+ }
+ g_return_val_if_fail (graphic == NULL || SWFDEC_IS_GRAPHIC (graphic), NULL);
- swfdec_movie_set_name (movie);
+ /* create the right movie */
+ if (graphic == NULL) {
+ movie = g_object_new (SWFDEC_TYPE_SPRITE_MOVIE, NULL);
+ size = sizeof (SwfdecSpriteMovie);
+ } else {
+ SwfdecGraphicClass *klass = SWFDEC_GRAPHIC_GET_CLASS (graphic);
+ g_return_val_if_fail (klass->create_movie != NULL, NULL);
+ movie = klass->create_movie (graphic, &size);
+ }
+ /* register it to the VM */
+ /* FIX...
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
...static void
diff --git a/libswfdec/swfdec_sprite.c b/libswfdec/swfdec_sprite.c
index 6b358f1..51a9b0f 100644
--- a/libswfdec/swfdec_sprite.c
+++ b/libswfdec/swfdec_sprite.c
@@ -172,6 +172,7 @@ swfdec_sprite_create_movie (SwfdecGraphic *graphic, gsize *size)
SwfdecSpriteMovie *ret = g_object_new (SWFDEC_TYPE_SPRITE_MOVIE, NULL);
ret->sprite = SWFDEC_SPRITE (graphic);
+ ret->n_frames = ret->sprite->n_frames;
*size = sizeof (SwfdecSpriteMovie);
return SWFDEC_MOVIE (ret);
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index fb39bb6..e8d4062 100644
--- a/libswf...
2007 Oct 17
0
28 commits - configure.ac debian/changelog debian/control debian/copyright debian/.gitignore debian/libswfdec0.dirs debian/libswfdec0.files debian/libswfdec0.shlibs debian/libswfdec-dev.dirs debian/libswfdec-dev.files debian/rules debian/swf-player.dirs
...4
--- a/libswfdec/swfdec_sprite_movie.h
+++ b/libswfdec/swfdec_sprite_movie.h
@@ -27,7 +27,7 @@
G_BEGIN_DECLS
-typedef struct _SwfdecSpriteMovie SwfdecSpriteMovie;
+//typedef struct _SwfdecSpriteMovie SwfdecSpriteMovie;
typedef struct _SwfdecSpriteMovieClass SwfdecSpriteMovieClass;
#define SWFDEC_TYPE_SPRITE_MOVIE (swfdec_sprite_movie_get_type())
@@ -66,6 +66,12 @@ GType swfdec_sprite_movie_get_type (void);
void swfdec_sprite_movie_goto (SwfdecSpriteMovie * movie,
guint goto_frame);
+void swfdec_sprite_movie_unload (SwfdecSpriteMovie * movie);
+void swfdec_sprite_movi...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...fdec_sprite.c
+++ b/libswfdec/swfdec_sprite.c
@@ -477,11 +477,12 @@ swfdec_spriteseg_remove_object_2 (Swfdec
}
static SwfdecMovie *
-swfdec_sprite_create_movie (SwfdecGraphic *graphic)
+swfdec_sprite_create_movie (SwfdecGraphic *graphic, gsize *size)
{
SwfdecSpriteMovie *ret = g_object_new (SWFDEC_TYPE_SPRITE_MOVIE, NULL);
ret->sprite = SWFDEC_SPRITE (graphic);
+ *size = sizeof (SwfdecSpriteMovie);
return SWFDEC_MOVIE (ret);
}
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index a114315..d4210f5 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec...