I have following object in the FMS
User = function(userName,userId)
{
this.userName = userName;
this.userId = userId;
}
I need to send the list of user to the client swf. Once I initialized the User object collection to an array, array element is undefined when I read it from the client.
However I can’t send the generic object too. Once I initialized the array elements in Objects as follow. It also give the undefined in the client side.
var myObj = {userName:"user1name", userId:"user1id"};
But following works
var arr2 = [];
arr2["userName"] = "user1name "; arr2["userId "] = " user1id";
Clients are connected to the main application on the FMS. Then it connect to second application through NetConnection. And I have mapped the remote method using the ‘registerProxy’ feature.
Eg: application.registerProxy(localName,this._nc,remoteName);
Above described method in the second application. I’m using Actionscript 2 for client side.
Any solution for the matter is highly appreciated.
Thanks in advance.