Aqui, en esta parte del código es donde iria el codigo del boton, simpelmente no se como enlazar el boton para que tome como el actual "tn" + 1.... no se si me hago entender.....
en todo caso si alguien me puede ayudar le agradeceria muchisimo.
Código ActionScript :
x_middle = Stage.width/2;
y_middle = Stage.height/2;
tn_group.tn._visible = false;
tn_group.setMask( tn_area );
tn_alpha_default = 100;
tn_spacing = 4;
p = 0;
for( var i = 0; i < photo_thumbnail.length; i++ )
{
tn_group.tn.duplicateMovieClip("tn"+i, i);
tn_group["tn"+i].tn_pic.loadMovie( filepath + photo_thumbnail[i] );
tn_group["tn"+i].tn_pic2.loadMovie( filepath + photo_thumbnail[i] );
tn_group["tn"+i]._x = i * (tn_group.tn._width + tn_spacing);
tn_group["tn"+i]._y = tn._y;
tn_group["tn"+i].tn_pic._alpha = tn_alpha_default;
tn_group["tn"+i].tn_no = i;
tn_group["tn"+i].tn_button.onRollOver = function()
{
this._parent.tn_pic._alpha = 80;
}
tn_group["tn"+i].tn_button.onRollOut = function()
{
this._parent.tn_pic._alpha = tn_alpha_default;
}
tn_group["tn"+i].tn_button.onRelease = function()
{
_root.p = this._parent.tn_no;
_root.play();
}
}
onEnterFrame = function()
{
if( _ymouse > tn_group._y - 30 and _ymouse < tn_group._y + tn_group._height )
{
x_speed = -(_xmouse - x_middle ) / 30;
if( _xmouse > x_middle )
{
if( tn_group._x + tn_group.tn._width > tn_area._width - tn_group._width + tn_area._x )
tn_group._x+=x_speed;
}
else
{
if( tn_group._x - tn_group.tn._width < tn_area._x )
tn_group._x+=x_speed;
}
}
if( _ymouse < y_middle )
desc_speed = pic_desc._y / 8;
else
desc_speed = ( pic_desc._height + pic_desc._y ) / 8;
pic_desc._y -= desc_speed;
}
