Greetings
I am attempting to create a custom collection node to share some variables. A simple variable is not a problem, but I am having a problem with a value object. It seems I should be able to set the node name to be the name of the VO and the item name to be the property name and the body to be the property value. No matter what, the item name is "item", so you cannot store more than one property.
So for a CollectionNode named "testModel",
cnode.publish(new MessageItem("testInt", 1234), true);
will give (in Room Console)
CollectionNode: testModel
Node: testInt
Items: item -> body = 1234
That works fine.
if I do this:
cnode.publish(new MessageItem("testVO", 1111, "first"), true);
cnode.publish(new MessageItem("testVO", 2222, "second"), true);
I would expect:
CollectionNode: testModel
Node: testVO
Items: first -> body = 1111
Items: second -> body = 2222
But I actually get:
CollectionNode: testModel
Node: testVO
Items: item -> body = 2222
It's not supposed to do that, right?
Also, docs for MessageItem constructor are wrong and it took a long time to figure out.
I am using Flex 3.5 and AFCS for player 9.