getURL Script error

  • crankytoad
  • Born
  • Born
  • No Avatar
  • Joined: Oct 08, 2006
  • Posts: 1
  • Status: Offline

Post October 8th, 2006, 4:52 am

I've got a problem with my actionscript. I'm amateur at best with actionscript, and I can't get the buttons on my page to link properly.

I know that:

Code: [ Select ]
on (release) {
    getURL("http://www.google.co.uk", "_blank");
}
  1. on (release) {
  2.     getURL("http://www.google.co.uk", "_blank");
  3. }


Opens the target in a new window, but I want the buttons to link in the same window. I've tried '_parent', '_self' and for the hell of it, '_top', but the last two don't work when I try and '_parent' acts roughly the same as '_blank' (obviously)

Any help would be appreciated.
Thanks :D
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 8th, 2006, 4:52 am

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post October 9th, 2006, 12:52 am

"_self" should do it, as long as you publish the swf (F12) and then you load in your browser the resulted html.
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 78 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.