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 variable equivalent of
>
> var o:Object = { x: 1234};
>
> would be
>
> var o:Object = new Object();
> o.x = 1234;
>
obviously I warn't raised on OO style.... I was still looking for "*"
> your code is trying to have the variable name as a vaiable itself, so the
> equivalent would be:
>
> o["x"] = 1234;
>
> var variableName:String = "x";
> var variableValue:Number = 1234;
>
> o[variableName] = variableValue.
>
excellent. Thanks very much
> I'm rather suspicious of your XML handling code, but I won't go there!
>
Oh that was almost pseudo-code, to make it easier to read, without
explaining the whole razzmatazz of hoops I am jumping through. No doubt
there will be extensive re-factoring once it all works and my
understanding grows.
>
>
>