Hi darklump,
I see that those methods are not in the API docs (that's
because of the @private comment, it excludes the element from the
generated asdocs).
My problem is that I can use them in client code (in
actionscript, using the cocomo swc component) but I don't know
if/how can I perform the same thing from a non-actionscript
service, thus using the HTTP API used also by the SDK examples for
other porpuses.
Anyway I'm facing another problem now.. in the meantime I
simply granted the OWNER role to all connecting clients, and
registering the custom field as needed like this:
var um:UserManager = myCocomoSession.userManager;
if (!(um.isCustomFieldDefined("myfield"))) {
um.registerCustomUserField("myfield");
}
um.setCustomUserField(um.myUserID, "myfield", "value");
I thought that this would have triggered the UserManager's
event
UserEvent.CUSTOM_FIELD_CHANGE, but it didn't. So I just
explicitly tried to retrieve the value:
private function refreshUserFields():void {
var um:UserManager = myCocomoSession.userManager;
var dsc:UserDescriptor = um.getUserDescriptor(um.myUserID);
var myfield:String = um.customFields["myfield"]; // always
null
}
But the customFields atrribute is always an empty Object. I
noticed that the flash console displays the following each time I
try to set the custom field value:
RECEIVENODES UserManager
receiveAllSynchData UserManager
Is the customfield stuff experimental/in progress or I'm
wrong somewhere?