package { import flash.display.Sprite; import flash.text.TextField; import flash.text.TextFormat; import flash.events.TextEvent; public class Main extends Sprite { private var input:TextField; private var text:TextField; private var regex:RegExp; private var selectedFormat:TextFormat; private var defaultFormat:TextFormat;
public function Main() {
defaultFormat = new TextFormat(); defaultFormat.bold = false; defaultFormat.color = 0x00000;
selectedFormat = new TextFormat(); selectedFormat.color = 0xFF0000; selectedFormat.bold = true;