Ver Mensaje Individual
  #6 (permalink)  
Antiguo 23/10/2006, 14:48
bryce
 
Fecha de Ingreso: octubre-2006
Ubicación: 91330, Essonne, France
Mensajes: 43
Antigüedad: 17 años, 6 meses
Puntos: 0
Isaacluz Gracias por tu idea

Isaacluz. Muchas gracias me has dado una idea tremenda solo poniendo SPACE en tu post se me ocurrio de hacerlo con else if y es la solucion.

Código HTML:
onClipEvent (load) {
	objects = 26;
	speed = 80;
	react = 1.2;
	displayratio = 0.8;
	zoom = 12;
	zaxis = 30000;
	zaxisdef = 26000;
	scaler = 15;
	for (i=1; i<=objects; i++) {
		set("z"+i, (4000*i)-50000);
	}
}
onClipEvent (enterFrame) {
	newx = (newx-((_root._xmouse-this._x)/speed))/react;
	newy = (newy-((_root._ymouse-this._y)/speed))/react;
	if (_root.press == 0) {
		newz = newz-12;
	} else if (_root.press == 1) {
		newz = newz+12;
	} else if (_root.press == 2) {
		newz = 0
	}
	xaxis += newx;
	yaxis += newy;
	zaxis += newz;
	for (i=1; i<=objects; i++) {
		set("ratio"+i, 100000/(zaxis-this["z"+i]));
		set("cx"+i, (xaxis*this["ratio"+i])/100);
		set("cy"+i, (yaxis*this["ratio"+i])/100);
		if (this["ratio"+i]>0 && this["z"+i]<zaxis) {
			_root["object"+i]._visible = 1;
			_root["object"+i]._xscale = (this["ratio"+i]*displayratio)*scaler;
			_root["object"+i]._yscale = (this["ratio"+i]*displayratio)*scaler;
			_root["object"+i]._x = (this._x+this["cx"+i])+this["ratio"+i];
			_root["object"+i]._y = (this._y+this["cy"+i])+(this["y"+i]*this["ratio"+i]);
			_root["object"+i]._alpha = (this["ratio"+i]*2.5)+10;
		} else {
			_root["object"+i]._visible = 0;
		}
	}
}
_root.press==0 1 y 2 son las teclas UP DOWN y SPACE.

Código HTML:
on (keyPress "<Up>") {
	_root.press = 1;
}
on (keyPress "<Down>") {
	_root.press = 0;
}
on (keyPress "<Space>") {
	_root.press = 2;
}
Solo me queda cambiarlo para que sea mas logico SPACE = 0 y demas.

De esta forma guarda todas sus calidades _visible = 0 y ademas se detiene para poderlo ver bien.

Dieu vous benisse tous et toutes sur ce forum