Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 4.5 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows 7
Language Found: English
Description
Steps to reproduce:
1. Create a webservice that returns plain XML:
<RootTag>
<ItemTag (attributes...) />
<ItemTag (attributes...) />
<ItemTag (attributes...) />
....
</RootTag>
2. Add a <s:WebService ... > in Flex
3. Add an <s:operation resultFormat="object" makeObjectsBindable="true" ... />
4. Call the operation
5. Bind to the returned ArrayCollection
Actual Results:
runtime issues warning:
unable to bind to property '(propertyname)' on class 'mx.rpc.xml::SimpleContent' (class is not an IEventDispatcher)
Expected Results:
no warning
Workaround (if any):
[Bindable]
protected var bindableCollection:ArrayCollection;
// manually insert ObjectProxies
protected function handleWebserviceResult(event:ResultEvent):void {
var items:ArrayCollection = event.result.RootTag.ItemTag;
for(var i:int=0;i<items.length;i++)
bindableCollection = items;
}