var myList:ArrayList = new ArrayList(); // doesn't throw any error

var myList:ArrayList = new ArrayCollection();
gives the following error:
Implicit coercion of a value of type mx.collections:ArrayCollection to an
unrelated type mx.collections:ArrayList.

It was my confusion with c# that caused me to write that int eh first place
when I noticed the error. I've googled and seen it mentioned in code
snippets but coudln't find much.




On 06/03/2008, Paul Andrews <[EMAIL PROTECTED]> wrote:
>
>    If you search in help, it's only mentioned as a C# class and does not
> appear to exist in the mx.collections package.
>
> Where have you seen it?
>
> Paul
>
> ----- Original Message -----
> *From:* DannyT <[EMAIL PROTECTED]>
> *To:* [email protected]
> *Sent:* Thursday, March 06, 2008 11:29 PM
> *Subject:* [flexcoders] ArrayList Vs ArrayCollection
>
> Can anyone point out the difference between ArrayList and ArrayCollection?
>
> ArrayList seems to be in the mx.collections package but I can't find any
> documentation on it.
>
> Dan
>
> --
> http://danny-t.co.uk
>
>  
>



-- 
http://danny-t.co.uk

Reply via email to