xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark">
private function writeToLog():void {
trace(myText.text);
}
click="writeToLog();" />