private void showFatalError(String message) { AsTextField textField = new AsTextField(); AsTextFormat textFormat = new AsTextFormat("Verdana", 12, 0xFFFFFF); textFormat.setAlign(AsTextFormatAlign.CENTER); textField.setDefaultTextFormat(textFormat); textField.setWordWrap(true); textField.setWidth(mStage.getStageWidth() * 0.75f); textField.setAutoSize(AsTextFieldAutoSize.CENTER); textField.setText(message); textField.setX((mStage.getStageWidth() - textField.getWidth()) / 2); textField.setY((mStage.getStageHeight() - textField.getHeight()) / 2); textField.setBackground(true); textField.setBackgroundColor(0x440000); getNativeOverlay().addChild(textField); }
public virtual void testNewApi() { bc.flash.text.AsTextField textField = new bc.flash.text.AsTextField(); }