# Troubled with actionscript's -- IF -- need help

**URL:** https://forum.kirupa.com/t/troubled-with-actionscripts-if-need-help/18064
**Category:** Uncategorized
**Created:** [April 12, 2003, 8:36pm UTC](https://forum.kirupa.com/t/troubled-with-actionscripts-if-need-help/18064 "2003-04-12T20:36:19Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![I\_C\_U](https://avatars.discourse-cdn.com/v4/letter/i/e47774/32.png) [@I\_C\_U](https://forum.kirupa.com/u/I_C_U)
#### Post date: [April 12, 2003, 8:36pm UTC](https://forum.kirupa.com/t/troubled-with-actionscripts-if-need-help/18064/1 "2003-04-12T20:36:19Z")

</div>

Hello guys over there.

I’m really really troubled about trying to make this codes work… i have 5 buttons… each one has an animation, using telltarget.  
I’m trying to use it, to make dissapear the loaded menu item… but when i click on one of these buttons, al the other button’s dissparearing animations, play… i think that i must use, if… but don’t know how to do it… PLEASE can someone help me?

Thanx.

---

<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: [April 12, 2003, 8:42pm UTC](https://forum.kirupa.com/t/troubled-with-actionscripts-if-need-help/18064/2 "2003-04-12T20:42:55Z")

</div>

first off you shouldn’t be using telltarget in MX, secondly I dont really understand what you’re problem is, if you posted the .fla it would be much more clear and I could explain the action script to you.

Peace

---

<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: [April 12, 2003, 8:49pm UTC](https://forum.kirupa.com/t/troubled-with-actionscripts-if-need-help/18064/3 "2003-04-12T20:49:50Z")

</div>

Well… there it is… i don’t know how to handle 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: [April 12, 2003, 8:51pm UTC](https://forum.kirupa.com/t/troubled-with-actionscripts-if-need-help/18064/4 "2003-04-12T20:51:51Z")

</div>

k, i sent it in another Thread

---

<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: [April 12, 2003, 9:00pm UTC](https://forum.kirupa.com/t/troubled-with-actionscripts-if-need-help/18064/5 "2003-04-12T21:00:41Z")

</div>

There was no need to create a whole new thread to attach a file to, you could have easily done it in a reply to this thread.

---

<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: [April 12, 2003, 9:01pm UTC](https://forum.kirupa.com/t/troubled-with-actionscripts-if-need-help/18064/6 "2003-04-12T21:01:43Z")

</div>

well, actually, i don’t know how to make this thing work…

I have 5 buttons, and the button 1 and 2, have animations, using telltarget.  
When you hit the first one, you get the items. then, when you hit another one, i want to tell to the “dissapear” animation to play… but it is messy, ‘cause all of the dissapearing animations play at the same time. i want to make dissapear, only the button that was showing it’s contents before. DON’T KNOW WHAT TO DO! :’(

---

<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: [April 12, 2003, 9:03pm UTC](https://forum.kirupa.com/t/troubled-with-actionscripts-if-need-help/18064/7 "2003-04-12T21:03:04Z")

</div>

And try this…

[AS]on (release) {  
anim1.gotoAndPlay(“play”);  
anim2.gotoAndPlay(“unplay”);  
}[/AS]

The dot syntax replaces the annoying tellTarget syntax.

---

<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: [April 12, 2003, 9:03pm UTC](https://forum.kirupa.com/t/troubled-with-actionscripts-if-need-help/18064/8 "2003-04-12T21:03:05Z")

</div>

well… i don’t manage to good this forum things 😛 i’m sorry 😃

---

<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: [April 12, 2003, 9:05pm UTC](https://forum.kirupa.com/t/troubled-with-actionscripts-if-need-help/18064/9 "2003-04-12T21:05:44Z")

</div>

thanx for that, i didn’t knew it… but the point is… when i hit one button it will play all of the animations… not the “last button’s dissapear animation…” i wonder if “IF” is the solution?
