сценарий!

Код:
_root.createEmptyMovieClip("send_mc", _root.getNextHighestDepth());
send_mc.createTextField("userName_txt", send_mc.getNextHighestDepth(), 100,100, 1,1);
send_mc.userName_txt.autoSize = true;
send_mc.userName_txt.text = "Username";
//
send_mc.createTextField("userNameInput_txt", send_mc.getNextHighestDepth(), 100, 120, 300,20);
send_mc.userNameInput_txt.type = "input";
send_mc.userNameInput_txt.border = true;
send_mc.userNameInput_txt.text = "Your name";
//
send_mc.createTextField("userText_txt", send_mc.getNextHighestDepth(), 100, 150, 1,1);
send_mc.userText_txt.autoSize = true;
send_mc.userText_txt.text = "Text";
//
send_mc.createTextField("userTextInput_txt", send_mc.getNextHighestDepth(), 100, 170, 300,100);
send_mc.userTextInput_txt.type = "input";
send_mc.userTextInput_txt.border = true;
send_mc.userTextInput_txt.text = "Your text here";
//
send_mc.createEmptyMovieClip("button_mc", send_mc.getNextHighestDepth());
send_mc.button_mc._x = 100;
send_mc.button_mc._y = 300;
send_mc.button_mc.beginFill("0xFF00FF", 100);
send_mc.button_mc.lineTo(100,0);
send_mc.button_mc.lineTo(100,30);
send_mc.button_mc.lineTo(0, 30);
send_mc.button_mc.endFill();
//
send_mc.createTextField("sendText_txt", send_mc.getNextHighestDepth(), 110, 305, 1,1);
send_mc.sendText_txt.autoSize = true;
send_mc.sendText_txt.text = "Send>>";
//
send_mc.button_mc.onRelease = function () {
_root.sendLetter(send_mc.userNameInput_txt.text, send_mc.userTextInput_txt.text);
trace("Message: " +send_mc.userNameInput_txt.text +" \nText: "+ send_mc.userTextInput_txt.text)
}