Storing and Using New Connection within a Shared Object
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Macromedia Flash Server > Storing and Using New Connection within a Shared Object




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Storing and Using New Connection within a Shared Object  
CraigFriebolin-YDxpq3io04c@public.gmane.org


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-12-06 12:11 AM


I have an application where I'd like to store new client connects in a
shared object and be able to call them later. I've been trying to figure  th
is out
for 2 days now!!!

Storing the info in shared object wasn't a problem but USING the  informatio
n
is another story. The short version of the code is this...


application.onConnect = function(newClient, username) {
application.users_so.setProperty(username,  newClient);
}

// USERNAME = Craig
newClient.SrvrMsg = function(USERNAME) {
application.users_so[USERNAME].call("Blah", null,  stuff);
}


But no matter how I write:
application.users_so[USERNAME].call("Blah", null, stuff);
I almost always end up with an error: "ReferenceError: Craig is not  defined
"

I know this can be done with a 'regular' object like this;


application.onConnect = function(newClient, username)  {
application.users[username] =  newClient;
}

// USERNAME = Craig
newClient.SrvrMsg = function(USERNAME) {
application.users[USERNAME].call("Blah", null,  stuff);
}



but for reasons to complicated to explain I need to make it work with a
shared object. If anyone can help me with this I would REALLY appreciate it!

Thanks in advance for any and all help with this!!

Craig



 ________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:36 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register