-
What to use instead of the 'tellTarget()' action?
In FlashMX the 'tellTarget()' is now deprecated, so what do you use send a command ot another part of your movie?
Can someone give me an example please.
Thanks.
-
TellTarget is deprecated because you don't really need it anymore. Dot notation allows you to specify an action and a path at the same statement:
e.g: make mc2 inside mc1 goto and play frame 2
Code:
mc1.mc2.gotoAndPlay(2)
here are some keywords in dotnotation:
_root will bring you to the main timeline of the level.
_levelX will bring you to the _root of the level number X.
_parent will tkae you to the parent movieclip.
this targets the current timeline or object.
so if you want to make the mainTimeline jump to frame 6:
Code:
_root.gotoAndStop(6);
If you have a movieclip(mc2) inside another movieClip(mc1). And want to make mc1 gotoAndPlay from frame 12 from a script in/on mc2:
Code:
_parent.gotoAndPlay(12);
etc.
There is also a new replacement for tellTarget called with(). But what use it has I don't know. AFAIK there's no fundamental diffrence.
/Mirandir
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|