PDA

View Full Version : Mouse-Out Animation on Button


tptompkins
03-07-2007, 10:16 PM
I'm fairly new to flash and am trying to do something that seems should be very simple. I have a button that I've created and have a movie clip on the "Up" event and a different movie clip on the "Over" event. I was sort of expecting there to be an "Out" event or mouse out event but there doesn't seem to be. I'd like to put a different movie clip on the Out event.

I tried to get around this using action script but doesn't seem to be working. Do any of you have any good tips as to how I can place a different Movie Clip on the mouse out of a button???

Thanks in advance!

Tommy

Dralamir
03-08-2007, 07:09 AM
on(rollOut) doesn't work for you? Not quite sure if I followed you there, though.

tptompkins
03-08-2007, 01:38 PM
Thanks for the reply. I managed to get what I wanted from changing my button to a movie clip and then manually managing the events like this:


my_mc.onRollOver = function()
{
gotoAndPlay("over");
}
my_mc.onRollOut = function()
{
gotoAndPlay("out");
}
my_mc.onPress = function()
{
gotoAndPlay("press");
}
my_mc.onRelease = my_mc.onReleaseOutside = function()
{
gotoAndPlay("up");
}


In the end I actually went back to the button because I didn't like what I was trying to do :p

Tommy