PDA

View Full Version : Button-Movie Clip Interaction


Dissident
03-27-2006, 02:39 AM
I have two layers: a movie clip and a button. Both have two frames only. The button has two states: when the mouse is over and not over the button, each having a distinct appearance. Each appearance matches a specific frame in the movie clip. I need to make it so that when the mouse is not on the button, one frame of the clip is shown, and when the mouse is over the button the other frame is shown. I found a similar query from 2002 on this site that suggested using:
on(release){
_root.bucket.gotoAndPlay(2);
}
to make a certain button action go to the second frame of a movie clip called "bucket." Unfortunately I am very unexperienced in ActionScript and could not understand why I received an error message upon trying this.

oldnewbie
03-27-2006, 03:15 AM
What error message are you getting?

Attach your .fla.

Dissident
03-27-2006, 06:35 PM
This (http://za-warudo.net/crap/InteractionExample.fla) is an .fla file exactly like my actual problem and this is an error message resembling my problem (I made this in Flash MX in a few minutes which isn't working well with me):

Clipboard Actions: Line 1: Mouse events are permitted only for button instances
on(release){

oldnewbie
03-27-2006, 07:05 PM
Here's one way...

Dissident
03-28-2006, 11:54 PM
Wow that's embarassingly easy.

Thanks a ton, you're awesome.