问题描述:

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?

网友答案:

If you gave us some code I could check this out, but would this work?

if(button.parent.visible) { showTip(button);} 
网友答案:

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

相关阅读:
Top