PDA

View Full Version : Problems with a tellTarget



ultraloveninja
March 14th, 2005, 06:04 PM
i don't know why this isn't working.

i got a button. and when it's pressed, i need it to go and play a frame in a movie clip.

i'll test it and then when i click on it, i get this:

Target not found: Target="whoweare" Base="_level0.instance20.instance48.instance49"

this is the code that i am using:

on (press) {
tellTarget ("whoweare") {
gotoAndPlay (51);
}
}

am i just stupid???

wizard
March 14th, 2005, 06:06 PM
Did you make sure to give the MC the Instance Name of "whoweare," and not the Symbol name? ;)

Try:
on (press) {
whoweare.gotoAndPlay("frameLabel");
}

lunatic
March 14th, 2005, 06:08 PM
Is "whoweare" the instance name of a movieclip? If so, and if whoweare is on the main timeline then all you need is

on(press){
whoweare.gotoAndPlay(51);


or _root.whoweare

If the clip is elsewhere insert the path to the clip before whoweare.

tellTarget is deprecated in Flash, meaning it is no longer used. Better to use dot syntax instead.

:hr:

*edit* dagnit wizard! :P

ultraloveninja
March 14th, 2005, 06:08 PM
yeah, i did all that.

still doesn't work.

wizard
March 14th, 2005, 06:09 PM
Is "whoweare" the instance name of a movieclip? If so, and if whoweare is on the main timeline then all you need is

on(press){
whoweare.gotoAndPlay(51);


or _root.whoweare

If the clip is elsewhere insert the path to the clip before whoweare.

tellTarget is deprecated in Flash, meaning it is no longer used. Better to use dot syntax instead.

:hr:Yes!!! Beat you to it! :P :D

lunatic
March 14th, 2005, 06:09 PM
didn't work though ;P

loveninja - can you post your fla?

ultraloveninja
March 14th, 2005, 06:09 PM
hmmmm.

okay lunatic. i'll give that a try.


thanks!

wizard
March 14th, 2005, 06:11 PM
Everyone posting within seconds is throwing me off... ultra, a file would help (in FlashMX format). :beam:

lunatic
March 14th, 2005, 06:12 PM
ultra, a file would help (in FlashMX format). :beam:


Yes! Beat you to it! :P


*edit yeah, MX version please!*

ultraloveninja
March 14th, 2005, 06:14 PM
one momento...

ultraloveninja
March 14th, 2005, 06:34 PM
okay, here's a link:

http://www.scottjdunham.com/who_we_are.fla

lunatic
March 14th, 2005, 06:58 PM
won't open in MX :(

ultraloveninja
March 14th, 2005, 07:28 PM
dap!!!

i'll post another one.

ultraloveninja
March 14th, 2005, 07:31 PM
okay here's the other one.

http://www.scottjdunham.com/who_we_are2.fla

lunatic
March 14th, 2005, 08:32 PM
Ugh, I remember this template ;P Didn't you have questions on it before? It's full of crazy tweens and crazier script.

lol, I"m gonna need some information so I don't have to pick this whole thing apart - where is the tellTarget code and what is it supposed to do?

:hr:

ultraloveninja
March 15th, 2005, 10:27 AM
yeah, sorry :(

anyways, there is a movie clip on the main timeline that that houses the navagation buttons.

the navagations buttons have a mask on them so you you will have to take that off.

then the nav buttons are in a movie clip, and then each one has the individual MC. then if you look at the button, it has an invisible button on it, which contains the action script.

make sense???

i know, it's screwy and confusing, and that's partially my fault due to the fact that i'm still breaking away from the old way of making flash stuff.

but if you can take a look at it, i appreciate it.

thanks!

lunatic
March 15th, 2005, 10:37 AM
lol, I'll give it a shot. I have judo tonight and a rehearsal tomorrow but if you can hang on 'til thursday I'll look at it.

Unless anyone else wants to take a crack at it? :hugegrin:

lunatic
March 17th, 2005, 11:44 PM
Okay, this is more of a bandaid than a solution but it works. I think. This file is so crazy lol, it's hard to tell if this is what you want it to do or not!

Anyway, the only code I saw that looked like what you had in the first post of this thread is on the button on the crow with the cigar right? It has this right now:



on (press) {
_root.whoweare.gotoAndPlay (51);
}

Remove _root.whoweare and change it to _parent._parent so that it reads:



on (press) {
_parent._parent.gotoAndPlay (51);
}

and it should work. At least, something different popped up when I tested it! :P

What _parent does is say "go out one timeline from this one and look there for the next thing/action". So using two _parent's says "go out two timelines from this one then go and play frame 51 of that timeline. Two timelines out from that button is the main meat of the whoweare movieclip.

Hope this makes sense!

:hr:

ultraloveninja
March 18th, 2005, 10:36 AM
WHOO HOO!!!


IT WORKS!

if i could do backflips, i would.
and then have people stare at me oddly.

but thank you soo much!!! :hugegrin:

now i gotta figure out my next issue!

lunatic
March 18th, 2005, 11:17 AM
lol, you are welcome =)