View Full Version : storing and retrieving user's personal details in a chat application....

10-13-2004, 09:53 PM
Hello all,

I have a general question regarding storing and retrieving a user's personal details inside a chat application.

IE: There are 4 users in a chat room. Each of these users will have set of databased details. (age, sex, location, sexual preference, and a personal quote) When you click on a user on the List Box of the application, the users personal details should be available to be viewed.

I am curious what the community thinks (1)would be the best way to retrieve this info from the database, (2)how to pass this info to the flash com server's shared object.

My initial thought was to retrieve this info. from the database on a php page through a set of flash variables, which would be available variables in the session variables. Which would then be stored inside of flash as a set of variables (userDataAge, userDataSex, etc.). But, this is where i am stumped. How would you send these variables to the flash com server's shared object?

I think I have explained this well, if I am unclear, let me know.

Thanks ahead of time,

10-14-2004, 12:03 PM
it looks at my prototype:
this db_chat modified with video, user profile and other

id/pass : elisa/xxxxxx

10-14-2004, 10:16 PM
thats exactly what im talking about....can u give me a few hints on how u passed this distibuted user info to the application?
:) :confused: :) :confused:

I like it...I myself am trying to stay away from using the flacom components set...but your app. looks great....

Thank you,

10-15-2004, 10:33 PM
you have to create:
- file php, or xml for to extract given by database
- to add new layer, to visualize data
- to create function for peoplelist and files.asc to call function visualizes profile

10-18-2004, 05:26 AM
OK....I see what u have done on your site.

But what if i wanted to have data on the server side inside a shared object?

Ok I guess what I dont understand is how the slots of a shared object work...

So if for instance, the ssas:

application.onConnect = function(newClient, name , gender, seeking, age, city, state, quote, password)
// Make this new client's name the user's name, gender, seeking, etc.
newClient.name = name;
newClient.gender = gender;
newClient.seeking = seeking;
newClient.age = age;
newClient.city = city;
newClient.state = state;
newClient.quote = quote;
password = password;

//trace values

// Create a unique ID for this user while incrementing the
// application.nextID.
newClient.id = "u" + application.nextId++;

// Update the 'users_so' shared object with the user's name
application.users_so.setProperty(newClient.name, name);
application.users_so.setProperty(newClient.gender, gender);
application.users_so.setProperty(newClient.seeking , seeking);
application.users_so.setProperty(newClient.age, age);
application.users_so.setProperty(newClient.city, city);
application.users_so.setProperty(newClient.state, state);
application.users_so.setProperty(newClient.quote, quote);

will the shared object for each client have all this info available?

Am I missing something???? I will try to get it to work....

Hope to hear from someone soon,

10-18-2004, 12:09 PM

03-15-2005, 04:37 PM
it looks at my prototype:
this db_chat modified with video, user profile and other

id/pass : elisa/xxxxxx

Damn doesn't work... Maybe as I am 5 months late :)

If you could post some of your source code that would be amazing.