lets assume that I have the following setup:
[Bindabel] public var language:String = 'biography_en';
some where in the code I like to use this variable like the following:
updateVO.language = content; // this obviously won't work.
How is the correct syntax for this action, I know there is ojen but i lost it :/
Thank you !
You can't use the dot syntax, but you can use square bracket syntax to achieve the same thing:
updateVO[language] = content;
That should work.
is there also a way to do something like this:
private function myFunction( state:String ):void
Dot and associative array syntax are interchangeable for objects in AS3.
state_glow.alpha = 0 or
state_glow["alpha"] = 0;
Guessing you might have typed your function body incorrectly since state isn't used.