someone please offer me a little help here? no one seemed to want to help in the two other AS forums…
i’ve inherited a flash clip i’m editing for a client where a button is duplicated when the file opens, creating two separate buttons like this:
function create_menu():Void
{
position_x = i % 4 * 120 - 180;
position_y = Math.floor(i / 4) * 120 - 60;
var fm = menu_item_group.menu_item.duplicateMovieClip("menu_item" + i, i);
fm.stop();
fm.bg.gotoAndStop(i + 1);
fm.over = true;
fm.item_link = menu_link*;
fm.item_label = menu_label*;
fm.item_desc = menu_desc*;
fm.item_no = i;
fm.flashmo_button._visible = false;
fm.over = true;
fm.flashmo_button.onRollOver = function()
{
this._parent.over = false;
};
fm.flashmo_button.onRollOut = fm.flashmo_button.onDragOut = function ()
{
this._parent.over = true;
};
fm.flashmo_button.onRelease = function()
{
_root.page = this._parent.item_no + 1;
_root.play();
// loadMovieNum("PFSbyStampFinancial.swf",1);
};
fm.onEnterFrame = function()
{
if (this.over == true)
{
this.prevFrame();
}
else
{
this.nextFrame();
}
};
new Tween(fm, "_alpha", Strong.easeOut, 0, 100, tween_duration, true);
new Tween(fm, "_rotation", Strong.easeOut, 180, 0, tween_duration, true);
new Tween(fm, "_x", Strong.easeOut, position_x + 50, position_x, tween_duration, true);
fm_tween = new Tween(fm, "_y", Strong.easeOut, position_y + 100, position_y, tween_duration, true);
fm_tween.onMotionFinished = function()
{
fm.flashmo_button._visible = true;
}
if (i == total - 1)
{
fm_tween.onMotionFinished = function()
{
fm.flashmo_button._visible = true;
flashmo_logo._visible = true;
new Tween(flashmo_logo, "_alpha", Strong.easeOut, 0, 100, tween_duration, true);
}
clearInterval(interval_id);
}
i++;
}
i cannot figure out how to add any kind of action on(release) to the different buttons - of course anything i do to it affects them both.
can someone please help?
Thanks so much
GN