Strange MovieClip behavior

Hey,

I’m having an issue with MovieClips that I haven’t been able to figure out for the life of me, and I am hoping that someone can shed some light on this behavior.

First off, I have a class. This class is “Box”. The Box class has two MovieClip fields called “colorIndicator” and “colorIndicator2”. It also has a field called boxMC that holds the actual MovieClip of the box. colorIndicators are added to the box using addChild(). The colorIndicator’s are set up to be a MovieClip in the library. This MovieClip has 3 frames. One is red, one is green, and one is orange. A method in the Box class uses gotoAndStop() to tell each indicator what light color to show by using frame labels (“red”, “green”, "orange).

Anyway, here’s the part with the strange behavior. When the frame of any of the indicators is changed when the the boxMC is a child of the stage (added using addChild), OR on first run (it is not a child of stage in this case) the gotoAndStops() for the light indicators work properly. When the frame of the colorindicators is changed when the boxMC is NOT on the stage, after first run, because it was removed from view using removeChild(), the colorIndicators don’t work right and I can’t figure out the behavior. No matter what frame label is called for them, they seem to only go to red, although a trace of the .currentLabel property says otherwise. It’s almost like it doesn’t like changing the MovieClip in memory. I really can’t figure out how a simple gotoAndStop can be throwing it off so much.

Anyway, by this description, does anyone have any idea of something I might be doing wrong for the MovieClips to be behaving like this?

Thanks in advance and any help is greatly appreciated.

Regards,
~David