Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/12/2004, 13:56
Avatar de ppjillol@
ppjillol@
 
Fecha de Ingreso: diciembre-2002
Mensajes: 110
Antigüedad: 21 años, 4 meses
Puntos: 0
un onClipEvent(enterFrame) perezoso! 8)

Hola a todo/as,

Tengo un problema curioso, le he dado muchas vueltas i buscado alternativas pero sigue sin funcionar:

El flash es este : http://www.rosesfhn.org/flash/cavallers.html
aqui esta el FLA: en zip http://www.rosesfhn.org/flash/cavallers.zip

El caballero de la derecha deberia moverse con las teclas del cursor o con A-Z, N-M, però normalmente no lo hace... i solo al cabo de un rato le da por moverse.

Lo curioso es que si abrimos el menu contextual con el clic-derecha sobre el flash. Voila! ja funciona ... i no tengo ni p.idea de porque lo hace

Aqui dejo el codigo principal , po rsi alguien ve alguna cosa rara :
Código HTML:
onClipEvent(enterFrame){	
	
	if((key.isDown(Key.up)) or (key.isDown(65))) {	
	this._rotation +=5;
		if (_root.cav1._rotation>20) { _root.cav1._rotation=20;}
	
	}
	
	if((key.isDown(Key.down))or (key.isDown(90))) {
	_root.cav1._rotation -=5;
		if (_root.cav1._rotation<-30) { _root.cav1._rotation=-30;}
	
	} 
	if((key.isDown(Key.left))or (key.isDown(78))) {
	_root.cav1._x -=2;
		
	}
	if((key.isDown(Key.right))or (key.isDown(77))) {
	_root.cav1._x +=2;
		
	}
	
	if(_root.cav1.top_cav1.llanca.hittest(_root.cav2.escut)){
		_root.cav2.gotoAndPlay("cau");


	}
	if(_root.cav1.top_cav1.casc1.hittest(_root.cav2.llanca2)){
		_root.cav1.gotoAndPlay("cau");


	}
	if (_root.cav1._x<-50) {   
		_root.cav1._x=800;
   		_root.cav1.gotoAndPlay(1);
	}
	
	_root.cav1._x -=5 ;
	

}
un saludo muy grande y muchas gracias por anticipado!!!

salud
ppjj