Path

I’ve got a button inside a movie clip symbol (named “section 1a”). I’m using a tell target on this button to play a movie clip symbol on the main timeline (named “web”). How do I correctly write out the path for “web?” I’ve tried “/…/web” and “/root.web”, but they didn’t work.

if you’ve got MX dont use tell target, but instead use levelX or _root.*

Do not use tellTarget anymore… tellTarget uses slash notation, which has been deprecated since Flash 5. :-\

To target an object in the main timeline, you use _root. example:
[AS]myButton.onRelease = function() {
_root.myMovieClip._visible = false;
};[/As]
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary633.html

Originally posted by mlkdesign
if you’ve got MX dont use tell target, but instead use levelX or _root.*

Even if he has Flash 5, he should use the dot sintax. :wink:

Oh come on! It said in the kirupa tutorial to use it. I’ve already used it like 500 times, so it would take to long to change it all.

What does deprecated mean? And what is its significance?

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=26561… :sigh:

EDIT. By the way, I think it would be “/:myMovieClip”. I’m not sure, I’ve never used slash notation. :stuck_out_tongue:

I tried all your suggestions, but they failed.

I tested “/:myMovieClip” a few minutes after I replied. It worked for me.

not for me

:stuck_out_tongue:

… attach your FLA. :wink:

Would it matter if the movie i was trying to call up was under a folder?

Here is my source.

Both

  • What you are supposed to be seeing:
  • The top button (inside a MC) triggers “web” to play when rolled over. “Web” is the square that looks has two peices of paper on top of each other.

nowork.fla and nowork.swf

  • The busted version
  • Test it in flash to see the errors
  • Rollover the Natural Habit button

works.fla and work.swf

  • This is what you should be seeing
  • For some reason, when I drag the two items out onto a clean sheet, it works.

.

nowork.swf

nowork.fla

I have no idea why it doesn’t work… but I know how to fix it. :stuck_out_tongue:

Select the MovieClip instance web, open the Actions Panel and put a comment on it.
[AS]// it will work now!![/AS]
BTW, attaching the SWF’s is totally useless, you could attach both FLA’s in the same ZIP file. :sigh:

You’re right. It works now. Too bad this trick doesn’t work on a movie clip i want to play “on the release” of the button.

** EDIT : PROBLEM SOLVED. I collapsed a folder that contained actions that weren’t supposed to be there, so I couldn’t see them the whole time!

THANKS KODE.
**

No problem. :stuck_out_tongue: