Edit - I solved the problem seconds after this post… I didn’t extend the movieclip properties in the script object… Grrrrrrr.
Hey all,
This problem is making me go hairless
Basically I have a script attached to a movieclip, so when the mc loads it inherits all the script functions. I load the mc with an attachMovie, such as:
var temp_mis:MovieClip = _root.attachMovie(“Bullet”, “Bullet”+_global.misNum, _root.getNextHighestDepth(), {_x:newx, _y:newy});
temp_mis.setAll(“Bullet”, 1, 5, 0, 15, 500, target);
Inside the bullet mc I have seperate scripting to see when/if the bullet hits the target. And when it does, it needs to remove itself. However when I trace itself after the this.removeMovieClip() command, it still says its name as if it never was deleted. And ofcourse, the ‘bullet’ keeps on moving on the screen.
When I try to trace the bullets depth, it gives me undefined. I was thinking of replacing the bullet’s depth with a blankMC of the same depth, effectively removing it - but I cannot find its depth… which stops that solution.
Does anyone know what I am doing wrong, or have an idea on what I can do to solve this problem?
Thank you,
Cedwyn