Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript preloader for .swf files

 
Deivis Vukas
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
I have a html document with embeded flash movie inside <object> element.
Is it possible to show initial html page with a message "Loading..." while .swf file loading completes, then switch to the next html page with my flash movie ready to run,
or
to run litle animated gif instead of object element, while .swf file is loading?
Can you explain in details how to write javascript code to serve this task?
Thank you!
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Flash file contain their own mechanism for showing the 'Loading...' text.
Since a Flash file is streaming (it can start running before it completes downloading), you have the first few frames have a repeating loop checking to see if the whole file has loaded and going back the beginning if it hasn't.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic