1 person found this helpful
this warning shown because items in Array has default type Object and Object don't dispatch change events.
I've seen this message in Flex 2, but can't reproduce it in FB3.
Any idea how serious this issue is? Everything seems to be working as it should so I'm more than inclined to report it as a bug in the compiler.
I doubt that it is a bug. Let's say the objects in the arraycollection look like:
There is no way to watch for changes to the Screen property because these objects are plain Objects and don't dispatch events. Your app as written will work because as the Canvas is initialized it will read the value of the first item's Screen property. However, if you simply add a button and change "screen1" to "screenX", when you click that button, I doubt you'll see those changes reflected.
Using Object is "inefficient" anyway, so it is best to create a class for your user data and make the properties bindable.
Flex SDK Developer
Adobe Systems Inc.
You make a valid point about the Object in the ArrayCollection. The reason I think this is a bug in the compiler is that
1: The ArrayCollection is bindable
2: ArrayCollections are recommended object for dataProvider
3: When an element of an object in an ArrayCollection changes the ArrayCollection has changed so shouldn't the bindable property of the ArrayCollection be the controlling property?
As to creating a custom object, the ArrayCollection UserData is populated by an AMFPHP service call I don't see any practicable method for doing this. I may be wrong about this and would love to find away to create custom objects in ArrayCollections that are populated by service calls to my data base.