var clic:Boolean = new Boolean;
var timer1:Timer = new Timer(3000);
clic = false;
ver1.addEventListener(MouseEvent.CLICK, ver1_CLICK);
timer1.addEventListener(TimerEvent.TIMER, onTimer1);
function ver1_CLICK(e:MouseEvent):void
{
if(clic == false) {
timer1.start();
e.target.root.contenedor.x = 318;
clic = true;
ver1.rotation += 180;
ver1.y = 14;
ver1.x = 10;
} else {
e.target.root.contenedor.x = 516;
clic = false;
ver1.rotation -= 180;
ver1.y = -290.6;
ver1.x = 0;
}
}
function onTimer1(evt:TimerEvent):void
{
timer1.stop();
event.target.root.contenedor.x = 516; // no anda
//e.target.root.contenedor.x = 516;
clic = false;
ver1.rotation -= 180;
ver1.y = -290.6;
ver1.x = 0;
}
