Everything is working fine, but now I´m trying to display a screen when the handleError function is triggered.
But... none of the things that I add inside this function works.
The function only displays what I add on trace command.
The handleError is triggered when I receive an error at Lobby class (I´m forcing a connection error):
Ex:
- Code: Select all
private function handleError(error:PlayerIOError):void{
var tela2:ChatMenuScr = new ChatMenuScr();
addChild(tela2);
trace("Got", error)
//gotoAndStop(3);
}
The tela2 is not added, but the error is showed on the trace command.