addChild is adding new child but getting rid of existing child (if it's the same object)
I have an array of capital letters A-Z.
I am adding the child to the stage with a discrete button representing the letter of the alphabet.
I can add different letters to the stage up to 4 letters (I have an 'if' condition limiting the number of children on the stage). However if I try to add 4 of the SAME letter, the first gets added, the second gets added and the first deleted, the third gets added and the second deleted (and the first has already been deleted) and so forth. So I can never have the same letters like if I want to spell out MMMM as an expression of sentiment.
How can this be? I think I have used a similar method before in a previous prototype where new children were loading onto the stage from an image file on disk. In this case all of the children are embedded MovieClips in the FLA file (the FLA is huge!... because I have about 10 types of lettering images for each letter of the alphabet). And I am calling those with Class constructors and pushing the Classes into an array, then calling that array in a for loop iterating from 0 to less than 27 with i being a uint.
Any help is greatly appreciated.
-markerline
