Ver Mensaje Individual
  #4 (permalink)  
Antiguo 09/02/2009, 14:23
Avatar de Diegoazul
Diegoazul
 
Fecha de Ingreso: mayo-2007
Ubicación: { Dash Berlin }
Mensajes: 1.879
Antigüedad: 16 años, 10 meses
Puntos: 67
Respuesta: Condicionales para volver a estado inicial

a ver pon esto:

Código:
on (press) {
	xtemppos = _root.holder._x;
	ytemppos = _root.holder._y;
	tempw = _root.holder._width;
	temph = _root.holder._height;
	xtemp = _root.holder._xscale;
	Ytemp = _root.holder._yscale;
	_root.holder._yscale = Ytemp-20;
	_root.holder._xscale = Ytemp-20;
	tempw2 = _root.holder._width;
	temph2 = _root.holder._height;
	xdelta = xtemppos-((tempw2-tempw)/2);
	ydelta = ytemppos-((temph2-temph)/2);
	_root.holder._x = xdelta;
	_root.holder._y = ydelta;

	if (_root.holder._width<638.9 || _root.holder._height<396.9) {
		_root.holder._x = 82.5;
		_root.holder._y = 113.5;
		_root.holder._width=638.9;
		_root.holder._height=396;


	}
}