If someIndex != 0 then you have to 

foo[someIndex] = new Object();
foo[someIndex].typ = "B";


P.

>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:flashcoders-
>> [EMAIL PROTECTED] On Behalf Of eric dolecki
>> Sent: Thursday, September 28, 2006 1:26 PM
>> To: Flashcoders mailing list
>> Subject: [Flashcoders] Array problem
>> 
>> I have an array of objects like this:
>> 
>> var foo:Array = new Array();
>> foo[0] = {typ:"A", label:"foobar"};
>> 
>> and some time later, I'd like to change the value of typ like so:
>> 
>> foo[someIndex].typ = "B";
>> 
>> However thats not working, the value isn't being set. I think I am
>> missing
>> something pretty simple here.
>> 
>> - e.
>> _______________________________________________
>> [email protected]
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> 
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to