Creating textfields and movieclips in as

I’m only familiar with the AS2 methods of createTextField and createEmptyMovieClip.

I’m searching the help files with no real explanation on how to do this in AS3.

For textfields i think you do
var myText:textfield = new TextField();
myText.text = “hey”;

this.addChild(myText);

but, how do you specify instance name and dimensions etc…

for mc’s I have no clue. Help me. Thank you