pawan143_5
08-13-2010, 02:22 AM
Hi friends,
I have a button in flash file linked to html page which opens in a new window
but i want when i click on it. it should open in the same window and i want to do it using as3
below is the code i wrote
enter_btn.addEventListener(MouseEvent.CLICK, goIndex);
function goIndex(event:MouseEvent):void
{
var url:URLRequest = new URLRequest("about.html");
navigateToURL(url);
}
I have a button in flash file linked to html page which opens in a new window
but i want when i click on it. it should open in the same window and i want to do it using as3
below is the code i wrote
enter_btn.addEventListener(MouseEvent.CLICK, goIndex);
function goIndex(event:MouseEvent):void
{
var url:URLRequest = new URLRequest("about.html");
navigateToURL(url);
}