[Xerte] onMovieComplete

Mary Ann Ahearn maryann at moberg.com
Tue Sep 7 15:19:00 BST 2010


Because of our need for touch screen controls, I've had to implement our own
simple playback control buttons for our swf animations.

I'm listening for the onMovieComplete event to toggle my play/pause button
when the swf animation finishes, but the event is only firing the first time
the animation plays through.  If I replay the animation the event doesn't
fire.  I suspect it has something to do with my PLAY button not resetting
something the xerte built-in play button does. Is there some property I
should be looking at or setting?

Alternately I can compare "graphic.clip._currentframe"  to
"graphic.clip._totalframes"  and generate a home-brewed event, but I'm not
sure where to put it so that it will run every frame.  Or if such a thing
will be too much of a drag on the playback of the swf.

Thanks for any help on this!

ma
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100907/3e066151/attachment.html


More information about the Xerte mailing list