Skip navigation
Currently Being Moderated

Actionscript 3 and _self links

May 10, 2012 11:53 AM

Tags: #actionscript_3 #_self #html_target #_blank

Hi Guys,


I'm trying to get a page to load in the same tab, instead of creating a new tab (like HTML target=""_self" instead of _blank)


I've tried a few different things I've found on different forums, nothign seems to be working though


This is what I'm trying..


function gotoManitoba(event:MouseEvent):void


var targetURL:URLRequest = new URLRequest("");

navigateToURL(targetURL, "_self");


MB.addEventListener(MouseEvent.CLICK, gotoManitoba);


It doesn't return an error, but the link doesn't work at all as long as the "_self" is in there.

  • Currently Being Moderated
    May 10, 2012 1:03 PM   in reply to Konggraphics

    Are you testing with a browser?  Are you testing on a server?  What you have done is correct, but sometimes testing needs to involve the browser/server.

    Mark as:
  • Currently Being Moderated
    May 10, 2012 2:40 PM   in reply to Konggraphics

    Try clearing your cache - just in case it is still pulling up an old version that didn't have the "_self" in it

    Mark as:
  • Currently Being Moderated
    May 18, 2012 11:56 AM   in reply to Konggraphics

    I'm running into the same problem. I have been trying to figure it out for the last three days, and I still haven't come across a solution. I am doing everything correct while watching instruction videos, but again, the _self tag doesn't work and acts as if it's nonclickable, where as _blank works to open the link in a new tab. But I am trying to open the flash button in the same tab.

    If anyone has a solution to this problem, I would greatly appreciate it.

    I have googled and searched through multiple forums, but all seem to say the same thing, and I still haven't figured out how to get it to work.


    This is the code snippet I am using:


    inv_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);



    function fl_ClickToGoToWebPage(event:MouseEvent):void


              navigateToURL(new URLRequest(""), "_self");




    _blank tag works, but not _self.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points