View Full Version : Making movies act like buttons
djvie
08-18-2006, 10:12 PM
I'm trying to have a smooth animation happen when someone rolls over my buttons -both when rolling over and rolling off.
Is there a way to do this? Add actions to the movie itself and have it act like a button?
thanks!
thatblokemike
08-18-2006, 10:44 PM
yup... i dont use buttons anymore. Always make movieclips into buttons
buginajar
08-18-2006, 11:04 PM
use this code. Also, to each their own, but I always put all my code on frame 1 of the movie so everything is in one place.
targetMC.onRollOver = function(){
//Rollover Action
}
targetMC.onRollOut = function(){
//Rollout Action
}
targetMC.onRelease = function(){
//Release Action
}
djvie
08-18-2006, 11:53 PM
okay ... so where in that code would i put "gotoandplay frame whatever" in that code?
thanks
targetMC.onRollOver = function(){
//Rollover Action
}
targetMC.onRollOut = function(){
//Rollout Action
}
targetMC.onRelease = function(){
//Release Action
}
tonyloco2
08-19-2006, 01:30 AM
I've attached an example to this post....hope it helps
tonyloco2
08-19-2006, 01:39 AM
oops forgot to attatch lol...here you go
tonyloco2
08-19-2006, 11:29 AM
wow i'm really not good with the whole posting thing...that was the swf....heres the fla file....lol
djvie
08-20-2006, 09:09 PM
thanks tony! this does help.
tonyloco2
08-21-2006, 11:16 PM
lol no problem...i'm just a little retarded when it comes to posting...
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.