Our inherited code includes drill down from a main report to dynamically created Canvas objects, all of which may contain relational data. The mxml code creates a ViewStack, and each time a linked column is activated, a new Canvas object is created and added to the ViewStack. A "write to Excel" file option needs to use the "active" Canvas to get the appropriate set of data for the spreadsheet. Will the ViewStack's "selectedChild" data member "point" to the active Canvas in all cases?
API doc says:
A reference to the currently visible child container. The default is a reference to the first child. If there are no children, this property is
So the answer is yes: it will 'point' to your 'active' container.