Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/01/2009, 01:18
Avatar de unreal4u
unreal4u
 
Fecha de Ingreso: octubre-2008
Mensajes: 72
Antigüedad: 15 años, 5 meses
Puntos: 10
Respuesta: imágenes dinámicas + links en ellas = cómo?

aaaaaaaaaaaaaaaaaaaaaaaaaaaahhhhh !!!! LO HICE !!!! :D

Revisando la guía de Sargento me di cuenta de una línea que me llamó mucho la atención:
Código:
ref_b = _root.attachMovie( 'boton', 'boton' + b, prof );
Me puse a investigar para qué servía attachMovie y llegué a la siguiente página:
Código:
http://www.tallerwebmaster.com/Tutorial-Menu-Dinamico-con-XML-y-Adobe-Flash-Final-c-101.html
Así que combinando un poco el consejo de Sargento con el tutorial de arriba (que me explicó los conceptos básicos de los cuales no tenía idea), llegué a escribir el siguiente código:

Código:
for (var i = 0; i<this.cant; i++) {
  this.ref["nombre"+i].htmlText = "<b><a href=\""+this["link"+i]+"\" target=\"_self\">"+this["nombre"+i]+"</a></b>";
  this.ref["imagen"+i].texto_txt.htmlText = "<b><a href=\""+this["link"+i]+"\">"+this["nombre"+i]+"</a></b>";
  this.ref["imagen"+i].texto_txt.autoSize = true;
  this.ref["imagen"+i].loader_mc.loadMovie(this["foto"+i]);
  this.ref["imagen"+i].attachMovie("loader_mc","testing"+i,this.getNextHighestDepth());
  this.ref["imagen"+i].linkurl = this["link"+i]; 
  this.ref["imagen"+i].onRelease = function() {
    getURL(this.linkurl, "_self");
  };
}
Lo que finalmente hizo la magia :D

Ahora bien, ignoro si está 100% bien lo que hice, a medida que pruebe con todos los navegadores lo más probable es que tenga que hacer algunos ajustes, pero al menos ahora está funcionando en firefox xDD

Muchísimas gracias Sargento, si no fuera por tí no lo habría podido hacer :D

Saludos !!