I currently am creating a game where you shoot at targets that randomly appear. I have them set to be randomly generated via an attachMovieClip object, and all works well… EXCEPT that whenever it generates the clip from the Library, the instance is WAY above the rest of movie (layer-wise)!
This means that my custom-crosshairs cursor, for instance, is always behind the target and thus the user cannot mouseDown and shoot it.
Change of direction: swapDepths solves the problem! Thanks Sorcerer
However, there is another problem… the randomly generated movie clip has no properties associated with it. Now, I have defined these properties already in a test movie clip on the stage. How do I make sure the onMouseDown, etc. properties are transferred to each clip as it is created?
I am not clear on how to use initObject but I think this is where the solution lies. Can anyone give me a quick little tutorial on how initObject is used?