Click to See Complete Forum and Search --> : link to html page in flash


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);
}

arrielmabale
08-13-2010, 02:50 AM
Try this, hope it helps :)
http://scriptplayground.com/tutorials/as/getURL-in-Actionscript-3/

pawan143_5
08-13-2010, 05:20 AM
HI arrielmabale.

Thanks i got the solution from the link u given to me.

Thanks once again
Pawan kohli (INDIA)