Return to Snippet

Revision: 33691
at October 12, 2010 06:51 by mioestudio


Initial Code
para.addEventListener(MouseEvent.CLICK, onClickHandler);

var marca:Boolean = true;

function onClickHandler(myEvent:MouseEvent)
{
	//trace("I waited for Press AND Release!!!");
	if (marca)
	{
		stopAll(stage);
		marca = false;
	}
	else
	{
		playAll(stage);
		marca = true;
	}
}

Initial URL

                                

Initial Description

                                

Initial Title
boton toggle as3

Initial Tags

                                

Initial Language
ActionScript 3