Darin,
 
Small typo. Think you meant this:
 
for (var key:String in obj){
   trace("key: "+key+" | Obj[key]: "+String(obj[key]));
   Alert.show("key: "+key+" | Obj[key]: "+String(obj[key]) );
}

Scott



 
On 12/10/05, Darin Kohles <[EMAIL PROTECTED]> wrote:
Encounter this often in DOM JS coding. I would just add to Matt's code:

for (var key:String in obj){
   trace("var: "+var+" | Obj[var]: "+String(obj[var]));
   Alert.show("var: "+var+" | Obj[var]: "+String(obj[var]));
}

Do somthing like that and you'll be able to know which object/property
you want to assign, then get rid of the loop and assign accordingly.

Take luck


--- In [email protected], "Matt Chotin" < [EMAIL PROTECTED]> wrote:
>
> It probably was returned as an Object.  We don't have a specific HashMap
> class, instead Object is what you'll get and it won't indicate how many
> properties there are.  You can however still iterate through them:
>

>
> var numProps:int = 0;
>
> for (var key:String in obj)
>
> {
>
>   var value = obj[key];
>
>   numProps++;
>
> }
>

>
> ________________________________
>
> From: [email protected] [mailto:[email protected]] On
> Behalf Of jgraham_us
> Sent: Thursday, December 08, 2005 10:13 PM
> To: [email protected]
> Subject: [flexcoders] passing Map in remote object
>

>
> I have a server side POJO that has a HashMap, my actionscript call
> makes a call to the server using remote objects.  When I get the
> object on the flex side the Map is represented as Object or an Array I
> guess.  The length is always zero, yet my items are in the object.
>
> Why is the length always zero?  I need to iterate through these.
>
> Thanks
>
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
>
> SPONSORED LINKS
>
> Web site design development
> < http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+
> site+design+development&w2=Computer+software+development&w3=Software+des
> ign+and+development&w4=Macromedia+flex&w5=Software+development+best+prac
> tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ> 
>
> Computer software development
> < http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=We
> b+site+design+development&w2=Computer+software+development&w3=Software+d
> esign+and+development&w4=Macromedia+flex&w5=Software+development+best+pr
> actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw> 
>
> Software design and development
> < http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=
> Web+site+design+development&w2=Computer+software+development&w3=Software
> +design+and+development&w4=Macromedia+flex&w5=Software+development+best+
> practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ> 
>
> Macromedia flex
> < http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+
> development&w2=Computer+software+development&w3=Software+design+and+deve
> lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=1
> 66&.sig=OO6nPIrz7_EpZI36cYzBjw> 
>
> Software development best practice
> < http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&
> w1=Web+site+design+development&w2=Computer+software+development&w3=Softw
> are+design+and+development&w4=Macromedia+flex&w5=Software+development+be
> st+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw> 
>

>

>
> ________________________________
>
> YAHOO! GROUPS LINKS
>

>
> *      Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders > " on the web.
>        
> *      To unsubscribe from this group, send an email to:
>       [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED] ?subject=Unsubscribe>
>        
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service < http://docs.yahoo.com/info/terms/> .
>

>
> ________________________________
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
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