FORUMS: list search recent posts

How do I make button links open url in same browser window?

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Izzy Doon
How do I make button links open url in same browser window?
on Apr 13, 2010 at 3:58:54 pm

Hello,

I am currently building a flash panel with buttons that link to various parts of the website. At the moment all the links work but the pages all open in seperate browser windows. How can I ensure they will open in the current window?

Below is the code I am using (I have substituted the actual url for http://url.com for privacy):

concepts3d.addEventListener(MouseEvent.CLICK, goWhere1)
function goWhere1 (evt) {
var url = "http://url.com"
navigateToURL(new URLRequest(url))
}

Thanks so much for your help!
Izzy


Return to posts index

Adam Ashby
Re: How do I make button links open url in same browser window?
on Apr 13, 2010 at 6:47:40 pm

navigateToURL(new URLRequest(url), "_self");

Adam Ashby
mutli-media artist
http://www.adamashby.com


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]