Both movie clips MUST have an “instance” name. If you don’t know what that is, then you should go and read my pages starting at http://www.centerspin.com/tutorial/level1/101page1.htm
once you have given each an instance name, you can continue. For the sake of these examples, I’m going to use the names, “myMovieClip1” and “myMovieClip2”.
Select the first movie clip, and double click on it to go into “edit in place” mode.
If there is not a blank layer just for actionscript, create one now. Open up you’re “Actions” panel. Select the first frame of the action script layer and type this into the panel.
stop();
This prevents the movie clip from playing right off the bat.
Repeat this process for the second clip so that it too has a stop(); method.
Now. in clip one, you want to select the last frame of this action script layer and place a keyframe there. menu option “Insert/blank keyFrame”. Select this keyframe and type in the following code in the action script panel.
_parent.myMovieClip2.play();
stop();
what this is doing is saying… "look in the timeline that contains me, for an object called myMovieClip2, and make it start to play. Also, stop me from playing any more.
This will only work if myMovieClip2 exists at the time that this command takes place, so make sure that both movie clips exist on the main timeline at once.
You can also have the movie clips control the main timeline, with any of the following sorts of commands.
_parent.play();
_parent.stop();
_parent.gotoAndPlay(14);
_root.gotoAndStop(56);
in this case, _root acts the same way as _parent, but technicaly it’s different. Since movie clips can be placed inside each other, you can have levels upon levels of them each inside another. The _parent refers to the timeline which contains whatever is calling it, but the _root refers to the main timeline from where ever you may be in the structure of your movie. Since both movie clips are on the main timeline, any calls to either _parent, or _root will be the same thing for all intents and purposes.
Hope that helps a bit. If the above doesn’t then my tutorial pages should. I go over OOP and dot syntax calls in there.