Tell target

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

…/ 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);

or even better:

_parent.mainmenu.gotoAndPlay(2);

Cheers

SHO

true about _parent, but that gets tricky sometimes.

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

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

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)

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.

I knew abut _parent starting out, I was just too nieve (sp?) to use it :stuck_out_tongue:

Did you mean naive??

And I agree with Eki, _root is bad [SIZE=1]but sooooo practical…[/SIZE]

Yes… see Ilyas, you are always complaining about your English skills, but you speak English better than I :stuck_out_tongue:

*Originally posted by lostinbeta *
**Yes… see Ilyas, you are always complaining about your English skills, but you speak English better than I :stuck_out_tongue: **

Better than mine esan nahi dezu?