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();
}
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();
}