# Button controls

**URL:** <https://forum.kirupa.com/t/button-controls/264211>\
**Category:** Uncategorized\
**Created:** [June 24, 2008, 2:12am UTC](https://forum.kirupa.com/t/button-controls/264211 "2008-06-24T02:12:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jihwaan](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jihwaan](https://forum.kirupa.com/u/jihwaan)\
**Post date:** [June 24, 2008, 2:12am UTC](https://forum.kirupa.com/t/button-controls/264211/1 "2008-06-24T02:12:30Z")

</div>

Hi guys, this is a bit of a noob question I know, but so far I can’t figure this one out, and I know it will be a simple answer. I have a movieclip with 5 frames and 5 buttons. each frame has a stop command in it. I simply want the buttons on rollover to go to a specific frame and stop ( I have this working) but when pressed and released I want the button to load a new html page into the browser. so far I am using :  
on (rollover) {  
gotoAndStop(2);  
}

on each button directly to control the frames, but I cant get the :  
onrelease {  
geturl([http://somesite.org](http://somesite.org))  
}

to work.  
Any help greatly appreciated.  
I have been programming php for the past few years and am just coming back to flash now and I am finding it hard to get version specific information (I am using cs3).  
Thanks in advance…

---

<div class="post-metadata">

**Author:** ![snickelfritz](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@snickelfritz](https://forum.kirupa.com/u/snickelfritz)\
**Post date:** [June 24, 2008, 2:56am UTC](https://forum.kirupa.com/t/button-controls/264211/2 "2008-06-24T02:56:41Z")

</div>

Why are you coding in AS2?  
I can help you with AS3, if you’re interested.

---

<div class="post-metadata">

**Author:** ![jihwaan](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jihwaan](https://forum.kirupa.com/u/jihwaan)\
**Post date:** [June 24, 2008, 5:14am UTC](https://forum.kirupa.com/t/button-controls/264211/3 "2008-06-24T05:14:41Z")

</div>

[quote=snickelfritz;2348045]Why are you coding in AS2?  
I can help you with AS3, if you’re interested.[/quote]

The only reason I am using as2 is because I havent used flash for nearly two years. I would be happy to do it in as3, but I am having trouble figuring it out. Any help would be greatly appreciated, there is no reason I cant use as3 so if you can help me with this it would be great.

---

<div class="post-metadata">

**Author:** ![snickelfritz](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@snickelfritz](https://forum.kirupa.com/u/snickelfritz)\
**Post date:** [June 24, 2008, 6:57am UTC](https://forum.kirupa.com/t/button-controls/264211/4 "2008-06-24T06:57:39Z")

</div>

[QUOTE=jihwaan;2348083]The only reason I am using as2 is because I havent used flash for nearly two years. I would be happy to do it in as3, but I am having trouble figuring it out. Any help would be greatly appreciated, there is no reason I cant use as3 so if you can help me with this it would be great.[/QUOTE]

I’ll post a basic setup for you to start with later tomorrow.  
Download and install [[COLOR=“Blue”]TweenMax[/COLOR]](http://blog.greensock.com/tweenmaxas3/).

---

<div class="post-metadata">

**Author:** ![jihwaan](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jihwaan](https://forum.kirupa.com/u/jihwaan)\
**Post date:** [June 24, 2008, 8:55am UTC](https://forum.kirupa.com/t/button-controls/264211/5 "2008-06-24T08:55:39Z")

</div>

thanks

---

<div class="post-metadata">

**Author:** ![jihwaan](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jihwaan](https://forum.kirupa.com/u/jihwaan)\
**Post date:** [July 2, 2008, 11:08am UTC](https://forum.kirupa.com/t/button-controls/264211/6 "2008-07-02T11:08:13Z")

</div>

bump…

anyone??

---

<div class="post-metadata">

**Author:** ![idontknow07](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@idontknow07](https://forum.kirupa.com/u/idontknow07)\
**Post date:** [July 3, 2008, 1:23am UTC](https://forum.kirupa.com/t/button-controls/264211/7 "2008-07-03T01:23:42Z")

</div>

If your code is how you typed it:

```auto

onrelease {
geturl(http://somesite.org)
}

```

it should be like this:

```auto

on(release){

 getURL("http://www.test.org");

}

```

I hope that helps.
