non ho controllato completamente lo script, ma penso di avere almeno corretto gli errori, prova un po'

Codice PHP:
import mx.transitions.Tween;
import mx.transitions.easing.*;
for (
i=1i<7i++) {
    
this["button"+i+"_mc"].premuto false;

    
this["button"+i+"_mc"].onRollOver = function() {
        new 
Tween(this"_x"Elastic.easeOut20507false);
    };

    
this["button"+i+"_mc"].onRollOut = function() {
        for (
i=1i<7i++) {
            if (
this._parent["button"+i+"_mc"].premuto == false) {
                new 
Tween(this._parent["button"+i+"_mc"], "_x"Elastic.easeInOut50207false);
            }
        }
    };

    
this["button"+i+"_mc"].onRelease = function() {
        for (
i=1i<7i++) {
            if (
this._parent["button"+i+"_mc"].premuto == true) {
                new 
Tween(this._parent["button"+i+"_mc"], "_x"Elastic.easeInOut50207false);
                new 
Tween(this._parent["button"+i+"_mc"].trasp_mc"_alpha"Regular.easeOut5001true);
            }
        }
        
this.premuto true;
        
newx 50;
        new 
Tween(this._parent["button"+i+"_mc"].trasp_mc"_alpha"Regular.easeOut0501true);
    };