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
- 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:
>
>
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
3 matches
Mail list logo