
December 23rd, 2004
09:58 AM
Neverside Newbie
Status: Offline!
My first flash buttton, Help? [SOLVED]
Hi, I've just made my first flash button, i have insert my actionscript but when wanna preview it i get a error 
**Error** Symbol=Action, layer=Layer 1, frame=1:Line 1: Mouse events are permitted only for button instances
on (press) {
Total ActionScript Errors: 1 Reported Errors: 1

___________________
| Lunar Poll | Dexxaboys Site |
Last edited by Dexxaboy, December 23rd, 2004 11:26 AM (Edited 1 times)

December 23rd, 2004
10:08 AM
has crap-for-brains
Status: Offline!
hmm...in the botton, maybe you forgot the other ' } '
try:
on(release){
your script
}
you've got to remember to close any function you put in.

December 23rd, 2004
10:24 AM
Neverside Newbie
Status: Offline!
Nopp, here is my script
on (press) {
GetURL("http://mysite.com", "_blank");
}
___________________
| Lunar Poll | Dexxaboys Site |

December 23rd, 2004
11:26 AM
Neverside Newbie
Status: Offline!
got it working!
The code was placed at the wrong frame 
___________________
| Lunar Poll | Dexxaboys Site |

March 28th, 2005
06:24 AM
Pants are overrated
Status: Offline!
you place it on the button, not the frame
oh, and GetURL doesnt work, it has to be getURL (lowercase G, its important)
and you have to switch mysite with your site obvioulsy...
___________________
http://www.goofygarber.net

March 28th, 2005
06:44 AM
Neversidian
Status: Offline!
Yeah, when you get an error like that it means that the action you are trying to apply is not on the button. So it's in the wrong spot. 
Good job of getting it though 