This is a discussion on "Hyperlink buttons" within the Flash & Multimedia Forum section. This forum, and the thread "Hyperlink buttons are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Hyperlink buttons
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Hyperlink buttons
I'm building a Flash file at work and I'm having a problem with hyperlink buttons. I have 16 buttons on the same layer that all point to different pages within the same website.
In the actionscript for each button, I'm using this code: on(release) { getURL(http://www.mywebpage.com/page1, "_blank"); } Then for the next: on(release) { getURL(http://www.mywebpage.com/page2, "_blank"); } Etc, etc. The problem is when I publish the file, it links all the buttons to the same 'root' of the website. I.E. http://www.mywebpage.com not page one, page two etc. It does this even though I have an absolute url assigned to each button. Anybody have any idea what I've screwed up? Do buttons have to be on separate layers? Thanks |
|
|
|
|||
|
Re: Hyperlink buttons
Well, change the "blank" part to _self. That might have something to do with it? But I doubt it.
And no, the buttons do not have to be on seperate layers. I don't know why it would be doing this, do those pages exist? Try adding the extension to the type of page that they are, .htm, .php etc.. |
|
|||
|
Re: Hyperlink buttons
Thanks for the help. I figured it out, and as usual it was just a stupid mistake.
When I built my buttons, I put in the home page URL in all of them until I could go back and put in the specific page I wanted. What I didn't realize is that if you change the URL in the first frame of your movie, you have to redo the whole timeline for the button layer or it will just go back to the code you had in originally in the last frame of the timeline. Stupid. I was just too brain dead last night to see the obvious. |
![]() |
| Tags |
| button hyperlink actionscript |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hyperlink Rollovers | crackafaza | Web Page Design | 3 | Aug 24th, 2007 11:43 |
| help with fwd/backwrd buttons affecting other buttons | typeofdoug | Flash & Multimedia Forum | 5 | Feb 4th, 2007 03:48 |
| Javascript Hyperlink | kato77 | JavaScript Forum | 1 | Feb 11th, 2006 12:14 |
| image as hyperlink question | bklcomputing | Web Page Design | 2 | May 20th, 2005 06:56 |