Return to Snippet

Revision: 65044
at October 17, 2013 20:56 by adehaas


Initial Code
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;
		}
	}
}

Initial URL

                                

Initial Description

                                

Initial Title
AdRime Mouse Over

Initial Tags

                                

Initial Language
ActionScript