PDA

View Full Version : tell target



abichap
November 5th, 2002, 09:59 AM
Hi. Can anyone enlighten me on tell target?
for example: tellTarget"../mainmenu" where mainmenu is the name of my movie clip.
Can anyone tell me what does the "../" stands for?
Thnks

lostinbeta
November 5th, 2002, 12:39 PM
../ stands for not used anmore :evil:

LOL, that is the old slash syntax, it means to go back to the _root timeline I believe. There is a new way to do telltarget....

The new way is


_root.mainmenu.gotoAndPlay(2);

eki
November 5th, 2002, 12:49 PM
or even better:
_parent.mainmenu.gotoAndPlay(2);


Cheers

SHO

lostinbeta
November 5th, 2002, 01:11 PM
true about _parent, but that gets tricky sometimes.

If the clip is on the _root I recommend the _root.

eki
November 5th, 2002, 01:18 PM
Hi,

I have to disagree.

relative paths are better as they don't depend on any specifics of the project making everything scalable and adaptable to any other project.

Ie. whaat if I wanna load and display one of your swfs in a site of my own?

Cheers

SHO

lostinbeta
November 5th, 2002, 01:21 PM
Hey, I partially disagree with myself.... weird eh?

I use _parent for any AS that is not on the main timeline.

I use _root only if I am putting that code on the main timeline and the object is there as well.... and even then you don't need to use root :-\

The way I see it.... use whatever you feel comfortable with when you feel comfortable with it...

Starting off I used _root for everything, then I adapted to _parent... it happens, people just have to adjust.

BTW: _root = main timeline _parent = back one timeline (just in case they didn't know)

eki
November 5th, 2002, 01:30 PM
Hi,

OK, fair enough but the if comfortability(!) is the discomfortability(!!) of tomorrow that's not too comfortable, or is it?

No, you're right I used to use '_root 'as well but I wouldn't have minded if someone would have told me about '_parent' when I was starting to learn actionScript.

lostinbeta
November 5th, 2002, 01:33 PM
I knew abut _parent starting out, I was just too nieve (sp?) to use it :P

pom
November 6th, 2002, 10:33 AM
Did you mean naive??

And I agree with Eki, _root is bad but sooooo practical...

lostinbeta
November 6th, 2002, 01:08 PM
Yes... see Ilyas, you are always complaining about your English skills, but you speak English better than I :P

eki
November 6th, 2002, 01:13 PM
Originally posted by lostinbeta
Yes... see Ilyas, you are always complaining about your English skills, but you speak English better than I :P

Better than mine esan nahi dezu?