PDA

View Full Version : Telltargets, in movie clips?



valpez1
February 27th, 2004, 12:36 PM
I was looking at the tell target tutorial here on kirupa,
http://www.kirupa.com/developer/flash5/advroll.htm
and i tried it out on my site. But what i need to do is put the entire tell target, including the button and movie clip, inside another movie clip entirely. How would i go about altering the code to fit this? or is it even possible. Thanks, take care.

valpez1
February 28th, 2004, 10:50 AM
Just to clarify my problem, i'll attach an example .fla to demonstrate what i'm trying to achieve here. I'm assuming my problem is that the movie clip that contains the button and telltarget are not on the main stage. But i need to know a way around that, please. Any help at all?

ch0pstikninja
February 28th, 2004, 11:06 AM
say the targets were in the root of the document, and the first text was called text1

then the code would be:



on (rollOver) {
tellTarget ("/rollover") {
_root.text1.gotoAndPlay("1text");
}
}
on (rollOut) {
tellTarget ("/rollover") {
_root.text1.gotoAndPlay("1back");
}
}

valpez1
February 28th, 2004, 11:14 AM
But the targets aren't in the root of the document, theyre in a seperate movie clip. Because i tried replacing the code on my button with the code you suggested, and i still got the :

Target not found: Target="/rollover" Base="_level0.instance1"
Target not found: Target="/rollover" Base="_level0.instance1"

error when i previewed the movie. Am i not understanding something your'e telling me?

ch0pstikninja
February 28th, 2004, 11:33 AM
ok, found the problem, what i told you to do was bypassing the telltarget alltogether, so what you should do is take out the slash.

ill attach your example:

valpez1
February 28th, 2004, 01:31 PM
wow, thanks so much. Works great.

hmmmm81
February 14th, 2005, 02:44 AM
hi there ...im facing the same problem ..... Target not found: Target="/rollover" Base="_level0" what do i need to do to resolve this problem??can anybody help me