search for: swfdec_as_str_addlistener

Displaying 3 results from an estimated 3 matches for "swfdec_as_str_addlistener".

2007 Jun 10
0
Branch 'as' - 5 commits - libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie_asprops.c test/trace
...use_as.c +++ b/libswfdec/swfdec_mouse_as.c @@ -76,8 +76,10 @@ swfdec_mouse_init_context (SwfdecPlayer SWFDEC_AS_VALUE_SET_OBJECT (&val, mouse); swfdec_as_object_set_variable (SWFDEC_AS_CONTEXT (player)->global, SWFDEC_AS_STR_Mouse, &val); - swfdec_as_object_add_function (mouse, SWFDEC_AS_STR_addListener, 0, swfdec_mouse_addListener, 1); - swfdec_as_object_add_function (mouse, SWFDEC_AS_STR_removeListener, 0, swfdec_mouse_removeListener, 1); + if (version > 5) { + swfdec_as_object_add_function (mouse, SWFDEC_AS_STR_addListener, 0, swfdec_mouse_addListener, 1); + swfdec_as_object_add_func...
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
...dec_as_object_new (SWFDEC_AS_CONTEXT (player)); - if (!mouse) - return; - SWFDEC_AS_VALUE_SET_OBJECT (&val, mouse); - swfdec_as_object_set_variable (SWFDEC_AS_CONTEXT (player)->global, SWFDEC_AS_STR_Mouse, &val); - - if (version > 5) { - swfdec_as_object_add_function (mouse, SWFDEC_AS_STR_addListener, 0, swfdec_mouse_addListener, 1); - swfdec_as_object_add_function (mouse, SWFDEC_AS_STR_removeListener, 0, swfdec_mouse_removeListener, 1); - } - swfdec_as_object_add_function (mouse, SWFDEC_AS_STR_hide, 0, swfdec_mouse_hide, 0); - swfdec_as_object_add_function (mouse, SWFDEC_AS_STR_show, 0,...
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
...libswfdec/swfdec_text_field_movie.c @@ -890,6 +890,11 @@ swfdec_text_field_movie_init_movie (SwfdecMovie *movie) SWFDEC_AS_VALUE_GET_OBJECT (&val)); } + // listen self + SWFDEC_AS_VALUE_SET_OBJECT (&val, SWFDEC_AS_OBJECT (movie)); + swfdec_as_object_call (SWFDEC_AS_OBJECT (movie), SWFDEC_AS_STR_addListener, + 1, &val, NULL); + // format text->format_new = SWFDEC_TEXT_FORMAT (swfdec_text_format_new_no_properties (cx)); diff --git a/libswfdec/swfdec_text_field_movie_as.c b/libswfdec/swfdec_text_field_movie_as.c index 4b85cc9..4235111 100644 --- a/libswfdec/swfdec_text_field_movie...