Bjarne Nyquist wrote:

> > Is there a way to get LINGO to stop an animation when the mouse passes
> > over a sprite, and have the same animation continue after the mouse
> > moves out of the sprite.
>
> Well that depends on how the animation is created.
> I like to use the exitFrame handler to do animation. If you do that its quite easy 
>to set a flag that is dependent on wether the mouse is over the sprite or not
>
> here´s an idea for a behavior on the sprite that animates (NOT TESTED)
>
> property pAnimationFlag
>
> on exitFrame me
>   if pAnimationFlag then
>       doYourAnimationHere
>   end if
> end exitFrame
>
> on enterFrame me
>    pAnimationFlag = 0
> end enterFrame
>
> on exitFrame me
>   pAnimationFlag = 1
> end exitFrame
>
> Bjarne
> _______________________________________________________
> If it's true that we are here to help others, then what exactly are the OTHERS here 
>for?
>
> Bjarne Nyquist
> Researcher, Lingo Programmer
> The Interactive Institute, phone: +46-(0)8 783 24 74
> www.interactiveinstitute.se
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
> email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Thanks alot, I'll try it!

--
Bonne journée!
-------------------------------------------------------
Benoit Bessette
[EMAIL PROTECTED]



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to