Народ, проблема вот в чем. Создаю флешку, в ней текстовое поле для ввода(TextField), делаю ему тип "input". И вашаю на него фокус при первом открытии флешки. При запуске swf файла все работает как и задумывал, но если открыть флешку через html - страницу, то с поля слетает textFormat(я имею ввиду "курсор" маленького размера, введя что-либо он становится прежних размеров) и никакого фокуса нет.

Код AS3:
public class Main extends Sprite
{
private var textFormat_temp:TextFormat;
public function Main():void
{
if (stage)
init();
else
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event = null):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
// entry point
textFormat_temp = new TextFormat();
textFormat_temp.size = 34;
textFormat_temp.font = "Arial";
textFormat_temp.align = "center";
var testTextField:TextField = new TextField();
stage.addChild(testTextField);
testTextField.type = "input";
testTextField.border = true;
testTextField.alwaysShowSelection = true;
testTextField.defaultTextFormat = textFormat_temp;
testTextField.maxChars = 3;
testTextField.x = stage.width / 2;
testTextField.y = stage.height / 2;
stage.focus = testTextField;
testTextField.setSelection(0, 0);
}
}
В архиве приложил проект из FlashDevelop. Я пытался через JS ставить фокус на флешку, селект это все равно не ставит.
Либо это какое-то ограничение на поля для ввода со стороны FlashPlayer или я делаю что-то не так?