CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Flash & ActionScript (http://www.codingforums.com/forumdisplay.php?f=52)
-   -   hyperlink works on local PC, not on live website (http://www.codingforums.com/showthread.php?t=241763)

SRD75 10-23-2011 08:16 AM

hyperlink works on local PC, not on live website
 
I am using a flash website template, and editing it to suit a specific project.

The animated navigation works except for one link - to the home page. All the other working links are relative, and to .html files. The home page link is relative also, but to an index.php page.

The coding is identical, and it works on a local offline webpage, (in that IE trys to find index.php in the directory, error message is:

Quote:

cannot find 'file:///c:/..../index.php' etc.
- this is okay since the index.php file is not present in the folder the offline test is saved in) but once uploaded, the link becomes dead. (the problem link is at top - the home icon, which is black online, but white offline, and works offline too)

JackieBolinsky 10-24-2011 04:53 AM

Hi there,

There may be a lot of reasons like:

Uploading web pages and all the other files (like images) in the Document root folder / directory. The web site will not load in your browser otherwise.

If the hyperlinks are not working, check if the files have indeed been uploaded… and to the correct directory on the server.
This web address can be specified in two ways- relative and absolute URL.

This is a really strange problem because Flash products support all types of hyperlinks. Our testing have never shown problems with hyperlinks. If you can refer me a link to your resulting SWF which can show us the problem, our team will immediately investigate it and give the necessary recommendations.

Thanks,
Jackie Bolinsky

SRD75 10-25-2011 12:28 PM

  • The website in question is currently in /public_html/test/
  • The URL is http://www.thetaxman.net.au/test/
  • All of the hyperlinks are relative, and all of the webpages are in this directory.
  • The .swf file itself is in /public_html/test/flash
  • However, all of the current working links are relative, and are not prefixed by ../

They are:
  • index.php (not working, but this page is present)
  • services.html (working)
  • faqs.html (working)
  • links.html (working)
  • contact.html (working)

The actionscript in the .fla file is identical for each link, except for the filename. The actionscript I have looked at is for the behaviour of the navigation button. Perhaps there is other actionscript which has disabled the first home button?

SRD75 11-02-2011 10:52 AM

Bump.

Not solveable?

[Paul Ferrie ] 11-02-2011 11:45 AM

The code below tells flash which button to disable
Code:

<param name="movie" value="flash/menu_v8.swf?button=1" />
In your movie this would be services
The code above was taken from FAQ and is the same in all your pages.
My guess is that the buttons are numbered 1 to 5
This would explain why home button is always disabled/not doing anything.

SRD75 11-02-2011 12:16 PM

Thanks for your reply Paul.

Quote:

Originally Posted by [Paul Ferrie ] (Post 1154210)
The code below tells flash which button to disable
Code:

<param name="movie" value="flash/menu_v8.swf?button=1" />
In your movie this would be services

Are you sure? The services button is working. Can it be working if it is disabled?

Quote:

Originally Posted by [Paul Ferrie ] (Post 1154210)
The code above was taken from FAQ and is the same in all your pages.
My guess is that the buttons are numbered 1 to 5
This would explain why home button is always disabled/not doing anything.

I removed the button parameter from the movie value and nothing changed. The services button still works, but the home button does not. I'm not sure if this implies the button parameter disables the button.

Cheers.

[Paul Ferrie ] 11-02-2011 12:21 PM

Can you post the fla? I will know for sure what is going on if i can see it.

SRD75 11-02-2011 12:26 PM

Sure. Here.

[Paul Ferrie ] 11-02-2011 12:43 PM

It is as i thought.
You need to change the button number in the embed code to reflect the page your on. Currently it is set to 1 on all pages. Change these to reflect there position in the menu and then you should be good.

SRD75 11-02-2011 01:00 PM

Thanks. I was using a CMS and created the CMS template from a single page of the purchased HTML template (which contained multiple pages). The HTML template obviously (in hindsight) contained seperate button parameters for the movie value in each page, which was not reflected in the CMS template.

Thank you for your help. You've solved a headache for me.

[Paul Ferrie ] 11-02-2011 01:07 PM

Quote:

Originally Posted by SRD75 (Post 1154249)
Thanks. I was using a CMS and created the CMS template from a single page of the purchased HTML template (which contained multiple pages). The HTML template obviously (in hindsight) contained seperate button parameters for the movie value in each page, which was not reflected in the CMS template.

Thank you for your help. You've solved a headache for me.

Cool, simple enough fix :)


All times are GMT +1. The time now is 05:56 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.