View Full Version : Need Animation to stay after rollover..
SUZIsunshine
October 27th, 2009, 02:44 PM
What I'm trying to do is have a button that when you roll over it, this image gallery I have will appear. I need it to stay after the roll over though and not disappear again. Anyone have any idea how to make it stay? Thanks so much in advance!
IQAndreas
October 27th, 2009, 02:50 PM
Make it into a movie clip instead, put whatever is always visible in frame 1, and whatever is only visible on roll over, and use the following code in frame 1:
stop();
this.addEventListener(MouseEvent.ROLL_OVER, onRollOver);
function onRollOver(me:MouseEvent)
{
//Remove the event listener
this.removeEventListener(MouseEvent.ROLL_OVER, onRollOver);
//And move on to the next frame, which contains the image
this.gotoAndStop(2);
}
SUZIsunshine
October 27th, 2009, 03:01 PM
thanks so much! i'll give this a try
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.