all groups > flash actionscript > june 2004 >
You're in the

flash actionscript

group:

Movie Control


Movie Control simprini
6/16/2004 11:39:45 PM
flash actionscript: Hi Guys please a litle help.

I have a movie clip loaded on a target on a main movie, now I need to control
and play that movie using a button, and I have the following script on that
button,

on (release){
with (_root.movie){
play();
}
}

but it is not playing the movie as it plays when they are together on the
same main movie without the loading on the target, can any of you guys help?

Thank You very mutch
Re: Movie Control kglad
6/17/2004 12:48:31 AM
what code did you use to load your swf? if you used movie for the instance
name of your target movieclip, that was a poor choice. you should change the
name. for example, if you use:

targetMC.loadMovie("yourswf.swf");

then AFTER your swf completes loading, attached to your button you could use:

on(release){
_root.targetMC.play();
}
AddThis Social Bookmark Button