I need something to happen when positioning of one of my movie clips becomes the same as positioning of the other one. Here is the code i tried to use but doesn't work. Says that "Left side of assignment operator must be variable or property.".
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;
}