Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/02/2010, 14:48
Avatar de barbafran17
barbafran17
 
Fecha de Ingreso: febrero-2010
Ubicación: Sevilla
Mensajes: 11
Antigüedad: 14 años, 3 meses
Puntos: 0
Ayuda con galeria de imágenes

Hola buenas tardes me he registrado este pedazo de foro ya que llevo un par de dias revisandolo porque quiero intentar cargar imágenes de forma externa para no tener que andar modificando mi archivo de galería cada vez que quiera meter nuevas fotos en la web. Pues bien he realizado tutoriales mediante el componente loader y no he conseguido que se cargue las imágenes.
Es por ello que os dejo mi archivo fla de la galería de imágenes para que un alma caritativa lo revise y me ayude ya que no entiendo muxo en esto ya que llevo poco tiempo.
El tema es ese que quisiera cargar imágenes externamente pero al igual lo que he realizado con los tutoriales no lo e hecho en su capa y frame correpondiente etc etc.
Lo unico que he coseguido es cambiar el texto dinamicamente pero me falta esto. Bueno sin mas un saludo. Espero que me ayuden. Gracias.
Enlace a mi archivo fla-->http://hotfile.com/dl/27185426/13af781/galera_de_imagenes.fla.html
Código de la galería.
Cita:
_global.slidingMenu2 = this;
big_height = 390;
big_width = 390;
medium_height = 60;
medium_width = 60;
small_height = 40;
small_width = 40;
time_for_animation = 80;
box_num = 8;
box1._width = medium_width + 1;
box1._height = medium_height;
var z = 2;
while (z < box_num)
{
duplicateMovieClip(this.box1, "box" + z, z + 100);
this["box" + z]._x = Math.random() * 1000 - 500;
this["box" + z]._width = Math.random() * 10;
this["box" + z]._height = Math.random() * 10;
this["box" + z].pics.gotoAndStop(z);
this["box" + z].id = z;
++z;
} // end while
box1.id = 1;
box1._width = 2;
box1._height = 2;
var i = 1;
while (i < box_num)
{
this["box" + i].area.onRelease = function ()
{
_root.scroller.gotoAndStop(2);
if (this._parent._width < big_width - 30)
{
s = new Sound();
s.attachSound("sound_over2");
s.start(0, 1);
slidingMenu2.moveBoxes(this._parent.id);
slidingMenu3.resetBoxes();
slidingMenu4.resetBoxes();
}
else
{
slidingMenu2.resetBoxes();
s = new Sound();
s.attachSound("sound_over2");
s.start(0, 1);
} // end else if
};
this["box" + i].area.onRollOver = function ()
{
slidingMenu2.RollOverBoxes(this._parent.id);
};
this["box" + i].area.onRollOut = function ()
{
slidingMenu2.RollOutBoxes(this._parent.id);
};
++i;
} // end while
slidingMenu2.RollOverBoxes = function (boxNumber)
{
var cBox = eval("box" + boxNumber);
cBox.title_main.gotoAndPlay("s1");
};
slidingMenu2.RollOutBoxes = function (boxNumber)
{
var cBox = eval("box" + boxNumber);
cBox.title_main.gotoAndPlay("s2");
};
slidingMenu2.moveBoxes = function (boxNumber)
{
k = 1;
var i = 1;
while (i < box_num)
{
var cBox = eval("box" + i);
if (i == boxNumber)
{
new mx.transitions.Tween(cBox, "_width", mx.transitions.easing.Strong.easeOut, cBox._width, big_width, time_for_animation, false);
new mx.transitions.Tween(cBox, "_height", mx.transitions.easing.Strong.easeOut, cBox._height, big_width, time_for_animation, false);
new mx.transitions.Tween(cBox, "_x", mx.transitions.easing.Strong.easeOut, cBox._x, 0, time_for_animation, false);
}
else
{
new mx.transitions.Tween(cBox, "_width", mx.transitions.easing.Strong.easeOut, cBox._width, small_width, time_for_animation, false);
new mx.transitions.Tween(cBox, "_height", mx.transitions.easing.Strong.easeOut, cBox._height, small_height, time_for_animation, false);
new mx.transitions.Tween(cBox, "_x", mx.transitions.easing.Strong.easeOut, cBox._x, (k - 1) * (small_width + 1) + (big_width + 1), time_for_animation, false);
++k;
} // end else if
++i;
} // end while
};
slidingMenu2.resetBoxes = function ()
{
var i = 1;
while (i < box_num)
{
var cBox = eval("box" + i);
new mx.transitions.Tween(cBox, "_width", mx.transitions.easing.Strong.easeOut, cBox._width, medium_width, time_for_animation, false);
new mx.transitions.Tween(cBox, "_height", mx.transitions.easing.Strong.easeOut, cBox._height, medium_height, time_for_animation, false);
new mx.transitions.Tween(cBox, "_x", mx.transitions.easing.Strong.easeOut, cBox._x, -medium_width + i * (medium_width + 1), time_for_animation, false);
++i;
} // end while
};
slidingMenu2.link_over_Boxes = function ()
{
var i = 1;
while (i < box_num)
{
var cBox = eval("box" + i);
new mx.transitions.Tween(cBox, "_x", mx.transitions.easing.Elastic.easeOut, cBox._x, -medium_width + i * (medium_width - 20), 50, false);
++i;
} // end while
};
slidingMenu2.link_out_Boxes = function ()
{
var i = 1;
while (i < box_num)
{
var cBox = eval("box" + i);
new mx.transitions.Tween(cBox, "_width", mx.transitions.easing.Strong.easeOut, cBox._width, medium_width, 1, false);
new mx.transitions.Tween(cBox, "_x", mx.transitions.easing.Elastic.easeOut, cBox._x, -medium_width + i * (medium_width + 1), 50, false);
++i;
} // end while
};
slidingMenu2.resetBoxes();

Última edición por barbafran17; 04/02/2010 a las 16:44