How to show a swf file only when it's fully loaded?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
lovelf
Forum Contributor
Posts: 153
Joined: Wed Nov 05, 2008 12:06 am

How to show a swf file only when it's fully loaded?

Post by lovelf »

I have a swf file that's a movie (780 kb) and on slow connections it doesn't play smooth, so is there a way with JavaScript (?)
to show the file once it has been downloaded to the user's hard drive?
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: How to show a swf file only when it's fully loaded?

Post by kaszu »

To do that you need to preload that movie in flash and when it's done call javascript function, which would show the container element.
http://www.google.com/search?q=flash+preloader
http://www.google.com/search?q=call+jav ... from+flash
lovelf
Forum Contributor
Posts: 153
Joined: Wed Nov 05, 2008 12:06 am

Re: How to show a swf file only when it's fully loaded?

Post by lovelf »

Thanks kaszu, I got it working now.
Post Reply