codetoad.com
  ASP Shopping Cart, Forum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Can javascript preload swf files?  jayaramgussy at 13:48 on Wednesday, February 07, 2007
 

Hi everyone!
I am having problems with a page that I have made..

This is my problem:

I have more than 5 flsah movies. I need to preload Flash movies when the main page loads, so that these flash movies will run smoothly without delay later on into the website. But I don't want to have a "flashLoader" I would be comfortable to use Javascript.

I really need to be able to control or confirm the loading through javascript (like pre-loading images) rather than through a pre-loader within the flash file.


I tried with the following Scripts But Its not Preloading flash (swf) files.

<script type="text/javascript">
function preloadFlash() {
myFlash01 = new Image();
myFlash01.src ="/media/movie1.swf";
myFlash02 = new Image();
myFlash02.src ="/media/movie2.swf";
myFlash03 = new Image();
myFlash03.src ="/media/movie3.swf";

}
</script>

<body onLoad="preloadFlash()">









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: function within loop problem
•  Re: Ô‡´ò¥¯¥é¥Ö¤Ã� ¥Æ©`¥é©`¥á¥¤¥É£ò£±£±¥¢¥¤¥¢¥ó ¤Î£··¬ ¤Ç¤¹
•  Re: Replace
•  Re: タイトリスト AP2アイアン 712ã�®æƒ…å �
•  Re: SMS from Perl using HTTP request
•  Re: Charl Schwartzel
•  Re: Adhyayan - Annual Student Conference and Online Coding Festival
•  Re: C++ SMS SDK for Visual Studio
•  Re: How do you programatically open a file in c# to append?


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2013