quello è ok per as3 che usa l'event handling, ma in as1/2 l'enterframe è un evento che viene assegnato direttamente al clip che lo richiama
prova un po' così
Codice PHP:
strMC.onPress = function() {
this._parent.linea2.onEnterFrame = function() {
trace(this._parent._name);
trace("eccolo");
this.clear();
this.lineStyle(1,0x000000,60);
this.moveTo(this._parent.mcP0._x,this._parent.mcP0._y);
this.curveTo(this._parent.mcCentro3._x,this._parent.mcCentro3._y,this._parent.mcP1._x,this._parent.mcP1._y);
};
trace(this._name);
this.startDrag();
};
strMC.onRelease = function() {
this.stopDrag();
this._parent.linea2.onEnterFrame = null;
};