I created an interface to format the text in "mytext" which works
I create a textbox

var mytext:TextField = new TextField ();
addChild (mytext);
mytext.type= TextFieldType.INPUT
mytext.text ="type here"
mytext.x=100;
mytext.y=50;
mytext.width=200;
mytext.wordWrap=true;
mytext.border=true;
mytext.background=true;
mytext.multiline=true;
now I want to drag it.

mytext.addEventListener(MouseEvent.MOUSE_DOWN,moveIt);
mytext.addEventListener(MouseEvent.MOUSE_UP,stopIt);
function moveIt (e:MouseEvent):void{

mytext.startDrag();
}
function stopIt (e:MouseEvent):void{

mytext.stopDrag();

}
It won't work because it's not a movieclip, a shape or sprite right?



I could forget about creating a textboxt this way and create textbox, place it on the stage, convert it to a movieclip and that would work but it limits me in terms of what I want to do later

(unless of course I just create new intances of the mc each time?)

-which is have a user create textboxes that they can place on the stage, edit, deselect and create more textboxes and then go back and forth editing them as needed.


I THINK I need to nest the textbox inside a sprite and move the sprite.