# Is it a tellTarget problem?

**URL:** <https://forum.kirupa.com/t/is-it-a-telltarget-problem/8200>\
**Category:** Uncategorized\
**Created:** [November 15, 2002, 5:58pm UTC](https://forum.kirupa.com/t/is-it-a-telltarget-problem/8200 "2002-11-15T17:58:18Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![toh](https://avatars.discourse-cdn.com/v4/letter/t/f6c823/32.png) [@toh](https://forum.kirupa.com/u/toh)\
**Post date:** [November 15, 2002, 5:58pm UTC](https://forum.kirupa.com/t/is-it-a-telltarget-problem/8200/1 "2002-11-15T17:58:18Z")

</div>

i have 2 button which are map of country.  
when i roll over them, their flag will appear on the button. and the flag disappear when rollout.

when i click button A(said USA) the USA flag appear on it and stay there.  
when i click button B(said UK) the UK flag appear on it and stay there, but the USA flag will disappear.

how can i do this?

do i have to use tellTarget or other AS command?

may be i describe the problem unclear, sorry.

Any help will be appreciated.

thanks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 15, 2002, 6:15pm UTC](https://forum.kirupa.com/t/is-it-a-telltarget-problem/8200/2 "2002-11-15T18:15:10Z")

</div>

What is the code you are currently using?

And tellTarget isn’t used anymore. It is now replaced with the dot syntax like \_root.yourMC.gotoAndPlay(1)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 15, 2002, 7:40pm UTC](https://forum.kirupa.com/t/is-it-a-telltarget-problem/8200/3 "2002-11-15T19:40:28Z")

</div>

i just using ordinary button command like on(release) currently.

i just don’t know how to call the mc inside a button.

thanx for remind me about the tellTarget:) i already get used to it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 4:07pm UTC](https://forum.kirupa.com/t/is-it-a-telltarget-problem/8200/4 "2002-11-16T16:07:09Z")

</div>

hmm, I think tellTarget is still the simplest code, but I’m shwishing to \_root. !

To answer your question:

It is perfectly possible with tellTarget (I won’t explain how to do it with \_root) 🙂

Anyway:

Here’s the code for button 1 USA:  
on(release) {  
tellTarget ("/America") {  
GotoandStop (2) ;  
}  
tellTarget ("/UK") {  
GotoandStop (1) ;  
}  
}

Code for button 2 UK:  
on(release) {  
tellTarget ("/UK") {  
GotoandStop (2) ;  
}  
tellTarget ("/America") {  
GotoandStop (1) ;  
}  
}

In this example you have an Movieclip (instance “America”), in that MC you have in frame 1 a flag, and in 2 no flag  
And you have an MC (instance “UK”), with 2 frames, one with flag and one without), notice that frame 1 must be without flag and don’t forget the “stop ()”

Is this what you like? :-\

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 4:40pm UTC](https://forum.kirupa.com/t/is-it-a-telltarget-problem/8200/5 "2002-11-16T16:40:11Z")

</div>

yeah, that’s the common to call a mc.  
but if the mc is in the rollover of button?  
when on (release)the mc should appear on the button not other place, the flag is stick on the button in this case.  
just like when i rollover it.  
but the different is when rollout, the flag will disappear, when on release the flag stay there.  
ordinary telltarget won’t work.  
And thanx for replying , Didius!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 4:42pm UTC](https://forum.kirupa.com/t/is-it-a-telltarget-problem/8200/6 "2002-11-16T16:42:18Z")

</div>

Are you sure it won’t work with tellTarget? If you give you button an instance name it must? I think. Wait i’m going to make something, hold on! :sleep:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 4:53pm UTC](https://forum.kirupa.com/t/is-it-a-telltarget-problem/8200/7 "2002-11-16T16:53:19Z")

</div>

ahh, what the hell, have you already fond your answer? else I’ll do my best to find it =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 6:02pm UTC](https://forum.kirupa.com/t/is-it-a-telltarget-problem/8200/8 "2002-11-16T18:02:45Z")

</div>

Well tellTarget is replaced by with what I said on a button too.

```auto
on (release) {
_root.myMc.gotoAndPlay(2);
}

```

Why are you targeting a movie clip inside a button?

I think you can only do that in the different button states.

Why don’t you use a movie clip as a button since you can use button handlers on a movie clip in MX?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 6:55pm UTC](https://forum.kirupa.com/t/is-it-a-telltarget-problem/8200/9 "2002-11-16T18:55:26Z")

</div>

ok, i attach a file to show what i want to do.  
in the file, when you roll over the button, an image will appear slowly, it disappear when you roll out.  
i want the image to stay there after i click the button.  
so, how can i do it?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 17, 2002, 8:56pm UTC](https://forum.kirupa.com/t/is-it-a-telltarget-problem/8200/10 "2002-11-17T20:56:33Z")

</div>

Something like this?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 22, 2002, 7:16pm UTC](https://forum.kirupa.com/t/is-it-a-telltarget-problem/8200/11 "2002-11-22T19:16:54Z")

</div>

its some sort like this, really thanx for helping
