Loading swf files into SWF Files hosted by a Dreamweaver Template

I have a file (an ASP file) into which I have attached a Dreamweaver template, which MX 2004 names “Template1.dwt.asp”

I want the rollovers in my ASP/Flash page to work in whatver directory the host file is without having to copy the same swf files to each subdirectory (I know there HAS to be a way)

Read on if interested

The template is located in the root of my site under /Templates (the default Dreamweaver assignment)

My file using the template is in
/osg/test and is named testdir.asp

the full path is http://mysite.com/osg/test/testdir.asp

There are 2 swf files in the Template1.dwt.asp file , which are located in the /osg directory, so that in the template, they are referenced with the path of ../osg/FlashSWF1.swf and ../osg/FlashSWF2.swf from within the Template file as it stands in the /Templates subdirectory

When I attach this template into a file I create in the /osg/test directory (in this case, testdir.asp, the swf files are referenced from within that file as
../FlashSWF1.swf and ../FlashSWF2.swf, and this seems to work (the swf files show up and all of the elements work except the rollovers, which happen to depend on the loading of one swf file into another (the rollover text for each rollover are separate swf files thatare loaded into a “RolloverClipHolder” .

The only way I can get this to work is to copy all of the swf files for all the rollovers into the /osg/test subdirectory.

I thought that the Actionscript references that send the rollover clips to the “RolloverClipHolder” would assume that the swf files are from the same directory as the swf file thatloads them, unless a directory path is specified. I did not specify a path. Do I need to specify one, and how do I do so if the files in quesiton are located in the same subdirectory as the swf file?

2 Replies to “Loading swf files into SWF Files hosted by a Dreamweaver Template”

  1. Tim Bednar

    I usually hate roll overs on templates just because of this.

    if you are using flash–why not do the roll-overs using flash? Using javascript to load a second flash image seems redundant. Why do you need to load another flash image? Flash buttons have over, down, etc. stages…

  2. Dale Lature

    Tim,

    That’s a godd suggestion, and I will probably look into that for future cases (I nver thought if using buttons, a nd simply moving the graphic for the rollover state to a different part of the screen), but in this case, the rollover text has to appear on another part of the page, in a different swf file (the top section, where the rollover text appears, is on a separate swf from the left side navbar.

    How’s that baby doing?

    Dale

Leave a Reply