Why doesn’t this work:
evilguy = attachMovie("evil", "evil"+_root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:start_enemy_x, _y:start_enemy_y});
evilguy.onLoad = function() {
enemies.push(this._name);
trace(enemies);
};
It doesn’t trace the array, so I don’t think the onLoad event has worked.
Thanks