it still gives me this error but now its tottaly wack
Type Coercion failed: cannot convert [EMAIL PROTECTED] to
mx.collections.XMLListCollection
?
here is the code under trail
private function productServiceResultHandler(event:ResultEvent):void
{
//HTTPService returns an ArrayCollection for nested arrays
var products:XMLListCollection = event.result.catalog.product;
trace(products)
var temp:XMLListCollection = new XMLListCollection()
var cursor:IViewCursor = products.createCursor()
while (!cursor.afterLast)
{
var product:Product = new Product();
product.fill(cursor.current);
temp.addItem(product);
cursor.moveNext();
}
catalog = temp;
}
and its this line that is giving the error at present
var products:XMLListCollection = event.result.catalog.product;
----------------------------------------
From: "Alex Harui" <[EMAIL PROTECTED]>
Sent: Thursday, March 29, 2007 2:13 PM
To: [email protected]
Subject: RE: [flexcoders] Modifiying The Flex Store Application, How To Get
Data From Database
Use XMLLIstCollection instead of
ArrayCollection
----------------------------------------
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Faisal
Abid
Sent: Thursday, March 29, 2007 10:16 AM
To:
[email protected]
Subject: [flexcoders] Modifiying The Flex
Store Application, How To Get Data From Database
I Have made a cfc which gets data from the database parses it to XML and
returns it to the Flex store applcation , but it doesnt seem to work , i get an
error saying it cannot convert XML list to arraycollection? . how wouldi make
this work