Groups | Blog | Home
all groups > flash actionscript > december 2005 >

flash actionscript : Controlling movie clips


_Scrumpy
12/22/2005 10:17:14 PM
This is very frustrating - how can I control a movie loaded in to a movie clip
using loadMovie? I want to load the movie clips first, then play them as I
need them. I made a simple movie (movie.swf) and put a stop(); on the first
frame to prevent it from playing automatically when it's loaded. Now, how do I
get it to play when I want it to?

From everything I've read it should be as simple as this:

mc.loadMovie("movie.swf");
mc.play();

But that doesn't work at all! What am I missing?

Thanks!
WizyWyg
12/22/2005 11:58:04 PM
krl
12/22/2005 11:59:24 PM
It looks like you aren't giving it enought time to load.
If you make two clips with stop and play functionalities you'll see that it
works.
on(press){
mc.stop();
}
on(press){
mc.play();
}
I looked in the MovieClip.onLoad just for kicks to have it in effect play like
your code, it says some stupid thing about onClipEvent(load) that I can't seem
to figure out, but if you want it to play like that anyways just take out the
stop() in your clip.

If this isn't what you're looking for and that onClipEvent seems more on the
lines let me know if you get it working. onClipEvent(load) is just giving me
trash left and right.

Hope it helps.
God bless.
krl
AddThis Social Bookmark Button