Displaying 19 results from an estimated 19 matches for "swfdec_event_load".
2007 Jun 13
0
Branch 'as' - 2 commits - libswfdec/swfdec_sprite.c test/trace
...te.c
index eaee0db..de4c741 100644
--- a/libswfdec/swfdec_sprite.c
+++ b/libswfdec/swfdec_sprite.c
@@ -369,7 +369,7 @@ swfdec_spriteseg_do_place_object (Swfdec
SWFDEC_INFO ("clip event with flags 0x%X, key code %d", event_flags, key_code);
#define SWFDEC_IMPLEMENTED_EVENTS \
- (SWFDEC_EVENT_LOAD | SWFDEC_EVENT_UNLOAD | SWFDEC_EVENT_ENTER | \
+ (SWFDEC_EVENT_LOAD | SWFDEC_EVENT_UNLOAD | SWFDEC_EVENT_ENTER | SWFDEC_EVENT_INITIALIZE | SWFDEC_EVENT_CONSTRUCT | \
SWFDEC_EVENT_MOUSE_DOWN | SWFDEC_EVENT_MOUSE_MOVE | SWFDEC_EVENT_MOUSE_UP)
if (event_flags & ~SWFDEC_IMPLEMENTED_EVEN...
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
...if (new_movie) {
SWFDEC_LOG ("duplicated %s as %s to depth %u", movie->name, new_movie->name, new_movie->depth);
- if (SWFDEC_IS_SPRITE_MOVIE (new_movie)) {
- g_queue_push_tail (SWFDEC_PLAYER (cx)->init_queue, new_movie);
- swfdec_movie_queue_script (new_movie, SWFDEC_EVENT_LOAD);
- swfdec_movie_run_construct (new_movie);
- }
- swfdec_movie_initialize (new_movie);
}
}
swfdec_as_stack_pop_n (cx, 3);
diff --git a/libswfdec/swfdec_event.c b/libswfdec/swfdec_event.c
index 03f05fa..c368ae3 100644
--- a/libswfdec/swfdec_event.c
+++ b/libswfdec/swfdec_event.c...
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
...content->has_color_transform ? &content->color_transform : NULL,
content->ratio, content->clip_depth, content->events);
- g_queue_push_tail (player->init_queue, movie);
- g_queue_push_tail (player->construct_queue, movie);
- swfdec_movie_queue_script (movie, SWFDEC_EVENT_LOAD);
+ if (SWFDEC_IS_SPRITE_MOVIE (movie)) {
+ g_queue_push_tail (player->init_queue, movie);
+ g_queue_push_tail (player->construct_queue, movie);
+ swfdec_movie_queue_script (movie, SWFDEC_EVENT_LOAD);
+ }
swfdec_movie_initialize (movie);
return movie;
diff --git a/libswfdec...
2007 Mar 20
0
4 commits - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_movie.c test/trace
...index 4c4ec47..17e2217 100644
--- a/libswfdec/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 Ma...
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
...(new_movie) {
SWFDEC_LOG ("duplicated %s as %s to depth %u", movie->name, new_movie->name, new_movie->depth);
+ if (SWFDEC_IS_SPRITE_MOVIE (new_movie)) {
+ g_queue_push_tail (SWFDEC_PLAYER (cx)->init_queue, new_movie);
+ swfdec_movie_queue_script (new_movie, SWFDEC_EVENT_LOAD);
+ swfdec_movie_run_construct (new_movie);
+ }
swfdec_movie_initialize (new_movie);
}
swfdec_as_stack_pop_n (cx, 3);
diff-tree 5a0de2944bba30fd70804ba25412e589ef62e666 (from b7672f1e4e0ee0a598397080589d6a2a156bf2cf)
Author: Benjamin Otte <otte at gnome.org>
Date: Thu Jul...
2007 Jun 14
0
Branch 'as' - 4 commits - libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite_movie.c player/swfdec_debug_movies.c
...content->has_color_transform ? &content->color_transform : NULL,
+ content->ratio, content->clip_depth, content->events);
g_queue_push_tail (player->init_queue, movie);
g_queue_push_tail (player->construct_queue, movie);
swfdec_movie_queue_script (movie, SWFDEC_EVENT_LOAD);
diff --git a/libswfdec/swfdec_movie.h b/libswfdec/swfdec_movie.h
index 0b89f52..418236a 100644
--- a/libswfdec/swfdec_movie.h
+++ b/libswfdec/swfdec_movie.h
@@ -54,6 +54,8 @@ struct _SwfdecContent {
guint ratio;
cairo_matrix_t transform;
SwfdecColorTransform color_transform;
+ gboolea...
2007 Jul 03
0
Branch 'as' - 7 commits - libswfdec/swfdec_as_math.c libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie.c test/trace
...ULL,
has_ctrans ? &ctrans : NULL, ratio, clip_depth, events);
+ swfdec_movie_initialize (cur);
if (SWFDEC_IS_SPRITE_MOVIE (cur)) {
g_queue_push_tail (player->init_queue, cur);
g_queue_push_tail (player->construct_queue, cur);
swfdec_movie_queue_script (cur, SWFDEC_EVENT_LOAD);
}
- swfdec_movie_initialize (cur);
}
return TRUE;
diff-tree a55cf4416f10ff80f138b1d9b339da5574695b36 (from fc334a6258888b30b192d08bcc621ce7729486c5)
Author: Benjamin Otte <otte at gnome.org>
Date: Mon Jul 2 23:05:00 2007 +0100
fix Math constants to be Math variables n...
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
...ayer->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 (GObject *object)
g_hash_table_foreach_steal (player->registered_classes, free_registere...
2007 Jul 04
0
Branch 'as' - 25 commits - libswfdec/Makefile.am libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...content->ratio, content->clip_depth, content->events);
- swfdec_movie_initialize (movie);
if (SWFDEC_IS_SPRITE_MOVIE (movie)) {
g_queue_push_tail (player->init_queue, movie);
g_queue_push_tail (player->construct_queue, movie);
swfdec_movie_queue_script (movie, SWFDEC_EVENT_LOAD);
}
+ swfdec_movie_initialize (movie);
return movie;
}
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index 5c40d39..1f088ba 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -266,12 +266,12 @@ swfdec_sprite_movie_perform...
2007 Nov 08
0
configure.ac libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h
...ec/swfdec_movie.c
index 9c028a1..1859971 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -418,9 +418,27 @@ swfdec_movie_queue_script (SwfdecMovie *movie, SwfdecEventType condition)
case SWFDEC_EVENT_CONSTRUCT:
importance = 1;
break;
- default:
+ case SWFDEC_EVENT_LOAD:
+ case SWFDEC_EVENT_ENTER:
+ case SWFDEC_EVENT_UNLOAD:
+ case SWFDEC_EVENT_MOUSE_MOVE:
+ case SWFDEC_EVENT_MOUSE_DOWN:
+ case SWFDEC_EVENT_MOUSE_UP:
+ case SWFDEC_EVENT_KEY_UP:
+ case SWFDEC_EVENT_KEY_DOWN:
+ case SWFDEC_EVENT_DATA:
+ case SWFDEC_EVENT_PRESS:
+ case S...
2007 Mar 07
0
11 commits - libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h
...onPress",
+ "onRelease",
+ "onReleaseOutside",
+ "onRollOver",
+ "onRollOut",
+ "onDragOver",
+ "onDragOut",
+ NULL,
+ NULL
+};
+
+const char *
+swfdec_event_type_get_name (SwfdecEventType type)
+{
+ switch (type) {
+ case SWFDEC_EVENT_LOAD:
+ return event_names[0];
+ case SWFDEC_EVENT_ENTER:
+ return event_names[1];
+ case SWFDEC_EVENT_UNLOAD:
+ return event_names[2];
+ case SWFDEC_EVENT_MOUSE_MOVE:
+ return event_names[3];
+ case SWFDEC_EVENT_MOUSE_DOWN:
+ return event_names[4];
+ case SWFDEC_...
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
...{
- g_queue_push_tail (player->init_queue, movie);
- g_queue_push_tail (player->construct_queue, movie);
- }
+ /* emit the new-movie signal */
if (SWFDEC_IS_DEBUGGER (player))
g_signal_emit_by_name (player, "movie-added", movie);
- swfdec_movie_queue_script (movie, SWFDEC_EVENT_LOAD);
+ return movie;
}
+/* FIXME: since this is only used in PlaceObject, wouldn't it be easier to just have
+ * swfdec_movie_update_static_properties (movie); that's notified when any of these change
+ * and let PlaceObject modify the movie directly?
+ */
void
-swfdec_movie_initialize (S...
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
...ayer->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 <otte@gnome.org>
Date: Thu Mar 8 15:01:46 2007 +0100
add swfdec_js_construct_object
The function constructs an object for the given constructor
diff --gi...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...{
- unsigned int i;
+ guint i;
g_return_if_fail (list != NULL);
@@ -157,7 +157,7 @@ swfdec_event_list_free (SwfdecEventList
}
static const char *
-swfdec_event_list_condition_name (unsigned int conditions)
+swfdec_event_list_condition_name (guint conditions)
{
if (conditions & SWFDEC_EVENT_LOAD)
return "Load";
@@ -202,7 +202,7 @@ swfdec_event_list_condition_name (unsign
void
swfdec_event_list_parse (SwfdecEventList *list, SwfdecBits *bits, int version,
- unsigned int conditions, guint8 key, const char *description)
+ guint conditions, guint8 key, const char *descr...
2007 Nov 07
0
14 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field_movie.c
...;resource, graphic, NULL);
+ swfdec_movie_set_static_properties (cur, &transform,
+ has_ctrans ? &ctrans : NULL, -1, 0, 0, NULL);
+ swfdec_movie_queue_script (cur, SWFDEC_EVENT_INITIALIZE);
+ swfdec_movie_queue_script (cur, SWFDEC_EVENT_CONSTRUCT);
+ swfdec_movie_queue_script (cur, SWFDEC_EVENT_LOAD);
+ swfdec_movie_initialize (cur);
+
+ return TRUE;
+}
+
+
+static gboolean
swfdec_sprite_movie_perform_place (SwfdecSpriteMovie *movie, SwfdecBits *bits, guint tag)
{
SwfdecPlayer *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context);
@@ -77,7 +145,7 @@ swfdec_sprite_movie_perform_...
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
...content->ratio, content->clip_depth, content->blend_mode, content->events);
- if (SWFDEC_IS_SPRITE_MOVIE (movie)) {
- swfdec_movie_queue_script (movie, SWFDEC_EVENT_INITIALIZE);
- swfdec_movie_queue_script (movie, SWFDEC_EVENT_CONSTRUCT);
- swfdec_movie_queue_script (movie, SWFDEC_EVENT_LOAD);
- }
- swfdec_movie_initialize (movie);
-
- return movie;
-}
-
static void
swfdec_movie_load_variables_on_finish (SwfdecAsObject *target,
const char *text)
diff --git a/libswfdec/swfdec_movie.h b/libswfdec/swfdec_movie.h
index 678a0da..4e43342 100644
--- a/libswfdec/swfdec_movie.h
+++ b/...
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...{
- unsigned int i;
+ guint i;
g_return_if_fail (list != NULL);
@@ -157,7 +157,7 @@ swfdec_event_list_free (SwfdecEventList
}
static const char *
-swfdec_event_list_condition_name (unsigned int conditions)
+swfdec_event_list_condition_name (guint conditions)
{
if (conditions & SWFDEC_EVENT_LOAD)
return "Load";
@@ -202,7 +202,7 @@ swfdec_event_list_condition_name (unsign
void
swfdec_event_list_parse (SwfdecEventList *list, SwfdecBits *bits, int version,
- unsigned int conditions, guint8 key, const char *description)
+ guint conditions, guint8 key, const char *descr...
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
...a #SwfdecEventType
+ *
+ * Gets the name for the event as a refcounted string or %NULL if the
+ * given clip event has no associated event.
+ *
+ * Returns: The name of the event or %NULL if none.
+ **/
const char *
swfdec_event_type_get_name (SwfdecEventType type)
{
switch (type) {
case SWFDEC_EVENT_LOAD:
- return event_names[0];
+ return SWFDEC_AS_STR_ON_LOAD;
case SWFDEC_EVENT_ENTER:
- return event_names[1];
+ return SWFDEC_AS_STR_ON_ENTER_FRAME;
case SWFDEC_EVENT_UNLOAD:
- return event_names[2];
+ return SWFDEC_AS_STR_ON_UNLOAD;
case SWFDEC_EVENT_MOUS...
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
...movie->blend_mode, movie->events);
+ sandbox = SWFDEC_SANDBOX (SWFDEC_AS_OBJECT (movie)->context->global);
+ swfdec_sandbox_unuse (sandbox);
if (SWFDEC_IS_SPRITE_MOVIE (copy)) {
swfdec_movie_queue_script (copy, SWFDEC_EVENT_INITIALIZE);
swfdec_movie_queue_script (copy, SWFDEC_EVENT_LOAD);
swfdec_movie_execute (copy, SWFDEC_EVENT_CONSTRUCT);
}
swfdec_movie_initialize (copy);
+ swfdec_sandbox_use (sandbox);
return copy;
}
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index 3393514..231b27a 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/...