We have a Flex application which has several ‘pages’ worth of content. Each time a page is opened by the user some of the information on the page needs to be refreshed (takes less than a second to do so). We currently display a ‘loading’ animation.
The idea is to replace it with some kind of transition effect for the whole page and load the content in background while the transition is in progress.
Is it possible? Is it a good idea? Could someone share a link to a good example or article on the subject?
thank you very much
You can use something like this for the spinner. Not sure if that’s part of your problem or not.
Otherwise, for your main pages, all you need to do is set
myPage.visible=falsewhile you’re loading it. Once you get theFlexEvent.CREATION_COMPLETEevent, you can set it back tovisible=true. Even if visibility is false, theincludeInLayoutshould still be true, which means the component will load correctly.To make the spinner easier to show, you might need a canvas as the parent. Attach your spinner to that canvas, and your real page will be a child of the parent.