kit kat
02-01-2009, 01:26 PM
Newbie question...
For some reason, I can't manage to move a MC when I specify it's array ID...
maze.onEnterFrame = function() {
if (Key.isDown(Key.LEFT) && (player._x <= marginA)){
this._x += walk_speed;
elev[0]._x += walk_speed;
setProperty(elev[1],_visible,0);
}
}
It works fine if I specify the instance (elevA._x += walk_speed;), and I can change things like the visibility calling the array position... I just can't make it move...
What's going on? :confused:
Thanks in advance!
For some reason, I can't manage to move a MC when I specify it's array ID...
maze.onEnterFrame = function() {
if (Key.isDown(Key.LEFT) && (player._x <= marginA)){
this._x += walk_speed;
elev[0]._x += walk_speed;
setProperty(elev[1],_visible,0);
}
}
It works fine if I specify the instance (elevA._x += walk_speed;), and I can change things like the visibility calling the array position... I just can't make it move...
What's going on? :confused:
Thanks in advance!