當我的其中一個影片剪輯的定位與另一個定位相同時,我需要發生一些事情。這是我嘗試使用的代碼,但不起作用。說:「賦值運算符的左側必須是變量或屬性。」ActionScript 2.0初學者,定位
instructions_txt.text = "Pomozite Macku da dodje do cigara!";
var speed:Number = 3;
var pozx;
var pozy;
balloon_mc.onEnterFrame = function() {
if (Key.isDown(Key.RIGHT)) {
this._x = this._x + speed;
} else if (Key.isDown(Key.LEFT)) {
this._x = this._x - speed;
} else if (Key.isDown(Key.DOWN)) {
this._y = this._y + speed;
} else if (Key.isDown(Key.UP)) {
this._y = this._y - speed;
}
if(pozx = this._x && pozy = this._y)
{
}
};
cigare_mc.onEnterFrame = function() {
this._x = pozx;
this._y = pozy;
}