PDA

View Full Version : SWF within HTML calling another SWF


jedi_agh
02-07-2003, 01:59 PM
I have 3 swf files. main.swf, mtour_1.swf and mtour_2.swf.

When I play them from my PC I can get main.swf to load the othert two file by pressing a button. One button will load
mtour_1.swf using the following code
loadmovie ("mtour_1.swf", 0); or "mtour_2.swf"
the other button does the same but for mtour_2.swf


I then created a simple .htm page using DreamWeaver and inserted the main.swf file into it. This is where I am now getting a problem. main.swf loads in the HTML file but when I press on either button I get a blank screen. I guess since the files are now on a sever and not my PC the "path" to not right.

So I copied my source files and instead of using
loadmovie ("mtour_1.swf", 0) I did
loadmoview ("http://mywebiste.com/mtour_1.swf", 0)

Tried that and still I get the same blank page on the html page?
What am I doing wrong?

jedi_agh
02-07-2003, 08:28 PM
Also not sure if this affects my problem or not. The files are NOT all in the same folder.

folder structure is:

www.mywebsite.com/flash_main.htm (shows main.swf)
www.mywebsite.com/flash_1.htm (shows Mtour_1.swf)
www.mywebsite.com/flash_2.htm (shows Mtour_2.swf)

The .swf files are in:
www.mywebsite.com/flash_files/

timeliner
02-09-2003, 10:52 AM
Your .swf files need to be in the same directory as your .html files

farafiro
02-09-2003, 11:07 AM
also, if u do as timeliner said, u can use relative path, just the name of the swf