From: Matthias Kramm Date: Wed, 28 Jan 2009 16:55:59 +0000 (+0100) Subject: allow jumps to frames >256 X-Git-Tag: release-0-9-0~207 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=dbc0f4b791d051296d8297c232bd0c8969c00795 allow jumps to frames >256 --- diff --git a/lib/as3/abc.c b/lib/as3/abc.c index b9509c4..edebba2 100644 --- a/lib/as3/abc.c +++ b/lib/as3/abc.c @@ -1423,12 +1423,9 @@ void swf_AddButtonLinks(SWF*swf, char stop_each_frame, char events) ActionTAG*oldaction = swf_ButtonGetAction(tag); if(oldaction && oldaction->op == ACTION__GOTOFRAME) { int framenr = GET16(oldaction->data); - if(framenr>254) { - fprintf(stderr, "Warning: Couldn't translate jump to frame %d to flash 9 actionscript\n", framenr); - } if(!events) { __ findpropstrict(h,"[package]::gotoAndStop"); - __ pushbyte(h,framenr+1); + __ pushuint(h,framenr+1); __ callpropvoid(h,"[package]::gotoAndStop", 1); } else { char framename[80];