PDA

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


J_Monty
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,
J_Monty

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

http://www.lptechnology.org/erik/
id/pass : elisa/xxxxxx

J_Monty
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,
~J_Monty

jucks
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

J_Monty
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
trace(newClient.name);
trace(newClient.gender);
trace(newClient.seeking);
trace(newClient.age);
trace(newClient.city);
trace(newClient.state);
trace(newClient.quote);
trace(password);

// 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,
~J

jucks
10-18-2004, 12:09 PM
http://echo.ryerson.ca/arraysSharedObjects/index.html

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

http://www.lptechnology.org/erik/
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.

Thanks