Groups > Multimedia > Macromedia Flash > Re: Flash navigation for web pages on multiple folders?




Flash navigation for web pages on multiple folders?

Flash navigation for web pages on multiple folders?
Fri, 9 May 2008 13:17:11 +0000
Hello I'm having problems using Flash as a navigation bar for web pages located

on different folders. My .swf navigation bar is located on 'flash' folder in 
the root drive.

 My site also has other folders, e.g. an 'articles' folder. I can display the 
navigation bar using /flash/menu.swf, but the problem is the link takes me to 
articles/index.html rather than simply index.html. I've tried changing the link

in Flash to an absolute value (www.mydomain.com/index.html) but this does not 
seem to have any effect.

 Please tell me what to do in flash or dreamweaver. Thanks a lot
Post Reply
Re: Flash navigation for web pages on multiple folders?
Fri, 9 May 2008 13:51:14 +0000
If you use an absolute value in flash it MUST include the "http://" 
Otherwise 
Flash sees it as a relative path and simply appends it to the end of the 
current URL.

 Also, remember that Flash uses the location it is loaded into as the beginning

of any relative path.  So, even if the SWF is in a folder called
"flash" and 
the HTML that has the SWF loaded is one directory up, in the root, the SWF will

start its relative paths from the root.  Because you can never know for sure 
what the folder directory will be later in the SWF's life, and you have no 
guarantee that you will never want to host the SWF in a different location, I 
consider it a best practice to use absolute paths all the time.
Post Reply
about | contact