Forum ActionScript 3.0 handleError

Problems and discussions relating to ActionScript 3.0 here.

handleError

Postby Turrican » February 14th, 2012, 1:23 pm

I´m using the examples given to make my game.
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.
Turrican
 
Posts: 23
Joined: August 11th, 2011, 11:50 pm

Return to ActionScript 3.0



cron