Can somebody explain in simple terms what the difference between these 
code blocks is, and why the former works correctly, but the latter does not?

<mx:Binding destination="filterParams.severity_min" 
source="filter_severity.values[0]"/>
<mx:Binding destination="filterParams.severity_max" 
source="filter_severity.values[1]"/>

This works as desired, but produces the following warnings in my IDE.

"Data binding will not be able to detect changes when using square 
bracket operator.  For Array, please use ArrayCollection.getItemAt() 
instead."

But using the suggested form, produces incorrect results, no value is 
returned.

<mx:Binding destination="filterParams.severity_min" 
source="filter_severity.values.getItemAt(0)"/>
<mx:Binding destination="filterParams.severity_max" 
source="filter_severity.values.getItemAt(1)"/>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4486
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to