search for: swfdec_action_set_target

Displaying 10 results from an estimated 10 matches for "swfdec_action_set_target".

2007 Feb 01
0
Branch 'interpreter' - libswfdec/swfdec_script.c
...rFrame2 %u", (guint) *data); +} + +static char * swfdec_action_print_goto_frame2 (guint action, const guint8 *data, guint len) { gboolean play, bias; @@ -1868,7 +1926,7 @@ static const SwfdecActionSpec actions[25 [0x8b] = { "SetTarget", swfdec_action_print_set_target, 0, 0, { swfdec_action_set_target, swfdec_action_set_target, swfdec_action_set_target, swfdec_action_set_target, swfdec_action_set_target } }, [0x8c] = { "GotoLabel", swfdec_action_print_goto_label, 0, 0, { swfdec_action_goto_label, swfdec_action_goto_label, swfdec_action_goto_label, swfdec_action_goto_label, swfdec_ac...
2007 Apr 12
0
Branch 'as' - 15 commits - 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 libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c
...lval); + cond = r == l; } } - cx->fp->sp--; - cx->fp->sp[-1] = BOOLEAN_TO_JSVAL (cond); - return JS_TRUE; + swfdec_as_stack_pop (cx->frame->stack); + SWFDEC_AS_VALUE_SET_BOOLEAN (swfdec_as_stack_peek (cx->frame->stack, 1), cond); } -#endif static void swfdec_action_set_target (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) @@ -2192,8 +2193,8 @@ const SwfdecActionSpec swfdec_as_actions [SWFDEC_AS_ACTION_ADD2] = { "Add2", NULL, 2, 1, { NULL, NULL, swfdec_action_add2, swfdec_action_add2, swfdec_action_add2 } }, #if 0 [0x48] = { "Les...
2007 Oct 23
0
6 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c libswfdec/swfdec_flash_security.c
..., swfdec_action_print_wait_for_frame, 0, 0, { swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame } }, [SWFDEC_AS_ACTION_SET_TARGET] = { "SetTarget", swfdec_action_print_set_target, 0, 0, { swfdec_action_set_target, swfdec_action_set_target, swfdec_action_set_target, swfdec_action_set_target, swfdec_action_set_target } }, [SWFDEC_AS_ACTION_GOTO_LABEL] = { "GotoLabel", swfdec_action_print_goto_label, 0, 0, { swfdec_action_goto_label, swfdec_action_goto_label, swfdec_action_goto_label, swfdec_actio...
2007 Jan 31
0
Branch 'interpreter' - 20 commits - autogen.sh configure.ac libswfdec/js libswfdec/swfdec_debug.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_script.c
...rsion 3 */ [0x8a] = { "WaitForFrame", swfdec_action_print_wait_for_frame, 0, 0, { swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame } }, - [0x8b] = { "SetTarget", NULL, 0, 0, { swfdec_action_set_target, swfdec_action_set_target, swfdec_action_set_target, swfdec_action_set_target, swfdec_action_set_target } }, + [0x8b] = { "SetTarget", swfdec_action_print_set_target, 0, 0, { swfdec_action_set_target, swfdec_action_set_target, swfdec_action_set_target, swfdec_action_set_target, swfdec_ac...
2007 Apr 04
0
Branch 'as' - 9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_stack.c libswfdec/swfdec_as_stack.h
...ariable, swfdec_action_get_variable } }, + [SWFDEC_AS_ACTION_SET_VARIABLE] = { "SetVariable", NULL, 2, 0, { NULL, swfdec_action_set_variable, swfdec_action_set_variable, swfdec_action_set_variable, swfdec_action_set_variable } }, +#if 0 [0x20] = { "SetTarget2", NULL, 1, 0, { swfdec_action_set_target2, swfdec_action_set_target2, swfdec_action_set_target2, swfdec_action_set_target2, swfdec_action_set_target2 } }, [0x21] = { "StringAdd", NULL, 2, 1, { NULL, swfdec_action_string_add, swfdec_action_string_add, swfdec_action_string_add, swfdec_action_string_add } }, [0x22] = { "...
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
...swfdec/swfdec_as_interpret.c index 7d02680..619d004 100644 --- a/libswfdec/swfdec_as_interpret.c +++ b/libswfdec/swfdec_as_interpret.c @@ -3129,7 +3129,7 @@ const SwfdecActionSpec swfdec_as_actions[256] = { /* version 3 */ [SWFDEC_AS_ACTION_SET_TARGET2] = { "SetTarget2", NULL, 1, 0, swfdec_action_set_target2, 3 }, /* version 4 */ - [0x21] = { "StringAdd", NULL, 2, 1, swfdec_action_string_add, 4 }, + [SWFDEC_AS_ACTION_STRING_ADD] = { "StringAdd", NULL, 2, 1, swfdec_action_string_add, 4 }, [SWFDEC_AS_ACTION_GET_PROPERTY] = { "GetProperty", NULL, 2, 1, swfdec_action_...
2007 Jan 29
0
Branch 'interpreter' - 18 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_sound.c libswfdec/swfdec_pattern.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_script.c
...j = -1; i = - (n_args + 2); while (i < j) { - tmp = cx->fp->sp[j]; - cx->fp->sp[j] = cx->fp->sp[i]; - cx->fp->sp[i] = tmp; + tmp = fp->sp[j]; + fp->sp[j] = fp->sp[i]; + fp->sp[i] = tmp; j--; i++; } @@ -1006,6 +1009,51 @@ swfdec_action_set_target2 (JSContext *cx return swfdec_action_do_set_target (cx, JSVAL_TO_OBJECT (val)); } +static JSBool +swfdec_action_start_drag (JSContext *cx, guint action, const guint8 *data, guint len) +{ + JSStackFrame *fp = cx->fp; + guint stack_size = fp->sp - fp->spbase; + guint n_args = 1; + +...
2007 Feb 22
0
3 commits - libswfdec/swfdec_js.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c
...if (JS_GetClass (cx->fp->scopeChain) != &js_WithClass) { + SWFDEC_ERROR ("Cannot unset target: scope chain contains no with object"); + return JS_TRUE; + } + cx->fp->scopeChain = JS_GetParent (cx, cx->fp->scopeChain); + return JS_TRUE; +} + +static JSBool swfdec_action_set_target (JSContext *cx, guint action, const guint8 *data, guint len) { jsval target; @@ -1279,8 +1305,9 @@ swfdec_action_set_target (JSContext *cx, SWFDEC_ERROR ("SetTarget action does not specify a string"); return JS_FALSE; } - /* evaluate relative to this to not get trapped b...
2007 Apr 04
0
Branch 'as' - 4 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h
...+ if (JS_GetClass (cx->fp->scopeChain) != &js_WithClass) { + SWFDEC_ERROR ("Cannot unset target: scope chain contains no with object"); + return JS_TRUE; + } + cx->fp->scopeChain = JS_GetParent (cx, cx->fp->scopeChain); + return JS_TRUE; +} + +static void +swfdec_action_set_target (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) +{ + jsval target; + + if (!memchr (data, 0, len)) { + SWFDEC_ERROR ("SetTarget action does not specify a string"); + return JS_FALSE; + } + if (*data == '\0') + return swfdec_action_do_unset_target (c...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...rFrame2 %u", (guint) *data); +} + +static char * swfdec_action_print_goto_frame2 (guint action, const guint8 *data, guint len) { gboolean play, bias; @@ -1868,7 +1926,7 @@ static const SwfdecActionSpec actions[25 [0x8b] = { "SetTarget", swfdec_action_print_set_target, 0, 0, { swfdec_action_set_target, swfdec_action_set_target, swfdec_action_set_target, swfdec_action_set_target, swfdec_action_set_target } }, [0x8c] = { "GotoLabel", swfdec_action_print_goto_label, 0, 0, { swfdec_action_goto_label, swfdec_action_goto_label, swfdec_action_goto_label, swfdec_action_goto_label, swfdec_ac...