BLOGGIN' BOUT EVERYTHING
Quick hack to get all elements in a flex 4 spark container
If you ever need to get an array of the elements in a flex 4 (spark) container you usually need to loop through it, using the numElements value for the container.
However this little “hack” retieves the internal array of elements:
“container” is the id of the spark container.
container.mx_internal::getMXMLContent();