Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

control of movie with myclip command.

Status
Not open for further replies.

tommytx

Programmer
Nov 27, 2002
28
US
I am experinced in the control of movie clips remotely when the movie clip is part of the program and in my library.

Is there anyway to control a flash movie when an swf file is brought in via loadMovieNum(movie1.swf",2);

Is there anyway to tell it to stop when I want it to, or start or replay or even to tell when it is finished so I can then command something else to happen after it plays.

In other words, do I have any control over basic functions like you do with movie clips that are part of the flash program.
 
You certainely can but only when you're sure the movie is fully loaded, and not on the same actionscript as the loadMovieNum action itself.
Thus you would simply target the level on which you loaded this external movie (mind you you can also load it in an empty container clip within your main movie and still control it in a slightly different manner...), and add any actions you could normally add to movie clips...

_level2.play();
_level2._visible = false;
_level2.another_mc.gotoAndStop("frame_label");
Etc...

You could also have an onEnterFrame function within your main movie and monitor the playing current frame number of the movie loaded on level 2, and when it equals it's total frames number, have whatever other action performed.

If you decide to load it in a empty movie clip container, then you would target the container's instance name rather than the level number, and control the loaded movie through that instance name.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top