Comunidad de diseño web y desarrollo en internet online

ayuda con las hormigas...

Citar            
MensajeEscrito el 27 Dic 2006 11:44 pm
wenas...
esta es la cosa: intento agregar a mi pagina lo de un ejemplo de hormigas moviendose por el esenario (http://www.cristalab.com/ejemplos/22/juego-experimental-de-hormigas-en-flash) pero cuando trato de publicar el swf, flash me sale con la siguiente historia :( :

Código :

**Error** Scene=Escena 1, layer=Fondo, frame=1:Line 3: There is no property with the name 'randRange'.
     Math.randRange = function(min, max, nbDecimales) {

**Error** Scene=Escena 1, layer=Fondo, frame=1:Line 15: There is no property with the name 'radian'.
     Math.radian =function(grados) {return grados*(Math.PI/180);}

**Error** Scene=Escena 1, layer=Fondo, frame=1:Line 16: There is no property with the name 'grados'.
     Math.grados = function(radian) {return radian*(180/Math.PI);}

**Error** Scene=Escena 1, layer=Fondo, frame=1:Line 39: There is no method with the name 'grados'.
              this.angulo = Math.grados(this.angulo)+180;

**Error** Scene=Escena 1, layer=Fondo, frame=1:Line 48: There is no method with the name 'randRange'.
              if (!Math.randRange(0,2)){

**Error** Scene=Escena 1, layer=Fondo, frame=1:Line 53: There is no method with the name 'randRange'.
                 this.radio = Math.randRange(2,this.radioNormal);

**Error** Scene=Escena 1, layer=Fondo, frame=1:Line 55: There is no method with the name 'randRange'.
                 this.angulo += Math.randRange(-this.anguloAleatorio,this.anguloAleatorio);

**Error** Scene=Escena 1, layer=Fondo, frame=1:Line 58: There is no method with the name 'radian'.
              mx = this._x+Math.cos(Math.radian(this.angulo))*this.radio;

**Error** Scene=Escena 1, layer=Fondo, frame=1:Line 59: There is no method with the name 'radian'.
              my = this._y+Math.sin(Math.radian(this.angulo))*this.radio;

Total ActionScript Errors: 9     Reported Errors: 9


:shock: siendo que el archivo original esta perfectamente bueno... :P

gracias... ^^

Por mngm

5 de clabLevel



 

msie
Citar            
MensajeEscrito el 28 Dic 2006 01:15 am
¿Qué versión de Flash utilizas?

Por Zguillez

BOFH

10744 de clabLevel

85 tutoriales
17 articulos
3 ejemplos

Genero:Masculino   Bastard Operators From Hell Héroes Team Cristalab Editores

BCN

opera
Citar            
MensajeEscrito el 28 Dic 2006 01:28 am
flash 8

Por mngm

5 de clabLevel



 

msie
Citar            
MensajeEscrito el 28 Dic 2006 04:13 am
no has importado las clases, por eso es que no conoce esas funciones

Por Inyaka

Claber

3176 de clabLevel

9 tutoriales
2 articulos

Genero:Masculino   Desarrollador de GAIA

Programador y fotógrafo

firefox

 

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