Skip to main content
Inspiring
October 19, 2007
Question

Button with GetURL not working

  • October 19, 2007
  • 2 replies
  • 333 views
HI,
I have made a button symbol (trying to make a skip intro button) which is just unselectable text. I have made all 4 states including the hit state.

I have used the either

on (release) {
getURL("who.html", "_self");
}

or
getURL("who.html", "_self");

Nothing works when i click the link,. I know the button works because my over state happens.

I'm sure I'm missing something simple. I have done this all the time and I actually have a getURL that works but its not on a button, its just at the end of the flash.
This topic has been closed for replies.

2 replies

Inspiring
October 19, 2007
well the who.html is in the same folder and the other Geturl that actually works at the end is just who.html as well

I have also tried the full url with no luck and I just tried uploading it and testing it online and nothing.

Thanks,
Josh
Inspiring
October 20, 2007
OK, well I decided to go around the issue. Since the getURL command works at the end of the flash animation, I just had the button gotoand play the last frame when its clicked. Then it works.

I noticed that if i also try script assist to make the button work, getURl does not show up as an option to use. I wonder why.

Thanks,
Josh
clbeech
Inspiring
October 19, 2007
this is a scope issue, unless the swf file is mounted online, it wont' be able to open a relative path. If you want to test the swf from your local machine, mount the 'who.html' online and then use a fully-qualified path as in:

getURL( ' http://www.thedomain.com/who.html' , '_self');

(if in the root directory folder)