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!

problems with tell target! 3

Status
Not open for further replies.

wakkoguy

Technical User
Oct 30, 2001
84
US
hey,

i am having some trouble, i have an animated navigation with 6 buttons. they are placed in a movie clip. in edit mode for the navigation movie clip i have place another movie clip called About (for the about button) at the end. on the about button i have on release tell target to play the movie, but instead it restarts the navigation animation.
help and any design tips would be great appreciated!
 
your nav mc has the same instance name as the one you want to play. if you name the main one "nav" then this code will work:

on (release) {
tellTarget ("_root.nav.About") {
gotoAndPlay ("Roll");
}
}

hope this is what you wanted
 
Or do this with your existing code:

on (release) {
tellTarget ("_root.About.About") {
gotoAndPlay ("Roll");
}
}
 
Here's my 2 cents...

There is some confusion on instance names.
You should, as TheocraticMind as suggested, rename your nav movie clip Nav and keep your About-page mc to About.

But the main thing here is that your About-page mc is within your nav mc so when you target the About-page mc you have to target it through your nav mc.

Your script should thus be:

on (release) {
tellTarget ("_root.Nav.About") {
gotoAndPlay ("Roll");
}
}

Since the tellTarget action is deprecated, you could even more simply use:

on (release){
_root.Nav.About.gotoAndPlay ("Roll");
}

Regards,

new.gif
 
ok then, what is the tellTarget action mainly used for?
 
not realy anything anymore. defining the path the way oldnewbie did is far mroe practical.
 
k stupid question, but my brain is not functioning right now, there's probably an easy answer to this. now that it works, my original navigation (mc nav) stays there while About-page plays. how do i remove the mc Nav?
 
perhaps a blank frame that you tell it to go to on press? other than that you could set the _visibility of all the other buttons to false, but the frame thing would probly be quiker, and cleaner.
 
i did that, now it won't play anything it just goes to a blank frame and doesn't play the mc that i want it to
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top