

Tengo un problema que no me deja dormir por las noches resulta que estoy haciendo una galeria dinamica con movimiento en flash, la cual obtiene la información e imagenes desde un txt, sin embargo mis botones estan contenidos dentro de mi pelicula con lo que el peso aumenta considerablemente, mi pregunta es como puedo crear los botones a partir de un Movieclip dentro de la biblioteca y anexarle a cada boton una miniatura correspondiente a la imagenla contenida en el txt.
este es mi script:
Código :
info = new LoadVars(); info.onLoad = function( leido ){ if( leido ){ // Deserializamos la información arr_datos = info.datos.split( '--o--' ); for( i = 0; i < arr_datos.length; i++ ){ arr_datos[ i ] = arr_datos[ i ].split( '--x--' ); } // Definimos los parámetros generales de los botones cantidad = 19 origen_y = 410; ancho = 163; espacio = ancho + 25; limite = cantidad * espacio; for( b = 0; b < arr_datos.length; b++ ){ // Sembramos los botones ref_b = attachMovie( 'sprite '+b, 'sprite 1' + b, getNextHighestDepth()); ref_b._x = espacio * b + 25; ref_b._y = origen_y //movimiento vel = 0; onEnterFrame = function () { vel = int((_xmouse - 319) / -319 * 10); }; // Asignamos el indice correspondiente al botón ref_b.indice = b; // Asignamos las acciones del botón ref_b.onRollOver = function(){ onEnterFrame = function () { vel = int((_xmouse - 319) / -319 * 0); }; // Asignamos los textos txt_nombre.text = arr_datos[ this.indice ][ 0 ]; txt_descripcion.text = arr_datos[ this.indice ][ 1 ]; txt_medidas.text = arr_datos[ this.indice ][ 3 ]; // Cargamos la imagen imagen.loadMovie( arr_datos[ this.indice ][ 2 ] ); } } } } info.load( 'circa.txt' ); hit_mc.onRollOver = function(){onEnterFrame = function () { vel = int((_xmouse - 319) / -319 * 0); }} hit_mc.onRollOut = function(){onEnterFrame = function () { vel = int((_xmouse - 319) / -319 * 10); }; } stop();