search for: swfdec_root_movie_get_export

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

2007 Mar 07
0
2 commits - libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.h
...achMovie (JSContext * export = swfdec_js_to_string (cx, argv[0]); name = swfdec_js_to_string (cx, argv[1]); + if (argc > 3) { + SWFDEC_ERROR ("attachMovie's initObject isn't implemented"); + } if (export == NULL || name == NULL) return JS_FALSE; sprite = swfdec_root_movie_get_export (SWFDEC_ROOT_MOVIE (movie->root), export); diff-tree 637a8dcb5663fc692c8b2e222e3555609759f7ff (from 079beedc71d1fc60cf29451ba622c1d576b6a019) Author: Benjamin Otte <otte@gnome.org> Date: Wed Mar 7 21:41:03 2007 +0100 whoops, forgot to update this file diff --git a/libswfdec/swfdec_...
2007 Mar 07
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_movie.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...xport; + int depth; + SwfdecContent *content; + SwfdecGraphic *sprite; + + movie = JS_GetPrivate (cx, obj); + g_assert (movie); + + export = swfdec_js_to_string (cx, argv[0]); + name = swfdec_js_to_string (cx, argv[1]); + if (export == NULL || name == NULL) + return JS_FALSE; + sprite = swfdec_root_movie_get_export (SWFDEC_ROOT_MOVIE (movie->root), export); + if (!SWFDEC_IS_SPRITE (sprite)) { + if (sprite == NULL) { + SWFDEC_WARNING ("no symbol with name %s exported", export); + } else { + SWFDEC_WARNING ("can only use attachMovie with sprites"); + } + return JS_T...
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
...e tests on how the lookup movie => name => registered class is performed */ + SwfdecRootMovie *root; + const char *name; + + /* happens with root movies only */ + if (movie->sprite == NULL) + return JSVAL_NULL; + root = SWFDEC_ROOT_MOVIE (SWFDEC_MOVIE (movie)->root); + name = swfdec_root_movie_get_export_name (root, SWFDEC_CHARACTER (movie->sprite)); + if (name == NULL) + return JSVAL_NULL; + return swfdec_player_get_export_class (root->player, name); } void swfdec_js_movie_create_jsobject (SwfdecMovie *movie) { SwfdecScriptable *script; - jsval fun; + jsval fun = JSVAL_NULL;...