Copy link to clipboard
Copied
What is the as3 code in order to rollover a image and it will automatically get bigger?
Copy link to clipboard
Copied
You can have your ROLL_OVER event handler function change the scaleX and scaleY properties of the object, or you could have the width and height of the object changed instead.
Copy link to clipboard
Copied
you need set the image into a MovieClip, a container
then
add the code
containerImage.addEventListener(MouseEvent.MOUSE_OVER, bigSize)
function bigSize(e:MouseEvent):void{
e.target.scaleX= e.target.scaleY=3 // size X 3
}
containerImage.addEventListener(MouseEvent.MOUSE_OUT, normalSize)
function normalSize(e:MouseEvent):void{
e.target.scaleX= e.target.scaleY=1 // normal size
}