I've been searching the net and I found this["elementName"] but it just gives me the error (at runtime):
Property X not found on Y and there is no default value
The element is placed in another element, so I have also tried picContainer.this["elementName"] which gives me the error (before compiling):
1084: Syntax error: expecting identifier before this.
1086: Syntax error: expecting semicolon before rightbracket.
However, the location of those errors are way offset.
I have also tried picContainer["elementName"] which gives me (at runtime):
Property pic0 not found on spark.components.BorderContainer and there is no default value.
If you used 'id="foo"' from MXML, then this["foo"] will work. Otherwise,
you have to create variables to hold references. There is no getElementByID
Thanks, I set the ID from ActionScript so I'll have to go with references.
Here is the solution