Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/12/2005, 23:11
Avatar de Fastlane
Fastlane
 
Fecha de Ingreso: febrero-2004
Ubicación: ElSalvador
Mensajes: 43
Antigüedad: 20 años, 2 meses
Puntos: 0
He tratado de hacer lo siguiente: que las imagenes esten girando y q posea un scroll horizontal sin necesidad de botones, segun tutores proporcionados por Bandit por el momento no he descubierto el error, si alguien ve algo pues se lo agradesco
Código:
onEnterFrame=function(){
//velocida fotos
fotos._x-=2;
//avanza animacion
if(fotos.x<-960){
fotos._x=162;
}
}
Código:
stop();
clipBounds = mc_zona.getBounds(_root);
top = clipBounds.xMin+(mc_zona._width-fotos._width);
bottom = clipBounds.xMin;
medio = mc_zona._width/2;
velocidad = 5;
//--mascara
this.createEmptyMovieClip("mascara",1000);
this.fotos.setMask(mascara);
with (mascara) {
	lineStyle(1, 0xff0000, 100);
	moveTo(clipBounds.xMin, clipBounds.yMin);
	beginFill(0xff0000, 100);
	lineTo(clipBounds.xMax, clipBounds.yMin);
	lineTo(clipBounds.xMax, clipBounds.yMax);
	lineTo(clipBounds.xMin, clipBounds.yMax);
	lineTo(clipBounds.xMin, clipBounds.yMin);
	endFill;
}
this.onEnterFrame = function() {
	if (mc_zona.hitTest(_root._xmouse, _root._ymouse)) {
		//subir
		if (_root._xmouse>clipBounds.xMin+medio) {
			if (fotos._x>top) {
				fotos._x -= velocidad;
			}
		}
		//bajar
		if (_root._xmouse<clipBounds.xMin+medio) {
			if (fotos._x<bottom) {
				fotos._x += velocidad;
			}
		}
	}
};