My problem involves the visibility of movieclips and text
that were created programmatically at run-time, with regard to a
video component that was created in the Flash IDE (since video
components cannot be created at runtime?).
The movieclips are always rendered BEHIND the video
component, which is annoying since they are supposed to be an
overlay over the video stream.
They are created at startup with statements like:
But the clip is always displayed behind _root.video (which
was defined at authoring time).
How do I create a movieclip (or text) at runtime and force it
to appear in front of a video object that is already on the stage
(at design time)?
Elements that are placed on the stage at author time are
organized by layer, and this can create problems when you are
trying to instantiate new objects and organize them by depth. Depth
and layers are different things.
The easiest practical solution to your problem is to simply
create an empty MovieClip object on the stage at author time, put
it in a layer above your video component, and then give it an
instance name you can reference from your code. You can simply
attach other MovieClip objects to this, or load new content into