Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-23-2011, 08:16 AM   PM User | #1
SRD75
Regular Coder

 
Join Date: Sep 2011
Posts: 121
Thanks: 23
Thanked 0 Times in 0 Posts
SRD75 is an unknown quantity at this point
Thumbs down 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)
SRD75 is offline   Reply With Quote
Old 10-24-2011, 04:53 AM   PM User | #2
JackieBolinsky
New Coder

 
Join Date: Oct 2011
Location: New york
Posts: 14
Thanks: 2
Thanked 0 Times in 0 Posts
JackieBolinsky is an unknown quantity at this point
Post

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

Last edited by JackieBolinsky; 10-24-2011 at 05:03 AM.. Reason: My name
JackieBolinsky is offline   Reply With Quote
Old 10-25-2011, 12:28 PM   PM User | #3
SRD75
Regular Coder

 
Join Date: Sep 2011
Posts: 121
Thanks: 23
Thanked 0 Times in 0 Posts
SRD75 is an unknown quantity at this point
  • 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 is offline   Reply With Quote
Old 11-02-2011, 10:52 AM   PM User | #4
SRD75
Regular Coder

 
Join Date: Sep 2011
Posts: 121
Thanks: 23
Thanked 0 Times in 0 Posts
SRD75 is an unknown quantity at this point
Bump.

Not solveable?
SRD75 is offline   Reply With Quote
Old 11-02-2011, 11:45 AM   PM User | #5
[Paul Ferrie ]
Regular Coder

 
Join Date: Nov 2009
Location: Scotland / Glasgow
Posts: 184
Thanks: 1
Thanked 19 Times in 19 Posts
[Paul Ferrie ] can only hope to improve
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.
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- Site - Blog - Glasgow Flasher
[Paul Ferrie ] is offline   Reply With Quote
Old 11-02-2011, 12:16 PM   PM User | #6
SRD75
Regular Coder

 
Join Date: Sep 2011
Posts: 121
Thanks: 23
Thanked 0 Times in 0 Posts
SRD75 is an unknown quantity at this point
Thanks for your reply Paul.

Quote:
Originally Posted by [Paul Ferrie ] View Post
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 ] View Post
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.
SRD75 is offline   Reply With Quote
Old 11-02-2011, 12:21 PM   PM User | #7
[Paul Ferrie ]
Regular Coder

 
Join Date: Nov 2009
Location: Scotland / Glasgow
Posts: 184
Thanks: 1
Thanked 19 Times in 19 Posts
[Paul Ferrie ] can only hope to improve
Can you post the fla? I will know for sure what is going on if i can see it.
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- Site - Blog - Glasgow Flasher
[Paul Ferrie ] is offline   Reply With Quote
Old 11-02-2011, 12:26 PM   PM User | #8
SRD75
Regular Coder

 
Join Date: Sep 2011
Posts: 121
Thanks: 23
Thanked 0 Times in 0 Posts
SRD75 is an unknown quantity at this point
Sure. Here.
SRD75 is offline   Reply With Quote
Old 11-02-2011, 12:43 PM   PM User | #9
[Paul Ferrie ]
Regular Coder

 
Join Date: Nov 2009
Location: Scotland / Glasgow
Posts: 184
Thanks: 1
Thanked 19 Times in 19 Posts
[Paul Ferrie ] can only hope to improve
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.
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- Site - Blog - Glasgow Flasher
[Paul Ferrie ] is offline   Reply With Quote
Users who have thanked [Paul Ferrie ] for this post:
SRD75 (11-02-2011)
Old 11-02-2011, 01:00 PM   PM User | #10
SRD75
Regular Coder

 
Join Date: Sep 2011
Posts: 121
Thanks: 23
Thanked 0 Times in 0 Posts
SRD75 is an unknown quantity at this point
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.
SRD75 is offline   Reply With Quote
Old 11-02-2011, 01:07 PM   PM User | #11
[Paul Ferrie ]
Regular Coder

 
Join Date: Nov 2009
Location: Scotland / Glasgow
Posts: 184
Thanks: 1
Thanked 19 Times in 19 Posts
[Paul Ferrie ] can only hope to improve
Quote:
Originally Posted by SRD75 View Post
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
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- Site - Blog - Glasgow Flasher
[Paul Ferrie ] is offline   Reply With Quote
Reply

Bookmarks

Tags
hyperlink

Jump To Top of Thread


Thread Tools
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

Forum Jump


All times are GMT +1. The time now is 01:11 PM.


Advertisement
Log in to turn off these ads.