X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fabc.c;h=a40f4e2fb3c0a9bd98d6aeb082afc612b77385ac;hb=c4d4ec5ee1d20578b00c371180b7780d14e4cf8f;hp=cea6338e6fc8e5f94d51866098f9a1253e88b2b3;hpb=d625d3512dabbc51ed13bc411369bb87344b0475;p=swftools.git diff --git a/lib/as3/abc.c b/lib/as3/abc.c index cea6338..a40f4e2 100644 --- a/lib/as3/abc.c +++ b/lib/as3/abc.c @@ -1301,6 +1301,10 @@ void swf_AddButtonLinks(SWF*swf, char stop_each_frame, char events) __ debugline(f, 1); __ getlocal_0(f); __ pushscope(f); + if(stop_each_frame) { + __ findpropstrict(f, "[package]::stop"); + __ callpropvoid(f, "[package]::stop", 0); + } } if(tag->id == ST_DEFINEBUTTON || tag->id == ST_DEFINEBUTTON2) { @@ -1313,10 +1317,6 @@ void swf_AddButtonLinks(SWF*swf, char stop_each_frame, char events) __ getlex(f,functionname); __ callpropvoid(f, "::addEventListener" ,2); - if(stop_each_frame) { - __ findpropstrict(f, "[package]::stop"); - __ callpropvoid(f, "[package]::stop", 0); - } needs_framescript = 1; abc_method_body_t*h =