# Button Actions

**URL:** <https://forum.kirupa.com/t/button-actions/6117>\
**Category:** flash\
**Created:** [September 30, 2002, 2:44am UTC](https://forum.kirupa.com/t/button-actions/6117 "2002-09-30T02:44:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryuujin386](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@ryuujin386](https://forum.kirupa.com/u/ryuujin386)\
**Post date:** [September 30, 2002, 2:44am UTC](https://forum.kirupa.com/t/button-actions/6117/1 "2002-09-30T02:44:20Z")

</div>

Hey, I’s wondering how you start a new scene with a button event. Kinda detailed would be nice ^\_^’’  
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:** [September 30, 2002, 3:12am UTC](https://forum.kirupa.com/t/button-actions/6117/2 "2002-09-30T03:12:45Z")

</div>

i think you’re the one who messaged me but if you’re not then here’s how you do it

add an action to the button that looks something like this

```auto

on(press){
gotoAndPlay("Scene 1" , 1);
}

```

the number after the coma is the frame number within the scene whos name you specified in the quotes. the gotoAndPlay action could also be gotoAndStop

hope this helps

---

<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:** [September 30, 2002, 3:17am UTC](https://forum.kirupa.com/t/button-actions/6117/3 "2002-09-30T03:17:38Z")

</div>

Would this work if I have a link to a search page that I want to keep open so they would have to click another to the first url of the first button again.

I don’t want to assign the second button another url. Because for the search page the person has to select his categories for searching.

I can’t do this?

Maybe what you wrote this guy.

---

<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:** [September 30, 2002, 3:22am UTC](https://forum.kirupa.com/t/button-actions/6117/4 "2002-09-30T03:22:36Z")

</div>

Hey Shuga

I came to the computer thinking about my site.  
Geez this guy read my mine.

Oh I didn’t even know it was you.

Yikes I was stirring in my bed.

I wanted to say hello. And 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:** [September 30, 2002, 3:35am UTC](https://forum.kirupa.com/t/button-actions/6117/5 "2002-09-30T03:35:00Z")

</div>

if you want the window containing the url you just opened to stay there then just make sure its in a new window instead of the parent window

getURL([www.blah.com](http://www.blah.com), \_blank);

then they’ll have to close the window you’ve opened to get it to go away

did i answer your question?  
i wasn’t sure i understood you 🙂
