Skip navigation
Konggraphics
Currently Being Moderated

Actionscript 3 and _self

May 10, 2012 10:51 AM

Tags: #html #actionscript3

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("http://mydomain.com/flash/?p=44");

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.

 
Replies
  • Currently Being Moderated
    May 10, 2012 9:15 AM   in reply to Konggraphics

    Try posting that again

     
    |
    Mark as:
  • Currently Being Moderated
    May 10, 2012 10:29 AM   in reply to Konggraphics

    Visit the forum to see what your posting looks like.

     
    |
    Mark as:
  • Currently Being Moderated
    May 10, 2012 11:33 AM   in reply to Konggraphics

    The problem with your posting is most probably not of your doing, it appears to be another fluke of the currently errant forums... below is an image of what your posting looked like until I spread the window out to about 1600 pixels wide.

     

    As far as your problem using "_self" goes, are you testing on a server?  What you show is the correct way to implement it.

     

    Here's why I was saying to repost...

     

    U2.jpg

     
    |
    Mark as:
  • Currently Being Moderated
    May 10, 2012 1:02 PM   in reply to Konggraphics

    By the time I had finished replying to you, which was shortly after I brought it to the attention of those who are fiddling with the forums, I noticed the issue had gone away.

     
    |
    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