Ciao a tutti, sto passando da l'utilizzo di As 2 ad As 3.

Stavo creando il menu di un progetto. Questi bottoni sono dei movieclip con dentro 2 frames per ogni stato con etichetta "ON" e "OFF". Inoltre ho creato un ARRAY dove sono presenti tutti i link a cui devono linkare i pulsanti.

in As 2 usavo questo ciclo:

function activeSecLink()
{
for (var i:Number = 0; i<3; i++)
{
link = _root['secLink'+i];
link.n = _root.links02Htm[i];

link.onRollOver = function()
{
this.gotoAndPlay("on");
efx_sound("soft_beep1");
};
link.onRollOut = function()
{
this.gotoAndPlay("off");
efx_sound("soft_beep1");
};
link.onRelease = function()
{
getURL(this.n, "_blank");
efx_sound("metallic");
};
}
}

Ho provato ad adattarlo ad as 3 ma ho avuto serie difficoltà... potreste illuminarmi su come poter adattare il medesimo ciclio pero' in As 3?

Thanks a lot...

MICK