Displaying 17 results from an estimated 17 matches for "init_movie".
2007 Mar 20
0
4 commits - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_movie.c test/trace
...ibswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -748,9 +748,9 @@ swfdec_movie_set_parent (SwfdecMovie *mo
}
if (SWFDEC_IS_DEBUGGER (player))
g_signal_emit_by_name (player, "movie-added", movie);
+ swfdec_movie_queue_script (movie, SWFDEC_EVENT_LOAD);
if (klass->init_movie)
klass->init_movie (movie);
- swfdec_movie_queue_script (movie, SWFDEC_EVENT_LOAD);
}
static void
diff-tree 8b7d05d276bf0a66216443bdb8de15707b75d984 (from f0b43bf7ca0fa81ad5b8a3ade399b9c242e08328)
Author: Benjamin Otte <otte@gnome.org>
Date: Tue Mar 20 11:10:24 2007 +0100...
2007 Mar 15
0
11 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_debugger.h libswfdec/swfdec_event.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...-725,6 +742,8 @@ swfdec_movie_set_parent (SwfdecMovie *mo
g_queue_push_tail (player->init_queue, movie);
g_queue_push_tail (player->construct_queue, movie);
}
+ if (SWFDEC_IS_DEBUGGER (player))
+ g_signal_emit_by_name (player, "movie-added", movie);
if (klass->init_movie)
klass->init_movie (movie);
swfdec_movie_queue_script (movie, SWFDEC_EVENT_LOAD);
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index 285eae9..fd528fa 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -378,8 +378,8 @@ swfdec_player_dispose (GO...
2007 Jun 20
1
Branch 'as' - libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
...me : "", movie->depth);
return movie;
}
diff --git a/libswfdec/swfdec_movie.h b/libswfdec/swfdec_movie.h
index 418236a..2d3f20d 100644
--- a/libswfdec/swfdec_movie.h
+++ b/libswfdec/swfdec_movie.h
@@ -135,6 +135,8 @@ struct _SwfdecMovieClass {
/* general vfuncs */
void (* init_movie) (SwfdecMovie * movie);
void (* finish_movie) (SwfdecMovie * movie);
+ void (* replace) (SwfdecMovie * movie,
+ SwfdecGraphic * graphic);
void (* update_extents) (SwfdecMovie * movie,
SwfdecRect * extents);
void (* render) (SwfdecMovie * movie,
diff --git...
2007 Mar 09
0
17 commits - libswfdec/js libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...ve to root or player or something else
@@ -724,6 +710,8 @@ swfdec_movie_set_parent (SwfdecMovie *mo
* new movies to be created (and added to this list)
*/
player->movies = g_list_prepend (player->movies, movie);
+ /* we have to create the JSObject here to get actions queued before init_movie executes */
+ swfdec_js_movie_create_jsobject (movie);
if (klass->init_movie)
klass->init_movie (movie);
swfdec_movie_queue_script (movie, SWFDEC_EVENT_LOAD);
diff-tree bda7fbc753409b8b186e674fdb30601f1b55ebd9 (from bb4cc0da47ef8cc6978c1b51e55a0da1339ed5b9)
Author: Benjamin Otte &...
2007 Sep 06
0
3 commits - libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
...ovie_mark (SwfdecAsObject *object)
{
@@ -696,7 +660,6 @@ swfdec_sprite_movie_class_init (SwfdecSp
object_class->dispose = swfdec_sprite_movie_dispose;
- asobject_class->get = swfdec_sprite_movie_get_variable;
asobject_class->mark = swfdec_sprite_movie_mark;
movie_class->init_movie = swfdec_sprite_movie_init_movie;
diff-tree bef93cc3654b365ede21b7620ea309292d6a0a1d (from 49049ba4180c1ee8491bb69c395cc2c5e8fff09e)
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Sep 5 23:23:02 2007 +0200
make this work when time_t is 32bit, too
diff --git a/libswfdec/swfdec_as_...
2007 Oct 17
0
4 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_movie.c libswfdec/swfdec_system_as.c libswfdec/swfdec_text_field_movie.c test/trace
...e (GObject *object)
text = SWFDEC_TEXT_FIELD_MOVIE (object);
- swfdec_text_field_movie_set_listen_variable (text, NULL);
-
swfdec_text_field_movie_free_paragraphs (text);
for (iter = text->formats; iter != NULL; iter = iter->next) {
@@ -618,6 +617,14 @@ swfdec_text_field_movie_init_movie (SwfdecMovie *movie)
}
static void
+swfdec_text_field_movie_finish_movie (SwfdecMovie *movie)
+{
+ SwfdecTextFieldMovie *text = SWFDEC_TEXT_FIELD_MOVIE (movie);
+
+ swfdec_text_field_movie_set_listen_variable (text, NULL);
+}
+
+static void
swfdec_text_field_movie_class_init (SwfdecTextField...
2007 Jun 27
0
Branch 'as' - 3 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_js_video.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_video_movie_as.c libswfdec/swfdec_video_movie.c
...ovie.c
@@ -22,6 +22,7 @@
#endif
#include "swfdec_video_movie.h"
+#include "swfdec_player_internal.h"
G_DEFINE_TYPE (SwfdecVideoMovie, swfdec_video_movie, SWFDEC_TYPE_MOVIE)
@@ -95,6 +96,14 @@ swfdec_video_movie_iterate_end (SwfdecMo
}
static void
+swfdec_video_movie_init_movie (SwfdecMovie *movie)
+{
+ SwfdecPlayer *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context);
+
+ swfdec_as_object_set_constructor (SWFDEC_AS_OBJECT (movie), player->Video, FALSE);
+}
+
+static void
swfdec_video_movie_class_init (SwfdecVideoMovieClass * g_class)
{
GObjectClass *o...
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
...- movie->name = swfdec_as_context_get_string (context, G_OBJECT_TYPE_NAME (movie));
- movie->has_name = FALSE;
- }
- SWFDEC_LOG ("created movie %s", movie->name);
+ g_return_if_fail (SWFDEC_IS_MOVIE (movie));
+
+ klass = SWFDEC_MOVIE_GET_CLASS (movie);
+ if (klass->init_movie)
+ klass->init_movie (movie);
}
-static void
-swfdec_movie_set_parent (SwfdecMovie *movie)
+/**
+ * swfdec_movie_new:
+ * @player: a #SwfdecPlayer
+ * @depth: depth of movie
+ * @parent: the parent movie or %NULL to make this a root movie
+ * @graphic: the graphic that is displayed by this...
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
...c_int ("depth", "depth", "z order inside the parent",
+ G_MININT, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+
movie_class->iterate_end = swfdec_movie_iterate_end;
}
@@ -894,6 +935,25 @@ swfdec_movie_initialize (SwfdecMovie *mo
klass->init_movie (movie);
}
+void
+swfdec_movie_set_depth (SwfdecMovie *movie, int depth)
+{
+ g_return_if_fail (SWFDEC_IS_MOVIE (movie));
+
+ if (movie->depth == depth)
+ return;
+
+ swfdec_movie_invalidate (movie);
+ movie->depth = depth;
+ if (movie->parent) {
+ movie->parent->list =...
2007 Jun 27
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie_as.c
...make swfdec_movie_initialize() work with non-sprite movies
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index d42aac3..457644e 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -555,24 +555,27 @@ static void
swfdec_sprite_movie_init_movie (SwfdecMovie *mov)
{
SwfdecSpriteMovie *movie = SWFDEC_SPRITE_MOVIE (mov);
- SwfdecAsContext *context;
- SwfdecAsObject *constructor;
- const char *name;
+ SwfdecAsContext *context = SWFDEC_AS_OBJECT (movie)->context;
+ SwfdecAsObject *constructor = NULL;
- g_assert (movie->sprite...
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
...rg>
Date: Wed Nov 28 11:51:15 2007 +0100
implement contains()
diff --git a/libswfdec/swfdec_button_movie.c b/libswfdec/swfdec_button_movie.c
index 3ceae26..0a8a50c 100644
--- a/libswfdec/swfdec_button_movie.c
+++ b/libswfdec/swfdec_button_movie.c
@@ -229,46 +229,56 @@ swfdec_button_movie_init_movie (SwfdecMovie *mov)
swfdec_button_movie_set_state (movie, SWFDEC_BUTTON_UP);
}
-#if 0
-static gboolean G_GNUC_UNUSED
-swfdec_button_movie_mouse_in (SwfdecMovie *movie, double x, double y)
+static gboolean
+swfdec_button_movie_hit_test (SwfdecButtonMovie *button, double x, double y)
{
- GList...
2007 Oct 17
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...bleListenerFunction function);
+
G_END_DECLS
#endif
diff --git a/libswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c
index dc31b4e..e9f7800 100644
--- a/libswfdec/swfdec_text_field_movie.c
+++ b/libswfdec/swfdec_text_field_movie.c
@@ -609,14 +609,9 @@ swfdec_text_field_movie_init_movie (SwfdecMovie *movie)
}
// variable
- if (text->text->variable != NULL)
- {
- // FIXME: test
- const char *str;
- text->variable = swfdec_as_context_get_string (cx, text->text->variable);
- str = swfdec_text_field_movie_get_variable_text (text);
- if (str != N...
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
...resource));
+ swfdec_player_add_action_script (player, mov, sprite->init_action, 0);
}
}
return TRUE;
@@ -571,47 +562,20 @@ swfdec_sprite_movie_dispose (GObject *object)
}
static void
-swfdec_sprite_movie_do_enter_frame (gpointer movie, gpointer unused)
+swfdec_sprite_movie_init_movie (SwfdecMovie *movie)
{
- if (SWFDEC_MOVIE (movie)->will_be_removed)
- return;
- swfdec_movie_execute_script (movie, SWFDEC_EVENT_ENTER);
+ swfdec_sprite_movie_goto (SWFDEC_SPRITE_MOVIE (movie), 1);
}
static void
-swfdec_sprite_movie_do_init_movie (SwfdecSpriteMovie *movie)
+swfdec_spr...
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
...p;& g_str_equal (s, text->str))
+ s = swfdec_as_value_to_string (parent->context, &val);
+ g_assert (s);
+ if (text->str && g_str_equal (s, text->str))
return;
swfdec_edit_text_movie_set_text (text, s);
@@ -97,44 +92,30 @@ static void
swfdec_edit_text_movie_init_movie (SwfdecMovie *movie)
{
SwfdecEditTextMovie *text = SWFDEC_EDIT_TEXT_MOVIE (movie);
- SwfdecScriptable *parent;
- JSObject *jsobj;
- JSString *string;
- jsval val;
+ SwfdecAsObject *parent;
+ SwfdecAsValue val = { 0, };
+ const char *s;
if (text->text->variable == NULL)
re...
2007 Jan 16
0
9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_cache.c libswfdec/swfdec_cached.c libswfdec/swfdec_cached.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_image.c
...))
return;
- s = swfdec_js_to_string (player->jscx, val);
+ s = swfdec_js_to_string (parent->jscx, val);
if (!s && !text->str)
return;
if (s && text->str && g_str_equal (s, text->str))
@@ -98,31 +97,28 @@ static void
swfdec_edit_text_movie_init_movie (SwfdecMovie *movie)
{
SwfdecEditTextMovie *text = SWFDEC_EDIT_TEXT_MOVIE (movie);
- SwfdecPlayer *player;
- JSObject *object;
+ SwfdecScriptable *parent;
+ JSObject *jsobj;
JSString *string;
jsval val;
if (text->text->variable == NULL)
return;
- player = SWFDEC_ROO...
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
...dec_movie_invalidate (movie);
}
-
- return TRUE;
}
static void
@@ -114,7 +133,7 @@ swfdec_video_movie_class_init (SwfdecVideoMovieClass * g_class)
movie_class->update_extents = swfdec_video_movie_update_extents;
movie_class->render = swfdec_video_movie_render;
movie_class->init_movie = swfdec_video_movie_init_movie;
- movie_class->iterate_end = swfdec_video_movie_iterate_end;
+ movie_class->set_ratio = swfdec_video_movie_set_ratio;
}
static void
@@ -131,6 +150,10 @@ swfdec_video_movie_set_input (SwfdecVideoMovie *movie, SwfdecVideoMovieInput *in
movie->input =...
2007 Oct 22
0
12 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...>scroll_changed = FALSE;
+ }
+}
+
+static void
swfdec_text_field_movie_class_init (SwfdecTextFieldMovieClass * g_class)
{
GObjectClass *object_class = G_OBJECT_CLASS (g_class);
@@ -952,6 +989,7 @@ swfdec_text_field_movie_class_init (SwfdecTextFieldMovieClass * g_class)
movie_class->init_movie = swfdec_text_field_movie_init_movie;
movie_class->finish_movie = swfdec_text_field_movie_finish_movie;
+ movie_class->iterate_start = swfdec_text_field_movie_iterate;
movie_class->update_extents = swfdec_text_field_movie_update_extents;
movie_class->render = swfdec_text_field...