There shouldn't be a problem with Simons suggestion.

Post your code. The message seems to suggest you didn't declare myData as an 
ArrayCollection, but your original code did.

Hmm..

Paul
----- Original Message ----- 
From: "flexawesome" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, November 04, 2007 1:29 AM
Subject: [flexcoders] Re: remove a item in ArrayCollection


> hummm....
>
>
> I got this error msg:
>
> ===============================
>
> Severity and Description Path Resource Location Creation Time Id
> 1118: Implicit coercion of a value with static type Object to a
> possibly unrelated type mx.collections:ArrayCollection. test.mxml
> line 69 1194139654331 151789
>
>
> --- In [email protected], "simonjpalmer" <[EMAIL PROTECTED]>
> wrote:
>>
>> how about
>>
>> myData.removeItemAt(0)?
>>
>> --- In [email protected], "flexawesome" <flexawesome@> wrote:
>> >
>> >
>> >
>> > Hey there,
>> >
>> > I have a problem to remove the first *object* in myData, any
> suggestion?
>> >
>> > Thank you
>> >
>> > ===========================
>> >
>> >
>> > [Bindable]
>> > private var myData:ArrayCollection;
>> >
>> > myData.removeItemAt(myData.getItemAt(0));
>> >
>>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
> 

Reply via email to