Reputation: 26969
Here is the script am using to open an external html file from moviclip but it is opening in new tab. How to make it open in the same window?
function ShowDesignerhome(event:MouseEvent):void {
var targetURL:URLRequest = new URLRequest("77.html");
navigateToURL(targetURL);
Upvotes: 0
Views: 2276
Reputation: 534
Simply add a second parameter to your navigateToURL call
navigateToURL(targetURL, "_self");
Upvotes: 1
Reputation: 39456
Add "_self"
as the second argument for your call to navigateToURL()
. More information:
navigateToURL(targetURL, "_self");
Parameters
request:URLRequest
window:String (default = null)
— The browser window or HTML frame in which to display the document indicated by the request parameter. You can enter the name of a specific window or use one of the following values:"_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.
PS. Please make use of the "accept" button next to answers (this goes for answers on your current questions).
Upvotes: 1