if you want to do that then t should be something like this
var objectA:Object = new Object();
objectA.A = "A";
myMap.push(objectA);



----- Original Message ----
From: Paul Andrews <[EMAIL PROTECTED]>
To: [email protected]
Sent: Sunday, February 24, 2008 10:56:28 AM
Subject: Re: [flexcoders] array.length

Try

myMap.push(a) ;
myMap.push(b) ;
myMap.push(c) ;

I'm not sure if you really mean:

myMap.push(" A");
myMap.push(" B");
myMap.push(" C");

Don't be afraid to use the flex help!

Paul

----- Original Message ----- 
From: "annouss79" <anass.oasis@ gmail.com>
To: <[EMAIL PROTECTED] ups.com>
Sent: Saturday, February 23, 2008 10:06 PM
Subject: [flexcoders] array.length

>i need help with array in flex , anyone can help me ?
>
> var myMap:Array = new Array();
> myMap["A"] = a;
> myMap["B"] = b;
> myMap["C"] = c;
> Alert.show(myMap. length.toString( ),"length info")
>
> i got 0 as length , what's wrong ?
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
> Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. com
> Yahoo! Groups Links
>
>
>
> 





      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Reply via email to