# Adding actions to buttons - Pissing me off!

**URL:** <https://forum.kirupa.com/t/adding-actions-to-buttons-pissing-me-off/56344>\
**Category:** flash\
**Created:** [July 2, 2004, 9:36pm UTC](https://forum.kirupa.com/t/adding-actions-to-buttons-pissing-me-off/56344 "2004-07-02T21:36:45Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmax](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@kmax](https://forum.kirupa.com/u/kmax)\
**Post date:** [July 2, 2004, 9:36pm UTC](https://forum.kirupa.com/t/adding-actions-to-buttons-pissing-me-off/56344/1 "2004-07-02T21:36:45Z")

</div>

Hello, I just got mx 2004  
I am trying to add an action to a button!

I clicked on the button and open the “Actions” panel.

This is the action script I am using…

on (release) {  
getURL(“index.php”);  
}

I cannot get it to work.  
Any tips at all?

Thank you thank you  
kj

---

<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 2, 2004, 9:39pm UTC](https://forum.kirupa.com/t/adding-actions-to-buttons-pissing-me-off/56344/2 "2004-07-02T21:39:14Z")

</div>

You may have to type in the entire path to the file on the server. I know that even using websites with getURL it won’t work with just “[www.whatever.com](http://www.whatever.com)” you have to actually type in “[http://www.whatever.com](http://www.whatever.com)”

At least, that’s how it is in MX

:hr:

---

<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 2, 2004, 9:43pm UTC](https://forum.kirupa.com/t/adding-actions-to-buttons-pissing-me-off/56344/3 "2004-07-02T21:43:59Z")

</div>

Hello, thanks for posting.  
I tried that… does not work either… oh this is freaking making me so maddddahhhhh

---

<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 2, 2004, 9:45pm UTC](https://forum.kirupa.com/t/adding-actions-to-buttons-pissing-me-off/56344/4 "2004-07-02T21:45:27Z")

</div>

In the button itsself… I dont have a layer called actions or anything…

I just click on the button from the main stage…

And open the actions panel… and put in the script… then save the movie…

Anything else 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:** [July 2, 2004, 9:49pm UTC](https://forum.kirupa.com/t/adding-actions-to-buttons-pissing-me-off/56344/5 "2004-07-02T21:49:29Z")

</div>

Try

```auto

on(release){
trace("this button is being pressed")
}

```

just to make sure that part is working . . .

---

<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 2, 2004, 9:52pm UTC](https://forum.kirupa.com/t/adding-actions-to-buttons-pissing-me-off/56344/6 "2004-07-02T21:52:26Z")

</div>

thanks… trying that right now…

---

<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 2, 2004, 9:56pm UTC](https://forum.kirupa.com/t/adding-actions-to-buttons-pissing-me-off/56344/7 "2004-07-02T21:56:33Z")

</div>

I am getting nothing…  
Anyone want to look at the fla?

---

<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 2, 2004, 9:58pm UTC](https://forum.kirupa.com/t/adding-actions-to-buttons-pissing-me-off/56344/8 "2004-07-02T21:58:15Z")

</div>

are you getting a finger cursor? If not, you may have an empty frame in the “HIT” frame of the button, this will make it so you actually have no place to physically make contact with it (the HIT frame lets you define the “active” area of the button, nothing there makes the active area the shape of the button itself, however an _empty frame_ means no active area - it can be easily overlooked and frustrating if/when discovered).

---

<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 2, 2004, 10:00pm UTC](https://forum.kirupa.com/t/adding-actions-to-buttons-pissing-me-off/56344/9 "2004-07-02T22:00:58Z")

</div>

Yes the cursor turn into a hand when I mouse over the buttons…  
I did not do that before I added the script…  
on (release) {  
getURL(“index.php”);

}

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:** [July 2, 2004, 10:01pm UTC](https://forum.kirupa.com/t/adding-actions-to-buttons-pissing-me-off/56344/10 "2004-07-02T22:01:59Z")

</div>

and the trace gives you nothing? … might as well post the file

---

<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 2, 2004, 10:06pm UTC](https://forum.kirupa.com/t/adding-actions-to-buttons-pissing-me-off/56344/11 "2004-07-02T22:06:06Z")

</div>

it is probably something to do with this…  
i made this originally in flash mx…  
then opened it in 2004…

i had these buttons in a folder… so i did not see that the timeline for the buttons has some strange stuff going on…

Here it is…  
[http://www.videolinktechnologies.com/flash/antec.fla](http://www.videolinktechnologies.com/flash/antec.fla)

thanks to all

---

<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 2, 2004, 10:20pm UTC](https://forum.kirupa.com/t/adding-actions-to-buttons-pissing-me-off/56344/12 "2004-07-02T22:20:57Z")

</div>

I did not see it because they were in a folder…  
But all these button layers are fooobarrrred.  
I will have to re do them…

---

<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 2, 2004, 10:32pm UTC](https://forum.kirupa.com/t/adding-actions-to-buttons-pissing-me-off/56344/13 "2004-07-02T22:32:27Z")

</div>

FIXED! Sorry about that.

I cant believe that happened just by opening it up in mx 2004…  
Those layers in that folder were totally messed up.

I just remade the button layers… and pasted in the action…  
Works like a charm…

Thanks to all!

---

<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 3, 2004, 8:00am UTC](https://forum.kirupa.com/t/adding-actions-to-buttons-pissing-me-off/56344/14 "2004-07-03T08:00:39Z")

</div>

i’m from austin too.

---

<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 3, 2004, 1:05pm UTC](https://forum.kirupa.com/t/adding-actions-to-buttons-pissing-me-off/56344/15 "2004-07-03T13:05:33Z")

</div>

oh yeah… we just moved here about 3 weeks ago…  
rock on!
