#1 (permalink)  
Old 03-05-2007, 03:30 PM
Registered User
 
Join Date: Mar 2007
Posts: 1
Flash Menu Error

Not sure if this error is because of Dreamweaver or Flash...

I am building my web pages with Dreamweaver MX 2004 and using Flash for navigation menu. The menu works fine with pages that are in the main root folder but as soon as I create a page that resides in a folder off the root, the links in the menu change and break.

The path gets changed to that folder, for example: I have as a link in the menu; "press_releases.html", when I click on this link in a page that resides on the root folder, the link takes me to that page. C:/Webpages/Test/press_releases.html. Great, thats what I want....but

If I click on that link on a page that resides in a folder off the root, I get an error page telling me it can't find the page and it shows the path which now includes that folder, C:/Webpages/Test/press_releases/press_releases.html. Is it that the menu will ONLY work with files that are in the root folder???

The javascript and flash navigator menu files reside in the root folder.

If its a help I can post the script.

I hope this is clear, I obviously do not want this and hope you know how I can remedy the situation.

Thanks for any help.
Reply With Quote

  #2 (permalink)  
Old 03-22-2007, 10:29 AM
MicheleLee's Avatar
Registered User
 
Join Date: Aug 2006
Posts: 7
Send a message via Skype™ to MicheleLee
File Structure Problems

It has been a few days since your original post. If you have found your solution then great. However, there are new users out there that might have the same or similar problems so answering the post with detailed help.

Yes, it is a path problem.

Please be specific as to how your site is set up. Another thing I will assume is that if your using your own computer to host your site and you did want your site to use that path (your c: drive) then it could be a firewall/secruity issue that is causing the problem.

However, I will explain this as if your using a hosting service.

First quesion is... have you setup the site in dreamweaver? Dreamweaver needs to know what you want to use as your root folder. It is usually pretty good about reminding users of this. If you have setup a root folder and then want to add images and links that are not in the root folder then you will get path problems.

Lets take an image for an example.
In this example my site is setup in Dreamweaver on my e: drive in a folder called "my site" and within that folder is a subfolder called "images" and another sub folder called "downloads"

While I am building my site I decide I would like to add an image from my c: drive. I go to the program menu and choose insert, image, and dreamweaver will open a window asking me to choose the image. I locate the image I would like to use on my c drive.

Now Dreamweaver will notice the image resides in a folder that is outside of your sites root folder. You will see a window that says "the file is outside the root folder of site your site name, and may not be accessible when you publish the site. it then shows you the path to your root folder."

It asks you would you like to copy it there now? choose yes.
If you do NOT choose yes this is what can happen.
<img src=file:///c|/documents and settings/username/my documents/my files/workspaces/workspaces/imagename.gif width=318 height=146 />

You go and upload your site to your hosting server. You open your browser to load the page, and check the url. Sadly it will not work because that path is not pointing to your host root folder (it is still pointing to your computer's hard drive)

If you click yes then Dreamweaver will ask you where would you like to copy this file to? You would choose the root folder and its sub folder. Now upload the files to your hosting server, load the page, and check your URLs. Your paths should be correct, and working fine.

example of a proper path for an image within the main root folder:
<img src=images/imagename.gif />

Remember it does not matter where the main root folder is on your drive, but what does matter is how you set up your site in Dreamweaver. As long as Dreamweaver knows the root folder and its subfolders then your structure should be OK.

Just for good practice: Always, before uploading your site to your host OR launching it from your own server (local/remote) you should check all URLS to pages, and images. They should never show your drive letters. After time your eyes will adjust to scanning code and you will be able to pick out error in not time.

For good file structure:
index page it should be like this
<a href="index.html" target="_top">

For images within your root folder they should really be in a folder called images (cleaner structure) like this
<img src="images/myimage.gif" height=" " width=" " alt="image description goes here">

If you were to add sub folders for animation images then again you must follow the path like this
<img src="images/animations/myimage.gif" height=" " width=" " alt="image description">

What you do NOT want:
If you do not allow dreamweaver to copy files to a root/subfolder then you will get full Hard Drive URLS like this
<img src="c:\program files\macromedia\dreamweaver\picture.gif" height=" " width=" " alt="my picture">
then of course it will not work on your site.

My personal opinion I do not recommend using your hostings site editor to fix your pages. I prefer editing in the original editor, saving it, then re-upload. This will help prevent errors as some editors can change your code.

This is the same way with flash. You will need to edit your actionscript to point to the correct URL structure, save your flash file, and re-upload it to the server. To do this you will open your Flash program, double click on your button and then choose to edit the actionscript for that button.

Michele
Michele's Paint Shop SEO Newbie 101 Site & Graphic Design.
Reply With Quote
  #3 (permalink)  
Old 04-09-2007, 01:19 AM
Registered User
 
Join Date: Apr 2007
Posts: 2
Fash menu problems

Hi everyone...
Well I too have a similar concern as you regarding flash menu. Here is the newbie problem: I'm designing my first Dreamweaver site and I designed a flash navigation menu from the sample menu_dropdown.fla included with Flash MX. When I test the menu in Flash, it works fine. When I publish it and check the published swf file, if works fine. When I import it into
Dreamweaver and play the swf within the workarea, it works fine. However, when I preview (F12) the page, it shows only the background of the swf and no menu text. Even I also consult developers at: web design company but still I think you might have some related feedback.See the swf uses an .xml source file for the menu text and I indicated this in Dreamweaver, but to no avail. What am I doing wrong?
Thanks so much for the help.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash loads html, html (into flash) links to another html inside flash, or to a popup kenny_gr Graphics and Flash 1 10-16-2007 09:32 AM
Detect flash on users browser Websoft Browsers 1 10-10-2006 04:57 PM
Flash Detect and Replace not Working Cian Pas Programming and Scripting 0 08-30-2006 12:49 PM
Validating Flash Menu MicheleLee Programming and Scripting 6 08-17-2006 10:55 AM
html and flash menu help plz foggythefox Programming and Scripting 1 04-30-2005 11:12 AM


All times are GMT -5. The time now is 01:29 AM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter