Comunidad de diseño web y desarrollo en internet online

Problema con onClipEvent flash 8+

Citar            
MensajeEscrito el 11 Nov 2005 12:03 pm
Problema con onClipEvent flash 8+

Tengo el silente código que al configurar flash 8 con las propiedades de pantalla para que con formato flash 6 y AS 1.0 me funciona sin problema
Como lo puedo pasar a flash 8 o flash 7 AS 2 ?

onClipEvent (load) {
accel = 0.2;
rate = 0.2;
targetwidth = _root.stand_value;
}
onClipEvent (enterFrame) {
//elasticScale(this.targetScale, this.accel, this.rate);
xx +=accel+(56-_width)*rate;
_width += xx;
if (Math.abs(56-_width)<1) {
_width = -56;

}
x = x*accel+(targetx-_x)*rate;
_x += x;
}

Gracias

Por ari2004

6 de clabLevel



 

santiago

msie
Citar            
MensajeEscrito el 11 Nov 2005 06:16 pm
no se si este es el resultado, pero

Código :

onClipEvent (load) {
   var accel:Number = 0.2;
   var rate:Number = 0.2;
   var xx:Number=0
   targetwidth = _root.stand_value;
}
onClipEvent (enterFrame) {
   //elasticScale(this.targetScale, this.accel, this.rate);
   xx += accel+(56-_width)*rate;
   _width += xx;
   if (Math.abs(56-_width)<1) {
      _width = -56;
   }
   x = x*accel+(targetx-_x)*rate;
   _x += x;
}

Por chko

109 de clabLevel



 

México

firefox
Citar            
MensajeEscrito el 11 Nov 2005 06:44 pm
si
grasias es mira el verdadero porblema que tengo es en este codigo
http://www.grado5.cl/menu.swf
http://www.grado5.cl/menu.fla

grasias :) chko
nome a resultado bien

Por ari2004

6 de clabLevel



 

santiago

msie
Citar            
MensajeEscrito el 11 Nov 2005 06:45 pm
osea el problema que tenia era al declarar la variables

var accel:Number = 0.2;
var rate:Number = 0.2;
var xx:Number=0
targetwidth = _root.stand_value;

Por ari2004

6 de clabLevel



 

santiago

msie

 

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