public __PasswordBox() { // X:\jsc.svn\examples\actionscript\air\AIRAvalonPasswordField\AIRAvalonPasswordField\ApplicationCanvas.cs InternalTextFieldContainer = new Sprite(); InternalTextField = new TextField { autoSize = TextFieldAutoSize.LEFT, type = TextFieldType.INPUT, displayAsPassword = true, background = true, backgroundColor = 0xffffffff, alwaysShowSelection = true, border = true, borderColor = 0x808080 // http://code.hellokeita.in/public/trunk/as3/br/hellokeita/utils/TextFieldColor.as }; InternalTextField.y = InternalOffsetY; InternalTextFieldContainer = new Sprite(); InternalTextFieldContainer.addChild(InternalTextField); // http://www.typetester.org/ //InternalTextField.defaultTextFormat.font = "Verdana"; //LocalInternalSetFonFamily(new FontFamily("Verdana")); }
public __TextBlock() { InternalTextField = new TextField { autoSize = TextFieldAutoSize.LEFT, type = TextFieldType.DYNAMIC, selectable = false, //background = true, //backgroundColor = 0xffffffff, //alwaysShowSelection = true, //border = true, //borderColor = 0x808080 // http://code.hellokeita.in/public/trunk/as3/br/hellokeita/utils/TextFieldColor.as }; //InternalTextField.y = InternalOffsetY; InternalTextFieldContainer = new Sprite(); InternalTextFieldContainer.addChild(InternalTextField); // http://www.typetester.org/ //InternalTextField.defaultTextFormat.font = "Verdana"; LocalInternalSetFonFamily(new FontFamily("Verdana")); }