# Errors with Buttons

**URL:** <https://forum.kirupa.com/t/errors-with-buttons/179270>\
**Category:** flash\
**Created:** [February 18, 2006, 7:51am UTC](https://forum.kirupa.com/t/errors-with-buttons/179270 "2006-02-18T07:51:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eediva](https://avatars.discourse-cdn.com/v4/letter/e/bbce88/32.png) [@eediva](https://forum.kirupa.com/u/eediva)\
**Post date:** [February 18, 2006, 7:51am UTC](https://forum.kirupa.com/t/errors-with-buttons/179270/1 "2006-02-18T07:51:54Z")

</div>

hi all  
I need help again with the buttons, I thought I had it all figured out!

[http://www.eediva.net/portfolio/clients/btneffect.fla](http://www.eediva.net/portfolio/clients/btneffect.fla)

So it looks like it works fine, except when I test it, it won’t go to the specified URLS and when I export as a swf, I get 2 errors. I understand it has something to do with the buttons, I gave them all instance names, and I’m thinking i have to somehow associate them with the instructions, I’ve tried:

```auto
on (btnProj.rollOver)=//action;

```

&

```auto

btnProj.onRollOver{
//action
}

```

that doesn’t work. I don’t know what else to do, think you can help? thanks Fidel 🙂

```auto

**Error** Scene=Scene 1, layer=button, frame=1:Line 1: Mouse events are permitted only for button instances
     on (rollOver){

**Error** Scene=Scene 1, layer=button, frame=1:Line 4: Mouse events are permitted only for button instances
     on (rollOut){

**Error** Scene=Scene 1, layer=button, frame=1:Line 7: Invalid mouse event specified.
     on (btnProj.release){

Total ActionScript Errors: 3 Reported Errors: 3

**Error** Scene=Scene 1, layer=button, frame=1:Line 1: Mouse events are permitted only for button instances
     on (rollOver){

**Error** Scene=Scene 1, layer=button, frame=1:Line 4: Mouse events are permitted only for button instances
     on (rollOut){

Total ActionScript Errors: 2 Reported Errors: 2

```
