Comunidad de diseño web y desarrollo en internet online

Ayuda con un boton de texto scroll URGENTE!!!

Citar            
MensajeEscrito el 14 Feb 2009 04:21 pm
Hola necesitaria resolver este problema aqui dejo mi codigo, en lugar de hacer el scroll cada vez q haga click en el boton, necesitaría que el scroll lo haga cuando se posicione el mouse encima del boton y deje de hacerlo hasta que me salga de él, aqui dejo el codigo:

Código ActionScript :

this.loadVariables("instituto.txt");//leo el archivo externo txt
this.Up.onPress = function(){
Direccion = "up";
MoverTexto();
}

this.Down.onPress = function(){
Direccion = "down";
MoverTexto();
}

function MoverTexto(){
_root.onEnterFrame = function(){
if(Direccion == "up"){
mytext.scroll -= 1;
}else if(Direccion == "down"){
mytext.scroll += 1;
}
}
}
this.Down.onRelease = function(){
delete _root.onEnterFrame;
}

this.Up.onRelease = function(){
delete _root.onEnterFrame;
}

Otra cosita probe en lugar de onRelease por onRollOver pero no funciona, ayuda urgente!!!! Gracias :(

Por arieljbon

56 de clabLevel



 

argentina

msie7
Citar            
MensajeEscrito el 14 Feb 2009 06:22 pm
pues asi me fuciono con rollOver y Out

Código ActionScript :

this.loadVariables("instituto.txt");//leo el archivo externo txt 
this.Up.onRollOver = function(){ 
Direccion = "up"; 
MoverTexto(); 
} 
 
this.Down.onRollOver = function(){ 
Direccion = "down"; 
MoverTexto(); 
} 
 
function MoverTexto(){ 
_root.onEnterFrame = function(){ 
if(Direccion == "up"){ 
mytext.scroll -= 1; 
}else if(Direccion == "down"){ 
mytext.scroll += 1; 
} 
} 
} 
this.Down.onRollOut = function(){ 
delete _root.onEnterFrame; 
}
 
this.Up.onRollOut = function(){ 
delete _root.onEnterFrame; 
} 

Por tribak

Claber

2448 de clabLevel

6 tutoriales

Genero:Masculino   Héroes

Fotógrafo o algo

firefox
Citar            
MensajeEscrito el 14 Feb 2009 06:28 pm
Tribak, Gracias!!!! :D , me faltaba poner onRollOut, anda espectacular!!!!! :wink:

Por arieljbon

56 de clabLevel



 

argentina

msie7

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.