PDA

View Full Version : How do i open the URL in the same window?


Ashveer M
08-07-2009, 01:19 PM
stop();
stop();

import flash.events.MouseEvent;

var getpage:URLRequest = new URLRequest("http://www.flyingantserver.co.za/home.html");


//Entrance video get URl\\

button.addEventListener(MouseEvent.CLICK,rClick);
button.buttonMode = true;


function rClick(event:MouseEvent):void {
navigateToURL(getpage);
}

theactionscripter
08-07-2009, 01:31 PM
http://theactionscripter.com/2009/05/30/open-url-in-actionscript-3.aspx

kdittyr
08-07-2009, 01:36 PM
click to read about navigateToURL (http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/net/package.html#navigateToURL%28%29)
(the above link is not a slam, rather just a link to information, though the part I am talking about is quoted below)

* "_self" specifies the current frame in the current window.
* "_blank" specifies a new window.
* "_parent" specifies the parent of the current frame.
* "_top" specifies the top-level frame in the current window.

stop();
stop();

import flash.events.MouseEvent;

var getpage:URLRequest = new URLRequest("http://www.flyingantserver.co.za/home.html");


//Entrance video get URl\\
button.addEventListener(MouseEvent.CLICK,rClick);
button.buttonMode = true;


function rClick(event:MouseEvent):void {
navigateToURL(getpage, "_self");
}