Getting a Web Page to Automatically Load a Flash File


When flash movies are created to use on the web, two files are made, a .swf file and a .html file. If you tried to name these two files index.swf and index.html to get them to load by default when accessing a page, it won't work. The index.html file here is not in the correct format. The solution: save the flash files as something else, say main.swf and main.html. Then create a new index.html file that will redirect the webpage to the swf file, which will start the movie.

The new index.html, should look something like this:

<HTML>
<HEAD>
<META HTTP-EQUIV="Refresh"
content="0; URL=http://www.novasonicdownhyperspace.com/main.swf">
</HEAD>
</HTML>

Note the the URL must always be an absolute path, relative paths won't work.