/ Published in: ActionScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
import flash.events.MouseEvent;
stage.addEventListener(MouseEvent.MOUSE_MOVE, onHit);
var virgin:Boolean = true;
function onHit(event:MouseEvent):void
{
if(finalframe.cta.btn.hitTestPoint(mouseX, mouseY, true))
{
if(virgin)
{
finalframe.cta.btn.gotoAndPlay(2);
virgin = false;
}
}
else
{
if(!virgin)
{
finalframe.cta.btn.gotoAndPlay(11);
virgin = true;
}
}
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                