search for: swfdec_movieclip_prop

Displaying 2 results from an estimated 2 matches for "swfdec_movieclip_prop".

Did you mean: swfdec_movieclip_props
2007 Oct 14
0
4 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_sound.c test/trace
...goto error; } else { - SWFDEC_WARNING ("not an object, can't GetProperty"); - goto out; + movie = swfdec_player_get_movie_from_value (SWFDEC_PLAYER (cx), + swfdec_as_stack_peek (cx, 2)); + if (movie == NULL) + goto error; } - swfdec_as_object_get_variable (obj, swfdec_movieclip_props[id].name, - swfdec_as_stack_peek (cx, 1)); + if (id > (cx->version > 4 ? 21 : 18)) { + SWFDEC_WARNING ("trying to SetProperty %u, doesn't exist", id); + goto error; + } + swfdec_as_object_get_variable (SWFDEC_AS_OBJECT (movie), swfdec_movieclip_props[id].name,...
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
...e_asprops.c +++ b/libswfdec/swfdec_movie_asprops.c @@ -347,34 +347,35 @@ mc_root (SwfdecMovie *movie, SwfdecAsVal } struct { + gboolean needs_movie; const char *name; void (* get) (SwfdecMovie *movie, SwfdecAsValue *ret); void (* set) (SwfdecMovie *movie, const SwfdecAsValue *val); } swfdec_movieclip_props[] = { - { SWFDEC_AS_STR__x, mc_x_get, mc_x_set }, - { SWFDEC_AS_STR__y, mc_y_get, mc_y_set }, - { SWFDEC_AS_STR__xscale, mc_xscale_get, mc_xscale_set }, - { SWFDEC_AS_STR__yscale, mc_yscale_get, mc_yscale_set }, - { SWFDEC_AS_STR__currentframe,mc_currentframe, NULL }, -...