Yo creo un mapa a partir de un as donde defino como es el mapa de esta forma :
Código:
Estoy funciona bien sin ningun problema, mi problema es que quiero crear este mapa dinamicamente mediante asp, de la pagina asp se sacar el dato ya que si pongo nombremapa=esteeselnombre en el flash me lo muestra.myMap =[ [1,1,1,1,1,5,1,1,1,1,1,1,1,1,1,5,5,5,5,1], [1,5,5,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,1], [1,5,5,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,1], [1,5,5,8,5,8,5,8,5,5,5,5,5,5,5,5,5,5,5,1], [1,5,5,8,8,5,2,8,2,8,2,5,5,5,5,5,5,5,5,1], [1,5,5,8,8,8,8,5,8,8,5,2,2,2,2,5,5,5,5,1], [1,5,5,11,11,8,11,11,11,11,11,2,2,5,5,5,5,5,5,1], [1,5,8,11,2,11,8,5,8,5,8,11,2,5,2,5,5,5,5,1], [1,5,8,11,11,5,8,8,5,11,5,11,5,5,5,5,5,5,5,1], [1,5,8,8,11,5,5,8,11,11,11,2,11,8,2,5,5,5,5,1], [1,5,8,5,2,11,2,11,5,11,5,11,11,5,5,2,8,8,5,1], [1,5,8,8,2,2,2,11,5,2,8,2,11,8,8,8,2,8,5,1], [1,5,8,8,8,5,5,11,5,5,11,5,2,5,5,8,5,8,5,1], [1,5,5,5,2,5,8,11,11,5,11,11,11,11,8,8,2,8,5,1], [1,5,5,5,2,5,2,2,5,11,11,2,11,11,11,5,5,8,5,1], [1,5,5,5,2,2,2,5,5,2,11,11,5,8,5,8,8,8,5,1], [1,5,5,5,5,5,2,2,2,2,5,2,5,2,5,5,5,5,5,1], [1,5,5,5,5,5,5,5,5,5,5,2,2,2,5,5,5,5,5,1], [1,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,1], [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] ];
Pero si intento poner esto en el asp :
mapa=[1,1,1,1,1,5,1,1,1,1,1,1,1,1,1,5,5,5,5,1],
Que seria la primera linea del mapa y despues en el flash unir el as con el asp pues no me deja.
Termino de explicar a ver si veis el error :
El asp me muestra esto :
mapa1=1,1,1,1,1,5,1,1,1,1,1,1,1,1,1,5,5,5,5,1
Y en el as tengo esto :
Código:
myMap1 =[ [1,5,5,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,1], [1,5,5,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,1], [1,5,5,8,5,8,5,8,5,5,5,5,5,5,5,5,5,5,5,1], [1,5,5,8,8,5,2,8,2,8,2,5,5,5,5,5,5,5,5,1], [1,5,5,8,8,8,8,5,8,8,5,2,2,2,2,5,5,5,5,1], [1,5,5,11,11,8,11,11,11,11,11,2,2,5,5,5,5,5,5,1], [1,5,8,11,2,11,8,5,8,5,8,11,2,5,2,5,5,5,5,1], [1,5,8,11,11,5,8,8,5,11,5,11,5,5,5,5,5,5,5,1], [1,5,8,8,11,5,5,8,11,11,11,2,11,8,2,5,5,5,5,1], [1,5,8,5,2,11,2,11,5,11,5,11,11,5,5,2,8,8,5,1], [1,5,8,8,2,2,2,11,5,2,8,2,11,8,8,8,2,8,5,1], [1,5,8,8,8,5,5,11,5,5,11,5,2,5,5,8,5,8,5,1], [1,5,5,5,2,5,8,11,11,5,11,11,11,11,8,8,2,8,5,1], [1,5,5,5,2,5,2,2,5,11,11,2,11,11,11,5,5,8,5,1], [1,5,5,5,2,2,2,5,5,2,11,11,5,8,5,8,8,8,5,1], [1,5,5,5,5,5,2,2,2,2,5,2,5,2,5,5,5,5,5,1], [1,5,5,5,5,5,5,5,5,5,5,2,2,2,5,5,5,5,5,1], [1,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,1], [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] ]; myMap = mapa1 + "," + myMap1;
¿Que deberia poner? ¿Tiene alguna particularidad?. No se por que no me lo continua ....
Venga gracias anticipadas.