View Full Version : links won't work
Lesrenee
08-30-2005, 08:17 PM
I'm just learning Flash and I created a web site using Flashmx2004 with several pages. I used the same header for all the pages. I exported the .swf fies to a folder. I then opened Dreamweaver and put each .swf file into seperate html files. So now I have an index page seperately and a folder called "site" which contains the rest of the html pages (like about us , contact us, etc.). My problem is that the links don't work in my Flash files. I used actionscripting on the buttons to link between pages. For example I used the following code to link to the aboutus page.
on (release) {
getURL("site/aboutus.html");
}
It works fine on the index page but not on any of the other pages. Can someone please help me. I've been trying to figure this thing out for days and at my wits end. HELP !!!!!!!
saumya
09-01-2005, 06:40 AM
try
on (release) {
getURL("../site/aboutus.html");
}
on all the other pages.
Lesrenee
09-02-2005, 04:37 PM
Thanks Saumya,
That seems to be working. When I make the corrections to the code as you instructed, and play the movie in ie, everything works great. But when I resave everything and try it from Dreamweaver it doesn't work. I think part of my problem is the way I'm saving my files. What is the correct way to save the .swf file. I've been editing my .fla file and then going to save as, overwriting my current file and saving it in my folder. Then I export the movie as a .swf file, overwrite the file again and save. But then when I close the .fla file I end up with an extra .swf file sometimes?? What am I doing wrong??
Thanks again for your help. I appreciate it.
Lesrenee
saumya
09-05-2005, 04:12 AM
because you are trying to save it and export it.Well if you just save the file it will save on the same name.Then just go to publish settings and if you do not want to publish it in html then remove the tick mark from html box.Just publish it in swf format.That way you will get your necessary swf file.No need to export the file.
Lesrenee
09-05-2005, 06:57 AM
Sorry to keep bugging you but I can't get these darn things to link! When I put in the code you gave me I get the following message:
Cannot find 'file:///D/My%20Documents/OFF%20Price%Network%202/site/..site/aboutus.htm'. Make sure the path is correct.
My root folder is in My Documents>OFF Price Network
Can you make any sense of that?
saumya
09-05-2005, 08:40 AM
seems to be path issue.Please be sure to provide the correct path as i said it preveously.And well try removing the blank spaces from your folder name as "My Folder" should be "MyFolder" and do the same for the folder naming too.Thats just good practice.See if it helps.First remove the spaces and then try the other thing like looking towards the path.
vBulletin v3.5, Copyright ©2000-2010, Jelsoft Enterprises Ltd.