Groups | Blog | Home
all groups > flash actionscript > july 2004 >

flash actionscript : Pausing Movieclips?


complexity
7/24/2004 3:01:52 AM
Hey all,

I have a movie in a continous loop, but I am trying to add a on(rollOut) event
that says to the movie clip "pause", then a on(rollOver) event that says play
the exact frame where it was paused.

Is there an easy way to achieve this?

Any help would be great.
Shinchi
7/24/2004 3:24:33 AM
Hi,
the easiest way is to do this

so ur movie is myMovie_mc

so the code goes

myMovie_mc.onRollOut = function()
{
this.stop();
}
myMovie_mc.onRollOver = function()
{
this.play();
}
hope that helps
urami_
7/24/2004 11:24:00 AM


[quoted text, click to view]

on (rollOver) {
_root.MCNameHere.stop();
}
on (releaseOutside, rollOut, dragOut) {
_root.MCNameHere.play();
}


--


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>


By The way:
If you try to mail me , DO NOT *laugh*
AddThis Social Bookmark Button