Jump to content


Photo

Linking a button


  • Please log in to reply
3 replies to this topic

#1 Hooch

Hooch

    Young Padawan

  • Members
  • Pip
  • 158 posts
  • Location:Brockville, Ontario

Posted 14 July 2005 - 08:08 PM

Hello all. Great site here.
I was hoping to find some help with action script.
Through good ole Google, I found the answer to my problem, but it's not 100% what I want. I have a button, that links to the page I want. Thing is, it brings up another browser. I would prefer it to open in the same window.
Here's my code
SH_But.onRelease = function(){
    getURL("http://www.blackdevilsbrigade.com", "_blank");
};
Thanks for any help

#2 ludwigw

ludwigw

    P2L Jedi

  • Members
  • PipPipPip
  • 823 posts
  • Gender:Male
  • Interests:Designer at Lee ter Wal.

Posted 14 July 2005 - 10:08 PM

SH_But.onRelease = function(){
   getURL("http://www.blackdevilsbrigade.com", "_parent");
};


I believe that is the code needed ;)

#3 Av-

Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,972 posts
  • Gender:Male
  • Location:10 ft. below sea level

Posted 15 July 2005 - 05:12 AM

or just remove that piece ;)

SH_But.onRelease = function(){
  getURL("http://www.blackdevilsbrigade.com");
};


#4 Hooch

Hooch

    Young Padawan

  • Members
  • Pip
  • 158 posts
  • Location:Brockville, Ontario

Posted 15 July 2005 - 08:14 AM

Ok man, thank you.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users