Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Strange app unloading behaviour

Strange app unloading behaviour

2004-02-28       - By Nick Kuh

 Back
Reply:     1     2     3  

I have a lobby application which unloads itself intermittently when there
are clients still connected. In the app inspector the trace message just
says:

'Unloaded application instance MyLobbyApp/_definst_'

With no further explanation or error message.

I have a feeling that this has something to do with server side shared
objects and net connections between my game instances and the lobby
application as it always seem to happen just after this method in the lobby
has executed:

Game.prototype.closeConnection = function () {
   if (application["lastGameDefined"+this.trackName] == this) {
       application.games_so.setProperty(this.trackName,"inactive");
   }
   trace("close this!");
   this.so.close();
   trace("disconnecting: "+this.trackName+this.gameID);
   trace("disconnecting:
"+application.objGames[this.trackName+this.gameID]);
   
application.disconnect(application.objGames[this.trackName+this.gameID]);
   this.bStarted = true;
}

The disconnect line forces the net connection from that game instance to
close as the lobby is now finished exchanging data with that game instance.
This method is called when a send message is received by the shared object
set up between this instance of the Game class and the related application
instance of the game app.

Any ideas?



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Supported by Fig Leaf Software
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Lower Prices for Certified Training! Check out new lower prices for
Certified Macromedia Training from Fig Leaf Software. Expand your
skill set with courses in ColdFusion, Flash, Rich Internet
Applications and .NET in the new year.  Fig Leaf Software provides
the highest caliber instruction at our training centers in Washington  
D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at
your location.

Get the details at http://training.figleaf.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: flashcomm-unsubscribe@(protected)
For additional commands, e-mail: flashcomm-help@(protected)