So my example will still work though because your 'nodes' don't have consistent naming, you'll probably have to add some data to the levels that you want to extract into the flattened array and then where I'm checking for "division" you would check for the new data that indicates it's at the level you want to extract.
As for JS to AS, technically I did it in TypeScript. But it should be directly portable aside from the types being used (just translate to as types) and then the Array.isArray is specific to JS -- Sent from: http://apache-flex-users.2333346.n4.nabble.com/