Problem solved!<br><br>I was not calling graphic.play() when my custom play button was released because it was taking the animation back to frame 1 - kind of like a reset. So I was keeping track of the current frame and issuing graphic.clip.gotoAndPlay(currentframe). <br>
<br>Just tried using play() again and the onMovieComplete event fires. <br><br><div class="gmail_quote">On Tue, Sep 7, 2010 at 10:27 AM, Mary Ann Ahearn <span dir="ltr"><<a href="mailto:maryann@moberg.com">maryann@moberg.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Tried it at some point, but it didn't seem to make any difference - may give it another try.<br>
<br><div class="gmail_quote"><div><div></div><div class="h5">On Tue, Sep 7, 2010 at 10:22 AM, Dave Burnett <span dir="ltr"><<a href="mailto:d_b_burnett@hotmail.com" target="_blank">d_b_burnett@hotmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">
<div>
<br>have you got a my_movie.reset(); in there anywhere?<br><br><br><hr>From: <a href="mailto:maryann@moberg.com" target="_blank">maryann@moberg.com</a><br>Date: Tue, 7 Sep 2010 10:19:50 -0400<div><br>To: <a href="mailto:xerte@lists.nottingham.ac.uk" target="_blank">xerte@lists.nottingham.ac.uk</a><br>
</div>Subject: [Xerte] Re: onMovieComplete<div><div></div><div><br><br>Forgot to add that we're using Xerte 2 desktop<br><br><div>On Tue, Sep 7, 2010 at 10:19 AM, Mary Ann Ahearn <span dir="ltr"><<a href="mailto:maryann@moberg.com" target="_blank">maryann@moberg.com</a>></span> wrote:<br>
<blockquote style="padding-left: 1ex;">Because of our need for touch screen controls, I've had to implement our own
simple playback control buttons for our swf animations. <br><br>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?<br><br>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.<br>
<br>Thanks for any help on this!<br><font color="#888888"><br>ma<br><br><br><br>
</font></blockquote></div><br>
<br></div></div><div>
This message and any attachment are intended solely for the addressee and may
contain confidential information. If you have received this message in error,
please send it back to me, and immediately delete it. Please do not use,
copy or disclose the information contained in this message or in any attachment.
Any views or opinions expressed by the author of this email do not necessarily
reflect the views of the University of Nottingham.
<br>
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
<br>
<br></div>_______________________________________________
Xerte mailing list
<a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.                                            </div>
<br></div></div>_______________________________________________<div class="im"><br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></div></blockquote></div><br>
</blockquote></div><br>