R – Detecting out-of-view flex controls

actionscript-3apache-flexmxml

In my flex app I have custom tooltips on buttons that hide and show based on user context.
The problem that I dealing with is that when I call my showTips() function I only want to show tooltips on the buttons that visible in the view. So buttons that on a un-selected tab (tabNavigator) should not show the tooltips.
For some reason all tooltips are showing.
Is there a way to detect if a button is not in current view, like on a un-selected tab?

Best Answer

Instead of custom coding for each button, make use your tabnavigator's creation policy is set to "auto".

Check this link for more details

http://livedocs.adobe.com/flex/3/html/help.html?content=layoutperformance_05.html