How about making the SWFLoader initially visible="false" and mae it visible on the "complete" event.
You could even have a placeholder component such as a label saying "loading" that is initially visible and is made invisible on the complete event.
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
Flex / AIR Development, Training, and Support Services
Actually, I tried that and it worked but the problem is, i need to play the swf while it is streaming so i couldn't wait for the content to fully load before making it visible.
Is there a way wherein the movie would resize before it actullay completes the loading process?
If you want the content to change size, make sure you set
Hi Flex harUI,
Actually my setting is scaleContent = true and it works fine since the whole SWFLoader follows the stage size when it is set to fullscreen. My problem is the delay of the resizing when loading a new swf while on fullscreen.
To summarize my problem,
- I set the app in fullscreen
- I have an SWFLoader that dynamically loads an swf
- While the SWFLoader is loading the content, it follows the original size of the swf and not the stage size but when the swf loading is complete it will resize the swf to follow its relative size to the stage
What I would like to happen is for the swf to resize before it finishes the loading.
Hoping there's some workaround...
OK, I misunderstood. Try calling invalidateSize on Progress events.
Thanks for the post Harui but still invalidateSize() didn't do the trick