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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to address clip in diff scene? 1

Status
Not open for further replies.

iostream71

Programmer
Mar 13, 2002
229
US
i have 2 scenes. i want to press a button in the first scene and start a clip on the second frame in the other scene. so basically:

press button in scene 1
goto frame 2 in clip "x" of scene 2
 
on(press){
_root.movieclip_instance's_name.play();
}
Whatever the scene.

Regards,
new.gif
 
don't think that would work

scene(main)) press button
then,
goto frame 2 of movieclip(myClip) in scene(news)

so what action should i put on the button

on(release){
?
}
 
Ok!
Script on button in scene "main":

on (release) {
gotoAndPlay ("news", 1);
}

On first frame of scene "news" (with a stop action):

_root.myClip.gotoAndStop(2);

Regards,
new.gif
 
cool, that worked out =). my question is, why can't i do something like this from my calling scene:

on(release){
news.myClip.gotoAndPlay(2);
}
how do i refer to a particular scene?
 
The movie clip has to be present in the scene and on the frame, in which you're calling it.
Thus, it could be in your main scene, invisible if you have a first clear keyframe on it, or if you've preset it to be invisible in the beginning of the movie, and simply using _root.myClip.gotoAndStop(2); would work fine.
Otherwise, you have to first send the movie to where the clip is present for it to work.

Regards,
And might I be blessed with your vote!
new.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top