Web Hosting Talk







View Full Version : Help Me Please with a Flash Problem!


syphris
01-10-2007, 10:00 PM
(sorry if this sounds confusing )
ok so my problem isn't that big. On my website i have a flsh header. the buttons in the flash header are coded to go to the specific pages on my site. for instance http://www.diadido.com/aboutus.html but the only problem is it only works on the index page. the index header works for all the links but the other headers with the same links won't go to the specified pages. I was wondering if i needed a seperate flahs file for each of the pages for this to work.

currently i have two headers. one for the index, and one for the rest of the pages.

How can i fix my problem?


Thanks

Syphris

fastnoc
01-11-2007, 12:30 AM
It's always better to use relative paths (which is what you describe) but sometimes it's not possible.

however, remember, in html any time you put the forward slash at the front of the link, it will ALWAYS go to the root of the site. eg:

if you make your flash for the 'home' page like this /index.php it will go to the index page no matter where it's called from because the '/' tells it to go to the root of the site. You can actually make the whole URL in the link to the homepage like this:

getURL("/");

That will always point to the default site document. Then on your other links just do this:

getURL("/filename.php");

You're probably doing it like this right now:

getURL("filename.php");

which is why the links don't work in other pages.

creativeartist
01-11-2007, 12:56 PM
When the flash is coded ,are you using absolute path or relative path.It is not the problem with FLA or SWf.It is with the link information added for each.Make sure that the paths are entered correct.

syphris
01-11-2007, 01:11 PM
Thanks for the pointers im going to try it out now.