I read a bunch of tutorials and I cant get multiple mc’s to spawn. I have this button so that when you click it, it spawns an mc that you can drag around. So I spawn one drag it around, then try to spawn another but that deletes the old one and makes a new one. Here is my code:
on(release){
var i;
i++;
var newname = "bullet"+i;
_root.attachMovie("bullet", newname, i*100);
_root[newname]._y = _root.hero._y+13;
_root[newname]._x = _root.hero._x+55;
_root[newname].onEnterFrame = function() {
if (this._x>555) {
this.removeMovieClip();
}
}
}
Thanks for any help.