g0mab2
asked on
flash AS3 gotoAndPlay question
there are many different examples out there that show how to get from one movie clip to a specific frame:
MovieClip(parent).gotoAndS top("intro ");
But what if there was a movieclip within the "intro" frame you wanted to go to? I have not seen a specific post that talks about this.
I am guessing the movieclip within intro you can navigate to a specific frame too?
Help please!
MovieClip(parent).gotoAndS
But what if there was a movieclip within the "intro" frame you wanted to go to? I have not seen a specific post that talks about this.
I am guessing the movieclip within intro you can navigate to a specific frame too?
Help please!
ASKER
I tried that, there has to be something else to it since I keep getting the undesired response.
I am already in a movieclip, so I have to MovieClip(parent).
inside the main_parent frame, there is a mc called MAIN_MC that I want to open to a specific location.
so I have been doing this
MovieClip(parent).main_par ent.MAIN_M C.gotoAndS top("portf olio");
but this is not working.
I am already in a movieclip, so I have to MovieClip(parent).
inside the main_parent frame, there is a mc called MAIN_MC that I want to open to a specific location.
so I have been doing this
MovieClip(parent).main_par
but this is not working.
can you explain the setup more precisely?
on main timeline you have instance x
instance x you have .....
where you're calling the code from etc.
on main timeline you have instance x
instance x you have .....
where you're calling the code from etc.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
truromeo4juliet:
it worked, thank you so much!
it worked, thank you so much!
ASKER
what if when you go to the root, the movie clip you want to go to is on a different frame?
for instance:
MovieClip(root).MAIN_MC.go toAndStop( "portfolio ");
this works if the call comes from the same root frame that portfolio is in.
from root I would like to go one frame over, and two clips down, would that be:
MovieClip(root).main_paren t.MAIN_MC. gotoAndSto p("portfol io");
for instance:
MovieClip(root).MAIN_MC.go
this works if the call comes from the same root frame that portfolio is in.
from root I would like to go one frame over, and two clips down, would that be:
MovieClip(root).main_paren
I'm not sure of what you're asking when you say you want to go one frame over and two clips down. Can you elaborate?
ASKER
I figured it out, thanks anyway.
daddybear.mommybear.babybe
where the mc 'daddybear' is on the main timeline (root) and the mommybear clip is inside the daddybear clip, and the babybear clip is inside the mommybear clip. Make sense ?