Whatever is added to the stage last by using "addChild" method, will be at the top.
What is masking what? No where in your code do you have anything setup to be a mask. -----Original Message----- From: "Paul Freedman" <[email protected]> Date: Sat, 12 Jun 2010 18:55:14 To: Flash Coders List<[email protected]> Subject: [Flashcoders] masking issues I don't know if I can attach documents here, but I'm trying it, because my question involves a fla with a masked textfield on it and a MovieClip in its library. If attachments don't work, look here: http://www.freedmania.com/test/MaskIssue/ The scripts are listed below. There's two ActionScripts here, one launching the other, to simulate my eventual problem. The symbol in the library, myBox_mc, is linked to class MyBoxx, which places it on the stage. Traces show that, by the time it's there, it's parent is the BaseTimeLine. The mask, drawn in the authoring application, is positioned over a textfield and is precisely the textfield's dimensions. The rest of the stage is unmasked. Click on the blue-green thingy (myBox_mc) and drag it around. You'll see that it's actually under the mask. I need it on top. What do I need to do? Any help will be deeply appreciated. Thanks, - Paul These are the scripts. If you reply, please delete them. AS --- MYOBJECK package { import flash.display.MovieClip; import MyBoxx; public class MyObjeck extends MovieClip { public var myBoxx:myBox_mc public function MyObjeck(m:MovieClip) { myBoxx = new myBox_mc(); m.addChild(myBoxx); myBoxx.x=150; myBoxx.y=150; trace("17 myBoxx.parent " +myBoxx.parent); for(var i=0;i<20;i++){ m.text_mc.textTxt.text += "Here's the text you ordered, Sir."; } } } } AS --- MYBOXX package { import flash.display.MovieClip; import flash.events.*; public class MyBoxx extends MovieClip { public function MyBoxx() { trace("09myBoxx"); init(); } private function dwnn(Event:MouseEvent){ trace("DOWN this "+this+" parent "+this.parent); this.startDrag(); } private function upp(Event:MouseEvent){ trace("UP"); this.stopDrag(); } private function over(Event:MouseEvent){ trace("over"); } private function out(Event:MouseEvent){ trace("OUT"); } public function init(){ this.addEventListener(MouseEvent.MOUSE_DOWN,dwnn); this.addEventListener(MouseEvent.MOUSE_UP,upp); this.addEventListener(MouseEvent.ROLL_OVER,over); this.addEventListener(MouseEvent.ROLL_OUT,out); } } } _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

