search for: settarget

Displaying 20 results from an estimated 35 matches for "settarget".

Did you mean: gettarget
2007 Oct 25
0
4 commits - libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h libswfdec/swfdec_sprite_movie.c test/trace
...c_button_movie.c | 10 ++++---- libswfdec/swfdec_resource.c | 10 ++++---- libswfdec/swfdec_resource.h | 2 - libswfdec/swfdec_sprite_movie.c | 3 -- test/trace/Makefile.am | 37 ++++++++++++++++++------------ test/trace/settarget-tostring-5.swf |binary test/trace/settarget-tostring-5.swf.trace | 1 test/trace/settarget-tostring-6.swf |binary test/trace/settarget-tostring-6.swf.trace | 1 test/trace/settarget-tostring-7.swf |binary test/trace/settarget-tostring-7.swf.trace | 1 test/trace/set...
2007 Nov 14
0
5 commits - libswfdec/.gitignore libswfdec/swfdec_initialize.as test/image test/sound test/trace
...t/trace/Makefile.am @@ -495,7 +495,7 @@ EXTRA_DIST = \ double.swf \ double.swf.trace \ double.swf.trace.org \ - double-to-string.as + double-to-string.as \ double-to-string-5.swf \ double-to-string-5.swf.trace \ double-to-string-5.swf.trace.org \ @@ -1717,15 +1717,15 @@ EXTRA_DIST = \ settarget-6.swf.trace \ settarget-7.swf \ settarget-7.swf.trace \ - settarget-tostring-5.swf - settarget-tostring-5.swf.trace - settarget-tostring-6.swf - settarget-tostring-6.swf.trace - settarget-tostring-7.swf - settarget-tostring-7.swf.trace - settarget-tostring-8.swf - settarget-tostring-8.swf.trace...
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...ly the first directory, but all of them remove code dupliction and associated SEGV when reading 0-size RGBA gradients more bad duplication implement swfdec_movie_get_root () function rewrite GetVariable stuff once again - this time it works improve debugging prints for SetTarget actions make SetVariable use the new lookup stuff, too lookup first variables in new lookup code not using target, but usual frame code slash paths are treated like a normal variable when they don't reference a movie add all the tests that accumulated during GetVariable...
2007 Jun 27
0
Branch 'as' - 4 commits - test/trace
...ion-target.as @@ -0,0 +1,18 @@ +// makeswf -v 7 -s 200x150 -r 1 -o definelocal-function-target.swf definelocal-function-target.as + +trace ("Check DefineLocal in functions sets variables in the function's scope"); + +createEmptyMovieClip ("movie", 0); + +function foo () { + setTarget ("movie"); + var bla = 42; + setTarget (""); + trace (this.bla); + trace (movie.bla); +} +foo (); +trace (bla); +trace (movie.bla); + +loadMovie ("FSCommand:quit", ""); diff --git a/test/trace/definelocal-target-5.swf b/test/trace/definelocal-target-5.swf...
2007 Feb 22
0
3 commits - libswfdec/swfdec_js.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c
...1278,6 @@ swfdec_action_do_set_target (JSContext * /* FIXME: this whole function stops working the moment it's used together * with With */ - if (target == cx->fp->scopeChain) - return JS_TRUE; - if (target == cx->fp->thisp) { - /* FIXME: will probably break once SetTarget is called inside DefineFunctions */ - cx->fp->scopeChain = cx->fp->thisp; - return JS_TRUE; - } with = js_NewObject(cx, &js_WithClass, target, cx->fp->scopeChain); if (!with) return JS_FALSE; @@ -1271,6 +1286,17 @@ swfdec_action_do_set_target (JSContext * }...
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
...HIS_OBJECT (cx, cx->fp->scopeChain); *val = OBJECT_TO_JSVAL (obj); } return JS_TRUE; diff-tree 5a4bd5f45bc800d333c356097037c13d13152850 (from 7f5416c27464e7f7f59444e8b2fff80eb65a43c2) Author: Benjamin Otte <otte@gnome.org> Date: Sun Jan 28 22:17:14 2007 +0100 implement SetTarget and SetTarget2 diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c index 8f86eea..dca72e0 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -949,6 +949,59 @@ swfdec_action_equals2 (JSContext *cx, gu return JS_TRUE; } +static JSBool +swfdec_action_do_set...
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
...1, 1, { NULL, NULL, swfdec_action_new_method, swfdec_action_new_method, swfdec_action_new_method } }, diff-tree 75d5878407131d54858da7a2443c9ff5e793c86c (from 1f5c7b93200bf3416a9ebad2ef079f46348a76c6) Author: Benjamin Otte <otte@gnome.org> Date: Thu Apr 12 10:51:22 2007 +0200 implement SetTarget and SetTarget2 diff --git a/libswfdec/swfdec_as_frame.c b/libswfdec/swfdec_as_frame.c index da19217..36db616 100644 --- a/libswfdec/swfdec_as_frame.c +++ b/libswfdec/swfdec_as_frame.c @@ -57,6 +57,8 @@ swfdec_as_frame_mark (SwfdecAsObject *ob swfdec_as_object_mark (SWFDEC_AS_OBJECT (frame->n...
2007 Oct 10
0
4 commits - libswfdec/Makefile.am libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h m4/gtk-doc.m4 Makefile.am test/trace
...[test x$enable_gtk_doc = xyes]) + AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"]) +]) diff-tree 620c672f0f02a04773e1ce2206438b7ba4916d7c (from 6e07ccf5a40c80611e894d2371911984a132ad14) Author: Benjamin Otte <otte at gnome.org> Date: Wed Oct 10 22:07:53 2007 +0200 setTarget null does not reset the target diff --git a/libswfdec/swfdec_initialize.as b/libswfdec/swfdec_initialize.as index 032acd7..b42e06a 100644 --- a/libswfdec/swfdec_initialize.as +++ b/libswfdec/swfdec_initialize.as @@ -239,7 +239,7 @@ MovieClip.prototype["loadVariables"] = f } else {...
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
...&color_class, swfdec_js_color_new, 0, NULL, color_methods, NULL, NULL); } diff-tree 90bd9323aab5388329dfac37a165bd421818875c (from 97a972c232892d919de3045f69e6fc3fac4b8ad3) Author: Benjamin Otte <otte@gnome.org> Date: Wed Jan 31 16:27:20 2007 +0100 add print function for SetTarget diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c index 9921af8..7c24b10 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -1407,6 +1407,15 @@ swfdec_action_target_path (JSContext *cx /*** PRINT FUNCTIONS ***/ static char * +swfdec_action_print_set_targ...
2007 Jun 08
0
Changes to 'refs/tags/0.4.2'
...nt RandomNumber and PushDuplicate ints are ints not uints in Push action stop printing out all actions implement ActionLess another fix for swfdec_js_internal implement Equals2 and fix If and Goto to jump correctly didn't catch NULL here, oops implement SetTarget and SetTarget2 various fixes to reference the correct this object implement StartDrag and EndDrag actions implement StopSounds implement NewObject implement InitObject action enable gtk-doc in autogen.sh rework audio configuration subsystem Merge bran...
2013 Feb 19
0
[LLVMdev] LLVM/Clang 3.1: Add a new include path in a clang C++ based parser
...t;),clang::frontend::Quoted ,false, true, false, false, false); TheCompInst->createDiagnostics(0, 0); TargetOptions TO; TO.Triple = llvm::sys::getDefaultTargetTriple(); TargetInfo *TI = TargetInfo::CreateTargetInfo(TheCompInst->getDiagnostics(), TO); TheCompInst->setTarget(TI); TheCompInst->createFileManager(); FileManager &FileMgr = TheCompInst->getFileManager(); TheCompInst->createSourceManager(FileMgr); SourceManager &SourceMgr = TheCompInst->getSourceManager(); TheCompInst->createPreprocessor(); TheCompInst-&...
2013 Feb 19
0
[LLVMdev] LLVM/Clang 3.1: Add a new include path in a clang C++ based parser
...t;),clang::frontend::Quoted ,false, true, false, false, false); TheCompInst->createDiagnostics(0, 0); TargetOptions TO; TO.Triple = llvm::sys::getDefaultTargetTriple(); TargetInfo *TI = TargetInfo::CreateTargetInfo(TheCompInst->getDiagnostics(), TO); TheCompInst->setTarget(TI); TheCompInst->createFileManager(); FileManager &FileMgr = TheCompInst->getFileManager(); TheCompInst->createSourceManager(FileMgr); SourceManager &SourceMgr = TheCompInst->getSourceManager(); TheCompInst->createPreprocessor(); TheCompInst-&...
2005 Apr 05
0
Connecting messages to methods
...-- require "fox12" require "fox12/responder" include Fox class Window < FXMainWindow include Responder ID_SELF, ID_BTN = enum(FXMainWindow::ID_LAST, 2) def initialize(a, title) super(a, title, nil, nil, DECOR_ALL, 0, 0, 640, 480) self.setSelector(ID_SELF) self.setTarget(self) self.connect(SEL_CLOSE, method(:onClose)) self.connect(SEL_COMMAND, method(:onCommand)) FXButton.new(self, "Click me!", nil, self, ID_BTN) end def create super show(PLACEMENT_SCREEN) end def onClose(sender, sel, event) getApp.exit(0) end def onCommand(sender, se...
2007 Oct 11
0
2 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
...+--------------------- 3 files changed, 206 insertions(+), 206 deletions(-) New commits: diff-tree d5d06f45e7c5a64725dd1c6fe061ff1e0fd15110 (from 25e5a2b81639daef1308a6899a2cf78ee9b74f63) Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Thu Oct 11 02:36:11 2007 +0300 Fix another setTarget (null) to setTarget ("") diff --git a/libswfdec/swfdec_initialize.as b/libswfdec/swfdec_initialize.as index b42e06a..3fffa4e 100644 --- a/libswfdec/swfdec_initialize.as +++ b/libswfdec/swfdec_initialize.as @@ -253,7 +253,7 @@ MovieClip.prototype["loadMovie"] = funct } else {...
2007 Nov 15
2
Changes to 'refs/tags/0.5.4'
Tag '0.5.4' created by Benjamin Otte <otte at gnome.org> at 2007-11-15 10:12 -0800 release 0.5.4 ("Turkish Cycling Federation") -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHPBurvMv5VCdLq8QRAj1KAJ40NHRRS3gKyJjSjyyoH7gDaGi/tQCeOha/ R5PF4bZQqmSdJ64t8EbD4cA= =8qBy -----END PGP SIGNATURE----- Changes since the dawn of time: Benjamin Otte (40):
2007 Feb 01
0
Branch 'interpreter' - libswfdec/swfdec_script.c
...return NULL; + } + return g_strdup_printf ("WaitForFrame2 %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_g...
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
...ec/swfdec_as_interpret.c b/libswfdec/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] = { "...
2007 Jun 10
1
variable scope
caveat: I haven't either read actionscript language spec nor really got through swfdec context, frame and such. This is fully based on blocky.swf code inspection. thanks to flare, i can extract the below beautiful code. You don't need to understand the whole thing but there is one thing to notice: border[XY]start are initialized in on(press) and get used in on(release). Currently swfdec
2007 May 17
0
Branch 'as' - 8 commits - libswfdec/.gitignore libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_object.h libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie_as.c
...swfdec_as_object_find_variable (SWFDEC_AS_OBJECT (cur), variable); if (ret) - return ret; + return SWFDEC_AS_OBJECT (cur); if (cur->next == NULL) break; cur = cur->next; @@ -198,15 +211,17 @@ swfdec_as_frame_find_variable (SwfdecAsF /* 1) the target set via SetTarget */ if (frame->target) { ret = swfdec_as_object_find_variable (frame->target, variable); + if (ret) + return frame->target; } else { /* The default target is the original object that called into us */ ret = swfdec_as_object_find_variable (SWFDEC_AS_FRAME (cur)-&...
2007 Jan 18
0
Branch 'interpreter' - 2 commits - libswfdec/js libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c
...t;, swfdec_action_print_wait_for_frame }, + [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 }, [0x8c] = { "GotoLabel", NULL }, /* version 4 */ @@ -262,12 +346,14 @@ static gboolean validate_action (guint action, const guint8 *data, guint len, gpointer script) { /* we might want to do stuff here for certain actions */ +#if 0 { char *foo = swfdec_scr...