onRelease の中の onEnterFrame


cover_01_btn.onRelease = function ():Void {
_root.exp_txt._x = -9999;
_root.exp_txt._y = -9999;

onEnterFrame = function ():Void {
// this._x = 37;
this._y = (0 - this._y) * 0.4;
trace (this._y);
if (this._y == -1349) {
this._width = 2000;
this._height = 162;
this._alpha = 60;
}
};
};
onEnterFrame の前に this. とか cover_01_btn. つけると動かない。



// MovieClip this;
box_mc.onRelease = function ():Void {
var a:Number = 0;
this.onEnterFrame = function ():Void {
trace ("onEF");
};
};
this. でも、インスタンス名. でも動いた。

そっかButtonとMovieClipとじゃ違うのか。