• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Add busy indicator to view while switching tabs

New Here ,
Dec 22, 2013 Dec 22, 2013

Copy link to clipboard

Copied

Hi,

I'm having trouble figuring this one out. I have a view that takes a moment to build itself - it is the first view of one of the tabs in my TabbedViewNavigatorApplication.  I wanted to add a busy indicator so I created an MXML component that simply included a transprent gray overlay with a busy indicator in the middle. From the first view of my TabbedViewNavigatorApplication, on init, I add a CHANGING event listener to tabbedNavigator. My theory is that I listen for the change event, add the busy indicator component to the current view based on the oldIndex of the tabbedNavigator during the change. Then, once the new view is set as active, I kill or hide the busy indicator component. Is this the totally wrong way to go about this? Because I can't get it to work at all.

Thanks!

TOPICS
Developers

Views

713

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines