tengo hecho un swf en el que arrastro los MC con el Mouse y los escalo al hacerle dole click
pero ahora quiero que que el doble click funcione tanto escalando como llamemosle desescalando.
Y no se como hacerlo. esa condicion que escribo en rojo es la que no se donde colar para que ande y me vuelva los clip a su estado normal, cuando estan escalados.
Desde ya gracias por cualquier aporte
onClipEvent (enterFrame) {
this.onRelease = function ()
{
if ((Number (getTimer () - ultimoClick) < 500) && (_root._xscale > 110)) {
this.stopDrag ();
this._xscale = 100;
this._yscale = 100;
this._x = 240;
this._y = 440;
this._rotation = -5;
}
};
}
onClipEvent (enterFrame) {
this.onPress = function ()
{
this.startDrag (c_web2);
this.swapDepths (0);
};
this.onRelease = function ()
{
if ((Number (getTimer () - ultimoClick) < 500) && (_root._xscale == 100)) {
// 500 tiempo en milisegundos del doble click
//Acciones a ejecutar en el dobleClick
this.stopDrag ();
this._xscale = 350;
this._yscale = 350;
this._x = 500;
this._y = 350;
this._rotation = 0;
} else {
ultimoClick = getTimer ();
//Acciones a ejecutar en el Click Simple
this.stopDrag ();
}
};
}
