# Changing it to button?

**URL:** <https://forum.kirupa.com/t/changing-it-to-button/115012>\
**Category:** Uncategorized\
**Created:** [July 4, 2004, 5:59pm UTC](https://forum.kirupa.com/t/changing-it-to-button/115012 "2004-07-04T17:59:37Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![XPeriment\_22](https://avatars.discourse-cdn.com/v4/letter/x/8c91f0/32.png) [@XPeriment\_22](https://forum.kirupa.com/u/XPeriment_22)\
**Post date:** [July 4, 2004, 5:59pm UTC](https://forum.kirupa.com/t/changing-it-to-button/115012/1 "2004-07-04T17:59:37Z")

</div>

[font=Century Gothic][tsunami](http://actionscript.org/tutorials/advanced/Building_a_tsunami/index.shtml)[/font]  
[font=Century Gothic][/font]  
[font=Century Gothic][color=green] **I did this tutorial, and it works fine, but I want to make the individual things into buttons, like a navigation. In the example they have something like, 01. one, 0.2 two…etc. I want those to be buttons, how do I do that??** [/color][/font]

---

<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:** [July 4, 2004, 6:07pm UTC](https://forum.kirupa.com/t/changing-it-to-button/115012/2 "2004-07-04T18:07:36Z")

</div>

Put something like that on each of the menu items  
onClipEvent(press){  
//do something  
}

---

<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:** [July 4, 2004, 6:58pm UTC](https://forum.kirupa.com/t/changing-it-to-button/115012/3 "2004-07-04T18:58:02Z")

</div>

[font=Century Gothic]I have a picture on frame 40 of the main timeline. I want it so that when I click “01. one” it goes to that picture. So I put this code on “01. one” and it did not work. [/font]  
[font=Century Gothic][/font]  
[font=Arial Black][color=seagreen]onClipEvent(press){  
gotoAndPlay(40);  
}[/color][/font]  
[font=Arial Black][color=#2e8b57][/color][/font]  
[font=Century Gothic][color=black]How do I fix this?[/color][/font]

---

<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:** [July 4, 2004, 7:04pm UTC](https://forum.kirupa.com/t/changing-it-to-button/115012/4 "2004-07-04T19:04:45Z")

</div>

can you upload your fla that would help for a more exact answer. When you say it’s not working, what is it doing instead… without knowing that I can only guess a bit so these may not help at all.

1. try gotoAndStop(40);
2. you might need \_root.gotoAndPlay(40);
3. er I dont have enough info really… sorry man

Is the little finger coming up, like when you roll over a button, or does it stay an arrow? That would help a bit, and I’ll go DL the souce for that file so I can see what youre doing maybe.

---

<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:** [July 4, 2004, 7:21pm UTC](https://forum.kirupa.com/t/changing-it-to-button/115012/5 "2004-07-04T19:21:31Z")

</div>

[font=Century Gothic]Scroll up to my original message, and click on the link. Download the .fla. Open it. Now you should see a “[color=royalblue]list[/color]” like this:[/font]  
[font=Century Gothic] ![]()[/font]  
[font=Century Gothic][/font]  
[font=Century Gothic]I want to turn this “[color=royalblue]list[/color]” into a navigation. Let’s say you have a picture on [color=royalblue]frame 40,[/color] and when you click “[color=royalblue]01. one[/color]” it goes to [color=royalblue]frame 40[/color] and shows the picture. I tried the code you posted, and when I press [color=royalblue]‘ctrl+enter’[/color] to watch the movie, this happens[/font]  
 ![]()

---

<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:** [July 4, 2004, 7:25pm UTC](https://forum.kirupa.com/t/changing-it-to-button/115012/6 "2004-07-04T19:25:31Z")

</div>

srry, the pics dont work

the message that i get when i try to play the movie is

[font=Courier New][color=red] **Error** Symbol=02 - textcol1, layer=c1- 01, frame=1:Line 1: You must export your movie as Flash 5 to use this action.  
onClipEvent(press){[/color][/font]  
[font=Courier New][color=red]Total ActionScript Errors: 1 Reported Errors: 1[/color][/font]

---

<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:** [July 5, 2004, 7:22am UTC](https://forum.kirupa.com/t/changing-it-to-button/115012/7 "2004-07-05T07:22:41Z")

</div>

Making me do work to help you isn’t a very good way of getting things done, my time is probably as filled as yours, however, I’ll let you off.  
I was simply trying to see the direction you are going and your code additions and modifications, so that I might be able to tailor a solution to your style of coding…that way I wouldn’t have to explain my style. I’ll attach the file as I have modified it, so you can learn from it, I did not make it with comments or anything but I think you can figure it out. If you need more help you are going to have to post the file as you have 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:** [July 5, 2004, 5:58pm UTC](https://forum.kirupa.com/t/changing-it-to-button/115012/8 "2004-07-05T17:58:58Z")

</div>

oh, thanks alot, i know im probably annoying you by now with this, its just that im new with actionscript…and if i wasnt so \*\*\*\* lazy last year, i would of continued those flash lessons and i would know all of this stuff. thanks again!

---

<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:** [July 5, 2004, 6:02pm UTC](https://forum.kirupa.com/t/changing-it-to-button/115012/9 "2004-07-05T18:02:47Z")

</div>

[font=Century Gothic]theres one problem with this, it does not move…its not a tsunami anymore, the 01. one and 0.2 two…and so forth are still, there supposed to be moving like [/font]  
[[font=Century Gothic]here[/font]](http://actionscript.org/tutorials/advanced/Building_a_tsunami/index.shtml)[font=Century Gothic].[/font]

---

<div class="post-metadata">

**Author:** ![ditt0](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@ditt0](https://forum.kirupa.com/u/ditt0)\
**Post date:** [August 17, 2004, 12:51pm UTC](https://forum.kirupa.com/t/changing-it-to-button/115012/10 "2004-08-17T12:51:15Z")

</div>

[color=black]add this action to the 01 movie clip:[/color]  
[color=black] [/color]  
[color=red]on (release) {[/color]  
[color=red]gotoAndPlay(40);[/color]  
[color=red]}[/color]  
[color=#ff0000][/color]  
[color=black]if frame 40 is on the same level as 01 movie clip.[/color]  
[color=#ff0000][/color]  
[color=black]You’ll have to publish it as flash6 to make it work.[/color]
