git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d625d35
)
fixed stop generation in button script
author
kramm
<kramm>
Tue, 23 Dec 2008 18:41:42 +0000
(18:41 +0000)
committer
kramm
<kramm>
Tue, 23 Dec 2008 18:41:42 +0000
(18:41 +0000)
lib/as3/abc.c
patch
|
blob
|
history
diff --git
a/lib/as3/abc.c
b/lib/as3/abc.c
index
cea6338
..
a40f4e2
100644
(file)
--- 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);
__ 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) {
}
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);
__ 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 =
needs_framescript = 1;
abc_method_body_t*h =