             inputField.addEventListener(KeyboardEvent.KEY_DOWN, inputField_keyDownHandler);
             inputField.addEventListener(Event.CHANGE, inputField_changeHandler);
 
-            addChild(inputField);
+            addChild(DisplayObject(inputField));
         }
 
         if (!nextButton)


        if (!inputField)
        {
            inputField = new TextInput();

            inputField.styleName = new StyleProxy(this, inputFieldStyleFilters);
            inputField.focusEnabled = false;

    private function buttonClickHandler(event:MouseEvent):void
    {
        inputField.setFocus();
        inputField.selectRange(0, 0);
    }

    /**
