I would like to place a video object above one movieClip instance ("mc"), but below another movieClip instance ("mc_top").
I instantiated the _root.flashVid object by dragging a "New Video..." from the Library to the stage, and giving it the instance name "flashVid".
I create mc, then paint a blue box, then I create mc_top, and paint a yellow box. The flashVid instance is on the Stage (_root) from the beginning. Now how do I get the flashVid above "mc" but below "mc_top"?
// Create movieclips and paint boxes.
var mc:MovieClip = _root.createEmptyMovieClip("test",
_root.getNextHighestDepth());
mc.beginFill(0x0000ff, 50);
mc.lineStyle(2, 0x0000ff, 100);
mc.moveTo(0,0);
mc.lineTo(400, 0);
mc.lineTo(400,400);
mc.lineTo(0,400);
mc.lineTo(0,0);
mc.endFill();
var mc_top:MovieClip = mc.createEmptyMovieClip("test_top",
mc.getNextHighestDepth());
mc_top._x = 200;
mc_top.beginFill(0xffff00, 50);
mc_top.lineStyle(2, 0xffff00, 100);
mc_top.moveTo(0,0);
mc_top.lineTo(400, 0);
mc_top.lineTo(400,400);
mc_top.lineTo(0,400);
mc_top.lineTo(0,0);
mc_top.endFill();
// Flash video code (using Video object on stage, no components)
var nc = new NetConnection();
nc.connect(null);
var ns = new NetStream(nc);
ns.play("http://dl.getdropbox.com/u/295386/Stormpulse/my.flv");
// Tell flashVid to play what's coming through the netstream.
_root.flashVid.attachVideo(ns);