/ Published in: ActionScript 3
Expand |
Embed | Plain Text
var txt:TextField = new TextField(); var format:TextFormat = new TextFormat("Verdana", 14, 0xFFFFFF); txt.wordWrap = true; txt.width = width; txt.height = height; txt.multiline = true; txt.text= city; txt.autoSize = TextFieldAutoSize.CENTER; txt.antiAliasType = AntiAliasType.ADVANCED; txt.cacheAsBitmap = true; txt.setTextFormat(format); txt.width = 60; txt.height= 15; txt.x = 0; txt.y = 0;
You need to login to post a comment.
