# Targets

**URL:** <https://forum.kirupa.com/t/targets/9460>\
**Category:** flash\
**Created:** [December 12, 2002, 8:11am UTC](https://forum.kirupa.com/t/targets/9460 "2002-12-12T08:11:12Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Melissa\_Anne](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@Melissa\_Anne](https://forum.kirupa.com/u/Melissa_Anne)\
**Post date:** [December 12, 2002, 8:11am UTC](https://forum.kirupa.com/t/targets/9460/1 "2002-12-12T08:11:12Z")

</div>

I have a question:

is it possible to call 2 targets at the same time, with different mouse behaviours?

for ex:  
on (press) {  
tellTarget (“nfi100”) {  
gotoAndStop(2);  
}  
}  
on (release) {  
tellTarget (“bd”) {  
gotoAndPlay(1);  
}  
}

thx

---

<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:** [December 12, 2002, 8:35am UTC](https://forum.kirupa.com/t/targets/9460/2 "2002-12-12T08:35:43Z")

</div>

Yes, it should work.

Are you having a problem?

or just curious…

Rev ![](http://www.aulman.com/rev.gif)

---

<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:** [December 12, 2002, 8:46am UTC](https://forum.kirupa.com/t/targets/9460/3 "2002-12-12T08:46:58Z")

</div>

well i was wondering if i can call 2 targets  
with the same mouse behaviour …for ex. to call 2 targets for the behaviour - on (press) -

---

<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:** [December 12, 2002, 8:49am UTC](https://forum.kirupa.com/t/targets/9460/4 "2002-12-12T08:49:16Z")

</div>

Yes, I have done it in the past…

but, do you have to use TellTarget? It was depricated in Flash 5…

They are clumsy at best (I still use them on occasion) …

Rev ![](http://www.aulman.com/rev.gif)

---

<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:** [December 12, 2002, 9:06am UTC](https://forum.kirupa.com/t/targets/9460/5 "2002-12-12T09:06:35Z")

</div>

well i am struggling a bit …i have several MC’s in MC’s and to add extra fancy little details i use “call target”, its not heavy scripting and it apparently does the trick !..

The thing is I dont know how to load several MCs on a stage; each of them with different variables…(so they exactly fit a specific place)…

---

<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:** [December 12, 2002, 9:21am UTC](https://forum.kirupa.com/t/targets/9460/6 "2002-12-12T09:21:10Z")

</div>

I’m not sure I understand.

Do you have an .fla you can upload for me to look at?

Rev ![](http://www.aulman.com/rev.gif)

---

<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:** [December 12, 2002, 9:33am UTC](https://forum.kirupa.com/t/targets/9460/7 "2002-12-12T09:33:30Z")

</div>

the fla i am working on now is quite heavy because i havent optimized all the images yet…

basically i have a buttton , and on(Press) it should open 2 separate MCs , at 2 different places (…using variables)

ps: sorry my english is awful…i’m french/dutch

---

<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:** [December 12, 2002, 9:49am UTC](https://forum.kirupa.com/t/targets/9460/8 "2002-12-12T09:49:55Z")

</div>

Really you should just be able to do:

on (release){  
\_root.nfi100.goToAndStop(2);  
\_root.bd.goToAndPlay(1);  
}

As someone said earlier, the tellTarget command has been taken out of Flash MX, and it just uses the dot notation now. In fact, if you go into the Actions panel for your button bring up the on (release) code, then click on the little targetting icon above the code, you should be able to see a structure of all your MC’s, and you can click on the one you want to play / stop.

Oh, I’m still working on your scene problem, by the way. 🙂

---

<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:** [December 12, 2002, 10:13am UTC](https://forum.kirupa.com/t/targets/9460/9 "2002-12-12T10:13:17Z")

</div>

oh thx i understand that now…

For my other problem, I still havent found either…

---

<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:** [December 12, 2002, 10:47am UTC](https://forum.kirupa.com/t/targets/9460/10 "2002-12-12T10:47:38Z")

</div>

> \*Originally posted by Kitiara \*  
> **the tellTarget command has been taken out of Flash MX**  
> Let’s not get carried away, people. You can still use it, even though it’s really longer and less practical than the dot syntax.

And what is the problem exactly? What do you mean “open 2 mcs”?

pom \<:} [SIZE=1]professional hair splitter[/SIZE]

---

<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:** [December 12, 2002, 11:31am UTC](https://forum.kirupa.com/t/targets/9460/11 "2002-12-12T11:31:03Z")

</div>

You can still use it? Whenever I tried, it refused point blank to let me. Told me I had to use dot notation…

---

<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:** [December 12, 2002, 1:58pm UTC](https://forum.kirupa.com/t/targets/9460/12 "2002-12-12T13:58:12Z")

</div>

Well, it works for me. Maybe you made a mistake in the syntax [SIZE=1]which on ly shows that you’re rigth not to use it :)[/SIZE]

---

<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:** [December 12, 2002, 2:00pm UTC](https://forum.kirupa.com/t/targets/9460/13 "2002-12-12T14:00:19Z")

</div>

Probably correct. 🙂

I find the dot notation a lot easier to work with though. You’re not ytping as much code…
