Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Actionscript 3 and _self

Guest
May 10, 2012 May 10, 2012

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.

TOPICS
ActionScript
1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 10, 2012 May 10, 2012

Try posting that again

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 10, 2012 May 10, 2012

What?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 10, 2012 May 10, 2012

Visit the forum to see what your posting looks like.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 10, 2012 May 10, 2012

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 10, 2012 May 10, 2012

Oh I see.. Well it doesn't look like that on my screen, this is strange. I've reposted it here

http://forums.adobe.com/message/4394894#4394894

But to me they both look the same, and I have my screen width at much less then 1600px wide.

Thanks for your help.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 10, 2012 May 10, 2012
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines