Macromedia Flash Server - if RSO for me exists....

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > April 2005 > if RSO for me exists....





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author if RSO for me exists....
Simon Lord

2005-04-07, 5:57 pm

I think I found the to my SO problem. I need a little help putting in
a check to see if a slot exists for *your* data, at least I think
that's what I think need. Running setProperty everytime you enter a
room seems to act like a reset switch, but it works fine if I comment
the setProperty lines out after you are added to the RSO.

application.onAppStart = function() {
this.users_log = SharedObject.get("users_log", true);
};
application.onConnect = function(client, name) {
client.name = name;

// I THINK I NEED TO CHECK IF A SLOT WITH MY DATA EXISTS ALREADY,
SIMPLY
// SETTING THE PROPERTY AUTOMATICALLY WIPES ANY DATA IT MAY ALREADY
HAVE ON ME
// THE IMMEDIATE ISSUE IS I DON'T HAVE A CLUE ON HOW TO PULL DATA OUT
OF this.users_log
// ON THE SS. I TRIED trace(this.users_log.getProperty("name"); BUT
THAT RETURNS [object]

if (a slot with my info !exist in this.users_log) {
this.users_log.lock()
this.my_log={username:name};
this.users_log.setProperty(name, this.my_log);
this.users_log.unlock();
}
//
application.acceptConnection(client);
client.getUserAmount = function(){
trace("getUserAmount");
return (application.clients);
};
gFrameworkFC.getClientGlobals(client).username = name;
};

Sincerely,
Simon


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com