Jump to content


link in new window


4 replies to this topic

#1 jimmy

    Young Padawan

  • Members
  • Pip
  • 10 posts

Posted 03 August 2006 - 06:22 PM

Ok, i finnally got the swf files linking, but when i click em, it opens in a new window :P .. how can i stop this?

#2 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 03 August 2006 - 06:27 PM

Please stick to one topic it makes it so much easier to help.

Whats the code you are using to link with? Did you go for the html or actionscript approach in the end?

If you went for html there is likely to be target="_blank" or similar in the code to make it open in a new windows. Remove that :P

If not as said post your code.

#3 BigDog

    Young Padawan

  • Members
  • Pip
  • 277 posts
  • Gender:Male
  • Location:Orange County, California
  • Interests:Running, building computers, PC games and BMX and programming.

Posted 03 August 2006 - 06:50 PM

Like Matt said, stick to one topic, not 3.

Also, if you used href="site", just add target="_parent" or remove the target="_blank" if any.

#4 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 03 August 2006 - 06:55 PM

ok, look this is now 4 topics i have found

http://www.pixel2life.com/forums/index.php...mp;#entry156253

Thats the 4th. please stick to one topic.

Please dont think im getting on your case (ill leave that to the mods rofl!) but sticking to one topic would have allowed people to help easier and its only by pure luck i came accross the 4th topic which will lead me to be able to help you thus:

If you used what funkysoul posted:

on(press){
getURL("http://www.google.com","_blank");
}

Then change it to:

on(press){
getURL("http://www.google.com");
}

The same principle applies with the html answear i first gave and the flash one. _blank means open in a new (blank) window. The 2nd parameter of getURL acts just as target="" in html.

(one of the 3 things i know in flash lol - 1: this, 2: motion tween - 3: the shortcut to browser preview rofl)

Edited by .Matt, 03 August 2006 - 07:04 PM.


#5 Hayden

    P2L Jedi

  • Members
  • PipPipPip
  • 716 posts
  • Gender:Male
  • Location:Texas

Posted 03 August 2006 - 10:02 PM

on(press){
getURL("http://www.google.com","_self");
}

You should be able to do that as well. :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users