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

HELP-MOVIE CLIPS 1

Status
Not open for further replies.

sam182

Technical User
May 24, 2001
1
US
I'm making a menu where i need to have a button within a movie clip that, when you click on it, you go to a frame in the original scene that the movie clip is in, NOT a frame in the actual movie clip itself. it seems that i cannot do this no matter how hard i try. please give me some advice...
 
I had this exact infuriating problem a few weeks ago. What you have to do first is label the first frame in the scene you want to go to. This is because you can't target scenes directly from the goto function within a movieclip. Then, in your button action use the command TellTarget(/) (/ means you're targetting the root timeline rather than the movieclip timeline) then Goto and Play (whatever your framelabel is called). I know this works for Flash 4 (which is what i am using currently) but the / may be something different in Flash 5 but ill go and check.

Hope this helps! Nick Price
nick.price@misuk.net
 
For lash 5 there is the thing called dot notation. I have just started learning ActionScript on F5 but here goes.

Instead of using "TellTarget" and the "/", in F5 you just use the "goto" action and paths are done with a "."

Example:
If you have a MC on the timeline of scene 1 and you want to manipulate the main [root] time line from within the MC, it would go something like this. [this of course is on the button]

on (release) {
_root.gotoAndStop (2);
}

You would use this same way to goto scene 2,3 or any scene but like HowardMarks said, lable frame 1 on the scene you are targeting or target any lable on the scene you want to go to.

Hope this helps, like I said, I am just getting into this myself so I hope it is clear enough and I hope I'm right[ish].

roda B-)
 
I put an FAQ in the FAQ section last night containing some of my FLA's. One of them relates to targetting the main timeline and other mc's from within mc's. Might be worth a dissection. I can't remember exactly which method I used for targetting (there's more than one), but that FLA should paint a clearer picture for you.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top