
Код AS3:
public function friendsLoaded():void
{
for (i = 0; i < 6; i++)
{
//объект бокс, его свойства и т.д. }
box.addEventListener(MouseEvent.ROLL_OVER, evnt);
box.addEventListener(MouseEvent.ROLL_OUT, evnt1);
}
}
function evnt(e:MouseEvent):void {
box.alpha = 0.5;
}
function evnt1(e:MouseEvent):void {
box.alpha = 1;
}