Hi all,
As you can tell I’m VERY new to action script 3.0
I am trying to get image thumbs to slide out from behind others when moused over, and when clicked the expand in size.
I can’t figure out how to add it so when you click again it returns to its original position and size.
Please help, and thanks to all.
here is my code so far:
**beautyshot_1.addEventListener(MouseEvent.CLICK,onClick);
beautyshot_1.addEventListener(MouseEvent.ROLL_OVER, beauty1Over);
beautyshot_1.addEventListener(MouseEvent.ROLL_OUT,beauty1Out);
function beauty1Over(event:MouseEvent):void
{
event.target.alpha = 1;
event.target.x += 100;
}
function onClick(event:MouseEvent):void
{
event.target.scaleY += 2;
event.target.scaleX += 2;
}
function beauty1Out(event:MouseEvent):void
{
event.target.alpha = 1;
event.target.x -= 100;
}
beautyshot_1.buttonMode = true**