I'm using attachMovie() to make a pressed button animate once then stop:
.flash filename="box.swf" fps=12 version=7 bbox=500x500 compress
.png fn1i fan.png
.swf fn1s fan.swf
.sprite sp
.put fn1s pin=center
.action:
fn1s.stop();
.end
.frame 1
.frame 60
.end
.action:
_root.attachMovie("sp","spuse",2,{_x:400, _y:400});
.end
.button bt
.show fn1i as=idle
.show fn1i as=hover
.show fn1i as=press
.on_press:
spuse.fn1s.gotoAndPlay(1);
.end
.end
.put bt pin=center x=100 y=100
.end
(strange positions are for debugging)
The frame rates of the attached swf and the enclosing swf are the same.
But the animation doesn't always play to completion, stopping at
seemingly random times.
Using swfc 2011-01-23-1815, flash in Firefox 10.2 r153, same result in
Chrome.
1. Is there an implied ".frame 0" at the beginning of a file or a
sprite? Should I declare frames 0->x or 1->x+1?
2. Any ideas on why the animation won't play to completion?
Thanks for any insight.
Kirk
--
Kirk Zurell
[email protected]