Re: [flexcoders] Syntax of using a variable to make an object

2008-10-18 Thread John Fisher
Thanks Paul. Paul Andrews wrote: > > > The curly bracket syntax is for compile time declaration only where the > compiler knows all of the values at the time of compilation. In your example > variables are involved so the compiler gives you an error. > "AHA" he said. > Generally speaking the

Re: [flexcoders] Syntax of using a variable to make an object

2008-10-18 Thread Paul Andrews
- Original Message - From: "john fisher" <[EMAIL PROTECTED]> To: Sent: Saturday, October 18, 2008 1:40 AM Subject: [flexcoders] Syntax of using a variable to make an object >I am stuck on some basic AS syntax. > > Here is some Adobe sample code: > >

[flexcoders] Syntax of using a variable to make an object

2008-10-17 Thread john fisher
I am stuck on some basic AS syntax. Here is some Adobe sample code: [Bindable] public var dpac:ArrayCollection = new ArrayCollection([ {A:2000},{A:3000}, {A:6000} ]); public function addDataItem():void { var o:Object = {"A":2000}; dpac.addI