private var htmlStr1:String = 'Header';
private var textStr1:String = "this is a test";
private function setNewText():void
{
determineTextType(changeText.selectedItem.value.toString());
}
private function determineTextType(str:String):void
{
var regexp:RegExp = /<.+\w.>/;
textArea.text = String(regexp.test(str));
}
[{label:'HTML1', value:htmlStr1},
{label:'Text1', value:textStr1}]}" change="setNewText()"/>