private function setStatus(str:String = null):void {
if (str == null || str == "") {
status_txt.text = "";
status_txt.visible = false;
} else {
status_txt.text = str;
status_txt.visible = true;
}
}
private function setRTFM(mode:String):void {
if (mode=="normal") {
rtfm_txt.text = "SPACE to view relations A S D F G H J K view/hide event types Q W E view/hide line types MOUSEDRAG/LEFT/RIGHT ARROWS to scroll P for fullscreen";
} else if (mode == "fullScreen") {
rtfm_txt.text = "SPACE to view relations MOUSEDRAG/LEFT/RIGHT ARROWS to scroll ESCAPE for normal screen";
}
}
private function loadEvents():void {
setStatus("loading events...");
var conn:NetConnection = new NetConnection;
conn.objectEncoding = ObjectEncoding.AMF3;
conn.connect(_amfurl);
var res:Responder = new Responder(onEventsLoaded, onFault);