You cannot dynamically draw graphics to specific frames of a MovieClip. There is no such thing. MovieClips originally were an authoring-time affair intended for you to be able to create animations, hence their use of frames. To this day, the only way to place things on specific frames of a MovieClip is in the Flash authoring tool. You can't do it with code.
However (as you are experiencing), you can dynamically add graphics to a MovieClip using addChild(), because MovieClip is a DisplayObjectContainer. You just can't place the graphics on any specific frame. There just is no way to do that. However, rather than using frames, you could just use the visible property to show and hide your bitmaps. Write a function that shows one bitmap and hides all the others. It will have exactly the same effect visually as gotoAndStop().
|