FORUMS: list search recent posts

Open URL link in a same window

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Anu Gamage
Open URL link in a same window
on Mar 6, 2010 at 11:36:09 am

Im having a problem with opening URL in the same window it self.

eg: if i click on the button i need to go to http://www.google.com, and when i click on the other button, i need to go to http://www.adobe.com , but it should open in the page that http://www.google.com.

im using this script. but it still keep opening a separate window.

please help me to fix this.


stress_btn.addEventListener(MouseEvent.CLICK, register);

function register(Event:MouseEvent):void
{
navigateToURL( new URLRequest("http://www.google.com"), "_self");
}


drugs_btn.addEventListener(MouseEvent.CLICK, register2);

function register2(Event:MouseEvent):void
{
navigateToURL( new URLRequest("http://www.youtube.com"), "_self");
}


Return to posts index

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