A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Buttons not linking correctly

  1. #1
    Junior Member
    Join Date
    Mar 2009
    Posts
    5

    Unhappy Buttons not linking correctly

    Hi,
    I am working on a file someone else created with flash. The site is http://www.fostersfreeze.com. This was created with frames in dreamweaver and the nav bar and index page movie are swf files. When you click on the pages in the nav bar it redirects to the index page. It does this the majority of the time and every now and again when you click it will go to the actual page.

    The way it is set up in dreamweaver, it has the nav movie in the top frame and the content in the bottom. All I did was change the old i.p address to the domain name because our host changed. I did nothing else and then this started not working correctly. I have checked and double checked all links in flash and they work from the swf but when it is loaded in the browser it does that weird linking to the index again.

    This is the code in flash to link to the pages:
    on(release) {
    getURL("http://www.fostersfreeze.com/Food.html","_top");
    }

    At first I thought it might be the "top" thing telling it to load on the top frame but if that were the case then why does it work on some pages and others not?

    Also, this is published in flash6 but I am using Flash CS3 to edit.

    I would appreciate any help. I don't know what else to try.

    Thanks in advance

  2. #2
    Ryan Thomson EvolveDesigns's Avatar
    Join Date
    Oct 2001
    Location
    British Columbia
    Posts
    3,338
    try using relative addresses like

    on(release) {
    getURL("Food.html","_top");
    }
    Evolve Designs Interactive Media
    the natural selection

  3. #3
    Junior Member
    Join Date
    Mar 2009
    Posts
    5
    Ok I changed the links to relative like you suggested and they work from the index page but they still don't work in the inside pages. What could be the cause of this? They all use the same frame top which is titled "nav.html" so shouldn't they all work the same since it is the same file on all?

    I am so confused.

  4. #4
    Ryan Thomson EvolveDesigns's Avatar
    Join Date
    Oct 2001
    Location
    British Columbia
    Posts
    3,338
    Are all the pages being loaded in the same folder as index?
    Evolve Designs Interactive Media
    the natural selection

  5. #5
    Junior Member
    Join Date
    Mar 2009
    Posts
    5
    Yes. They are in public ----> then all the pages are here and the swf is in the images folder which is in the public folder.

    Hope that made sense. In any case, all the html pages are in the public folder which is the root and the swf is in the images folder which is in the public folder.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center