Javascript example:
for each (var ctrl in pages.PAGE_1.allControls) { log(ctrl.elementName); }
returns UNKNOWNcom.ebasetech.xi.api.controls.Control[]
Javascript example: