# Tell target on buttonz

**URL:** https://forum.kirupa.com/t/tell-target-on-buttonz/2810
**Category:** Uncategorized
**Created:** [April 3, 2002, 10:17pm UTC](https://forum.kirupa.com/t/tell-target-on-buttonz/2810 "2002-04-03T22:17:57Z")
**Posts on this page:** 6
**Page:** 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: [April 3, 2002, 10:17pm UTC](https://forum.kirupa.com/t/tell-target-on-buttonz/2810/1 "2002-04-03T22:17:57Z")

</div>

In an MC I have five buttons which should go to five different scenes when pressed. Thus, each button would go to a particular scene and a specific frame label , and so on. However, I’m having probs with the actionscript. Being that the buttons are in a Movie Clip, I know had to reference the main timeline and use tell Target. I tried all sorts of code to no avail. \r\rOn each button my code looks something like this.\r\rOn (release)\r\_root.gotoAndPlay(“About”) \r\rI’ve read on the flash site that I should use frame labels when using buttons inside an MC.\r\rIn any event, can I get a hand…I would appreciate 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: [April 3, 2002, 10:36pm UTC](https://forum.kirupa.com/t/tell-target-on-buttonz/2810/2 "2002-04-03T22:36:10Z")

</div>

if “About” is a frame label it should work…\rif it’s a scene name it won’t.\r:) \rjeremy

---

<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 4, 2002, 2:32am UTC](https://forum.kirupa.com/t/tell-target-on-buttonz/2810/3 "2002-04-04T02:32:43Z")

</div>

that code is not getting it done…any other suggestions?\r\rDeep Cover

---

<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 4, 2002, 6:29am UTC](https://forum.kirupa.com/t/tell-target-on-buttonz/2810/4 "2002-04-04T06:29:30Z")

</div>

are you sure you placed a ; at the end of the line?

---

<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 4, 2002, 8:09pm UTC](https://forum.kirupa.com/t/tell-target-on-buttonz/2810/5 "2002-04-04T20:09:37Z")

</div>

try not using goto as a method of \_root, rather incorpoate \_root into the path: gotoAndPlay(\_root.framelabel) ?

---

<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 6, 2002, 6:04am UTC](https://forum.kirupa.com/t/tell-target-on-buttonz/2810/6 "2002-04-06T06:04:39Z")

</div>

thank you fellaz…I got it to work…good one…
