Question
Dynamically create AVPresence
Hey gang,
I am trying to dynamically create AVPresence instances as people log into the server on each client. Basically trying to re-implement the VideoConference component.
Unfortunately when I try and create 2 AVPresence it seems they override each other even if I use different X/Y positions and use seperate Instance names and setUsername().
If someone could spot out my error that would be great.
This is what I am doing:
var instanceName = "presence_" + username;
_root.attachMovie("FCAVPresenceSymbol", instanceName, 1, {_x:150, _y:150});
_root[instanceName].setUsername(username);
_root[instanceName].connect(connection);
Any help please?
I am trying to dynamically create AVPresence instances as people log into the server on each client. Basically trying to re-implement the VideoConference component.
Unfortunately when I try and create 2 AVPresence it seems they override each other even if I use different X/Y positions and use seperate Instance names and setUsername().
If someone could spot out my error that would be great.
This is what I am doing:
var instanceName = "presence_" + username;
_root.attachMovie("FCAVPresenceSymbol", instanceName, 1, {_x:150, _y:150});
_root[instanceName].setUsername(username);
_root[instanceName].connect(connection);
Any help please?
