Foros del Web » Creando para Internet » Flash y Actionscript »

auxilio con action

Estas en el tema de auxilio con action en el foro de Flash y Actionscript en Foros del Web. necesito unir el title.tex con la imagen en el action. lo he logrado pero el title.tex se ubica encima de la foto pero necesito asociarlo ...
  #1 (permalink)  
Antiguo 23/12/2008, 06:26
Avatar de Musika  
Fecha de Ingreso: junio-2002
Mensajes: 72
Antigüedad: 21 años, 10 meses
Puntos: 0
auxilio con action

necesito unir el title.tex con la imagen en el action.
lo he logrado pero el title.tex se ubica encima de la foto pero necesito asociarlo a la imagen
un titulo una imagen


escribo el codigo:

Cita:
tn_group.tn._visible = false;
tn_group_area._visible = true;
tn_group.setMask( tn_group_area );
import mx.transitions.Tween;
import mx.transitions.easing.*;
var fm_show_no:Number = 3;
var total:Number = filename_list.length;
var distance_x:Number = tn_group.tn._width + 5;
var i:Number = 0;
var start_from:Number = 0;
var current:Number = 0;
fm_title.text = "";
fm_description.text = "";

for( ; i < total; i++ )
{
tn_group.tn.duplicateMovieClip("tn"+i, i);
tn_group["tn"+i].preloader._width = 0;
tn_group["tn"+i].tn_button._visible = false;
tn_group["tn"+i].txt = (i+1);
tn_group["tn"+i].tn_no = i;
tn_group["tn"+i]._x = i * distance_x;

tn_group["tn"+i].tn_button.onRollOver = function()
{
this._parent._parent._parent.fm_title.text = title_list[this._parent.tn_no];
this._parent._parent._parent.fm_description.text = description_list[this._parent.tn_no];
}
tn_group["tn"+i].tn_button.onRollOut = function()
{
this._parent._parent._parent.fm_title.text = "";
this._parent._parent._parent.fm_description.text = "";
}
tn_group["tn"+i].tn_button.onRelease = function()
{
getURL( url_list[this._parent.tn_no] );
}
}
function move_it()
{
if( total - start_from < fm_show_no )
start_from = total - fm_show_no;
if( start_from < fm_show_no )
start_from = 0;
position_x = start_from * distance_x - tn_group_area._x;
new Tween(tn_group, "_x", Bounce.easeOut, tn_group._x, -position_x, 1.2, true);
}
fm_previous.onRelease = function()
{
start_from -= fm_show_no;
move_it();
}
fm_next.onRelease = function()
{
start_from += fm_show_no;
move_it();
}
__________________
La mejor forma de enseñar es aprendiendo
------------------------------------------------
Un pokitin de Musika en tu Vida
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 22:42.