[Xerte] Re: onMovieComplete
Mary Ann Ahearn
maryann at moberg.com
Tue Sep 7 15:58:02 BST 2010
Problem solved!
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).
Just tried using play() again and the onMovieComplete event fires.
On Tue, Sep 7, 2010 at 10:27 AM, Mary Ann Ahearn <maryann at moberg.com> wrote:
> Tried it at some point, but it didn't seem to make any difference - may
> give it another try.
>
> On Tue, Sep 7, 2010 at 10:22 AM, Dave Burnett <d_b_burnett at hotmail.com>wrote:
>
>>
>> have you got a my_movie.reset(); in there anywhere?
>>
>>
>> ------------------------------
>> From: maryann at moberg.com
>> Date: Tue, 7 Sep 2010 10:19:50 -0400
>>
>> To: xerte at lists.nottingham.ac.uk
>> Subject: [Xerte] Re: onMovieComplete
>>
>>
>> Forgot to add that we're using Xerte 2 desktop
>>
>> On Tue, Sep 7, 2010 at 10:19 AM, Mary Ann Ahearn <maryann at moberg.com>wrote:
>>
>> 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
>>
>>
>>
>>
>>
>> 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.
>>
>> _______________________________________________ Xerte mailing list
>> Xerte at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte 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.
>>
>> _______________________________________________
>>
>> Xerte mailing list
>> Xerte at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>
>> 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.
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100907/245dde8f/attachment.html
More information about the Xerte
mailing list