My subject line pretty much says it all: How on earth do I use the onMouseDown event to remove objects generated by an array?
I’m still programming (if my bumbling can be called that :P) the game I discussed in the ‘Random Object Generation’ thread and I’m using the basic framework of the array function that h88 gave me. Everything is working fabulously, but getting the things to disappear onMouseDown is a problem - it doesn’t work.
Oh, and if I reference Target.prototype.onMouseDown and tell it it to this.unloadMovie, it unloads every single target on the screen instead of the one your mouse is actually over, making for a fairly… lame… game. I’m pretty sure it’s because every single clip generated by the array is a Target prototype instance and so when the MouseDown occurrs, it unloads every Target movieClip. And I am using a hitTest in the Target.prototype.onMouseDown command, so that doesn’t solve anything…
Wow, that got lengthy - sorry for the novel! :beam:
Anyways, any help is, as always, very appreciated
- wobbly