It is a letter "case" error.  Check the spelling on that line.

Tracy

 

________________________________

From: [email protected] [mailto:[email protected]] On
Behalf Of Jason B
Sent: Wednesday, January 07, 2009 1:19 PM
To: [email protected]
Subject: [flexcoders] Re: Slow datagrid updates

 

hmm im getting errors in the IDE on this line
>> searchmcrefundDataProvider = new XMLListcollection(xlResult);

1180: Call to a possibly undefined method XMLListcollection. 

code im using is
======================================

import mx.collections.XMLListCollection;

[Bindable]
public var searchmcrefundDataProvider:XMLListCollection;


private function searchrefundstickersResult(event:ResultEvent){
var xmlResult = XML(event.result);

var xlResult = xmlResult.children(); //or other e4x expression
searchmcrefundDataProvider = new XMLListcollection(xlResult);





}

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Tracy Spratt" <tspr...@...> wrote:
>
> Ok, setItemAt() is a method of *collections*, it is not a method of
XML
> or XMLlist. Hence that error.
> 
> 
> 
> In this case the best thing to do is wrap your remote call result in
> XMLListcollection. Decalre a bindable instance var typed as
> XMLListcolleetciton, and bind the DG to that. In the result handler,
do
> something like:
> 
> private function resultHandler(event:ResultEvent):void
> 
> var xmlResult = XML(event.result);
> 
> var xlResult = xmlResult.children(); //or other e4x expression
> 
> _xlcDataProvider = new XMLListcollection(xlResult);
> 
> 
> 
> 
> 
> Now you can use _xlcDataProvider.setItemAt();
> 
> 
> 
> Tracy
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>
[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Jason B
> Sent: Wednesday, January 07, 2009 10:31 AM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Re: Slow datagrid updates
> 
> 
> 
> Sorry Don't give up I might of missed what you meant
> 
> > "1010"? What the heck is that?
> 
> An actionscript error has occured:
> TypeError: Error #1010 A term is undefined and has no properties.
> at line 69
> 
> At that line is where it uses setItem
> 
> > What is the data type of the DG dataProvider? 
> I'm using XML datatype 
> 
> hope this helps
>

 

Reply via email to