Skip to main content
June 16, 2006
Answered

Preloader runs over the top of external SWF

  • June 16, 2006
  • 2 replies
  • 301 views
I have a very simple preloader that loads an external SWF. It almost works. :-)

I find that the external SWF pops up in the window--good--but the preloader keeps running over the top of it--bad. I've attached the actionscript that's in my preloader....

To see it in action, please go HERE.

Thanks in advance!
--bryan

================================================
This topic has been closed for replies.
Correct answer
Thanks very much. But I think I'm just not sure why the progress bar is THERE. If the SWF is loaded and appears in the window, why is the progress bar still there and running? Why doesn't it go away? Is the progress bar correct, and the SWF appears even though it's only partially loaded?

I ended up making the visibility of the external SWF dependent upon its being completely loaded--if bytesLoaded < bytesTotal, then the SWF's visibility is set to false. Maybe that's just kludge, but it worked.

Again, thank you for responding to my question!

2 replies

kglad
Community Expert
Community Expert
June 17, 2006
you deleted your listener before onLoadInit executed. that caused your problem.
June 18, 2006
Aha! I'll add that to my rapidly growing list of stupid mistakes.

Thanks!
--bryan
kglad
Community Expert
Community Expert
June 18, 2006
once your list of stupid mistakes is 10% as long as mine you'll be ready to help others on this forum.
kglad
Community Expert
Community Expert
June 17, 2006
if you want your loaded swf to appear above your preloader change the relative layers (or more precisely, depths) of progressBar_mc and container_mc.
Correct answer
June 17, 2006
Thanks very much. But I think I'm just not sure why the progress bar is THERE. If the SWF is loaded and appears in the window, why is the progress bar still there and running? Why doesn't it go away? Is the progress bar correct, and the SWF appears even though it's only partially loaded?

I ended up making the visibility of the external SWF dependent upon its being completely loaded--if bytesLoaded < bytesTotal, then the SWF's visibility is set to false. Maybe that's just kludge, but it worked.

Again, thank you for responding to my question!