-
hi guys need a bit of help
I made some buttons in photoshop imported them into flash and I Am geting an error in the code
this is the code
on(rollOver) {
gotoAndPlay(2);
}
and this is the error
**Error** Symbol=home butt movieclip, layer=home butt, frame=1:Line 1: Mouse events are permitted only for button instances
on(rollOver) {
Total ActionScript Errors: 1 Reported Errors: 1
could someone please help this is sort of urgent
this is a great place
-
it seems your button is actually a movie clip. only button symbols can have the "on" action. double click your movie clip, select the image and press F8 (convert to symbol) and choose button. you can also change the behaviour of the symbol in the library.
-
See Above
You have a the button image set as a movie clip not a button.
Convert it to a Button Symbol, then add your code
and you should be good.
-
thanks alot guys but that is not the problem because I did define it as a button in the first place and I got to change the roll over states and everything so that means that it is a button so if you guys know any other posibilities I would be glad to hear them, but thanks alot so far
this is a great place
-
maybe the action is on a keyframe. the log is telling you that ii is NOT on a button. can you post it?
-
haha I found out what I did wrong you see it has been 3 years since I have used flash lol so I forgot some stuff what I did that gave me the error was that I CODED the TIMELINE instead of the actual BUTTON hehe my bad thanks alot for everything guys
this is a great place
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|