Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/03/2008, 18:19
bonguietorri
 
Fecha de Ingreso: marzo-2008
Mensajes: 2
Antigüedad: 16 años, 1 mes
Puntos: 0
Re: Problema galeria de imagenes

Bandit gracias por tu rapida respuesta. Entiendo lo que me dices, pero no se como hacerlo.
Como decias, tengo un MC vacio en el cual se van cargando los diferentes MC de las secciones.
Los botones con los que cargo las diferentes secciones los creo mediante variables en _root con el siguiente codigo:

[I]button._visible = false;
var button_label:Array = new Array("Inicio", "Catalogo", "Servicios", "Historia", "Conocenos", "Contacto", "Galería");
var total_page:Number = button_label.length;

for( i = 0; i < total_page; i++ )
{
button.duplicateMovieClip("button" + i, i);
this["button" + i]._x = button._x + (button._width+1) * i;
this["button" + i]._y = button._y;
this["button" + i].label_txt = button_label;
this["button" + i].no = i;
}
function change_page(no)
{
for( i = 0; i < total_page; i++ )
{
this["button" + i].button_mc._visible = true;
this["button" + i].graphic_bg1._visible = true;
this["button" + i].graphic_bg2._visible = false;
}
this["button" + no].button_mc._visible = false;
this["button" + no].graphic_bg1._visible = false;
this["button" + no].graphic_bg2._visible = true;
_root.page = no + 1;
_root.play();
}
change_page(0);


El codigo que tengo puesto en el frame correspondiente al contenido galeria lo tengo en otra capa llamada acciones y es el siguiente:
[I]


stop();

var total:Number = 12;

var label_list:Array = new Array( "041_horizontal_scroller", "042_vertical_scroller", "043_intro", "044_intro", "045_elastic", "046_thumbnail_xml", "047_present", "048_vertical_menu_xml", "049_horizontal_menu_xml", "050_star_effect", "051_star_motion", "052_design");

var link_list:Array = new Array("http://www.flashmo.com/preview/flashmo_041_horizontal_scroller", "http://www.flashmo.com/preview/flashmo_042_vertical_scroller", "http://www.flashmo.com/preview/flashmo_043_intro", "http://www.flashmo.com/preview/flashmo_044_intro", "http://www.flashmo.com/preview/flashmo_045_elastic", "http://www.flashmo.com/preview/flashmo_046_thumbnail_xml", "http://www.flashmo.com/preview/flashmo_047_present", "http://www.flashmo.com/preview/flashmo_048_vertical_menu_xml", "http://www.flashmo.com/preview/flashmo_049_horizontal_menu_xml", "http://www.flashmo.com/preview/flashmo_050_star_effect", "http://www.flashmo.com/preview/flashmo_051_star_motion", "http://www.flashmo.com/preview/flashmo_052_design");

var radiusX:Number = 150;//330;
var radiusY:Number = 65;//90;
var centerX:Number = 185;//400;
var centerY:Number = 140;
var speed:Number = 0.005;
tn_group_mc._visible = false;
info.text = ""; fm_label.text = "";

for( var i = 0; i < total; i++)
{
var t = tn_group_mc.duplicateMovieClip("tn"+i, i);
t.tn_mc.gotoAndStop(i+1); t.tn_shadow_mc.gotoAndStop(i+1);
t.fm_label = label_list[i];
t.fm_url = link_list;

t.angle = i * ((Math.PI*2)/total);
t.onEnterFrame = mover;

t.fm_button.onRollOver = function()
{
fm_label.text = "Title: " + this._parent.fm_label;
info.text = "URL: " + this._parent.fm_url;
}
t.fm_button.onRollOut = function()
{
info.text = ""; fm_label.text = "";
}
t.fm_button.onRelease = function()
{
getURL(this._parent.fm_url, "_blank");
}
}
function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = this._y /(centerY+radiusY);
this._xscale = this._yscale = s*100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
}
this.onMouseMove = function()
{
speed = (this._xmouse-centerX) * 0.0001;
}


Espero que puedas ayudarme