"_root" is the only thing showing up in the "insert target path" window

Hey guys,

I’ve got a button in a movieclip that, when pressed, I want to control the timeline of another movieclip (instance name: video).

I enter the following code on the button and it does nothing:

on(release) {
video.gotoAndPlay(2);
}

Now I suppose the path is wrong but, when I click on the “Insert Target Path” icon in the actions panel, the only thing that shows up in the window is “_root”. It doesn’t matter which movie clip I am in, when I click the “Insert Target Path” icon, all that shows up is “_root”.

There is a heck of alot more to my movie than that, where are all the movieclips? The “video” instance is nested 3 movieclips deep. I’ve tried entering the path manually too, but it don’t work. What am I doing wrong?

Thanks very much!

artane

That usually means you forgot to give instance names.

thanks voets but, I made sure to give each clip an instance name.

Still stuck,

artane

Still stuck?

Try in the movie clip called video to put on frame 1 onClipEvent(load){
trace(_parent[this._name]);
}

This will display in the output window the full path to the movie clip and then make sure the path you use is identical. You may find you have a typo in your names or something.

Hope this helps

Liz

Still, it’s very weird that there is nothing in his target window but _root. Can I see the FLA, please ?

Hi Voets!

Thanks alot, I’d really appreciate it if you took a look at the .fla file and told me what is going on. You can get it here:

http://www.theco_kpitstore.com/project/loadsite.fla

There is no underscore, I had to remove the letter c.

Thanks very much!

artane

An 8megs FLA ? Pretty big. Anyways, lemme have a look =)

You forgot to give instance names. Instance names are not the names you give when converting it to a symbol. Instance names can be given to an instance of a symbol, and they are used to be able to let ActionScript recognize the instance you are targetting.

You can assign instance names to Movieclips and buttons instances. To do that, select the Movieclip or button, and look on the left in the properties panel. There’s a dropdown box, and right underneath it is a input field that says in light-grey: <**instance name>. There, you fill in the instance name you want the movieclip or button to have. If you do that, you’ll see that it appears in the target window. But, of course, if a movieclip or button is inside another movieclip or button, the host movieclip or button has to have an instance name before it can reconize anything inside it.

Hey Voets,

You were right about the instance names, I can’t believe I missed that. Now the path shows up when I click “Insert Target Path”.

But, I still can’t make this thing do what I want it to do!

I’ve got a “contact us” button (instance name: contact") that, when clicked, I want to send the playhead on symbol 33 (instance: screen) to frame 2 and play.

If you click on the “contact us” button, you can see the code I entered:

on (release) {
_root.tv.screen.gotoAndPlay(2);
}

Everything should work but, it doesn’t.

Maybe I’ve got a stop action in the wrong place or something, I’m lost.

Can you check it out Voets? Thanks a million man, I owe you one BIG!

http://www.theco_kpitstore.com/project/artane.fla

Underscore = c

Artane :slight_smile:

HOORAY!

I figured it out. I did a trace path like Liz said and got to the bottom of it.

Thanks alot guys! Voets- I still owe you one :wink:

artane

Naaaah :snug: