Skip to main content
Participant
May 25, 2011
Answered

Help with linking to a web page within same browser window

  • May 25, 2011
  • 1 reply
  • 373 views

I just upgraded my Flash MX to CS5.5 and am completely stumped at what would appear to be the most basic of functions.

I have a small Flash movie that is embedded on a site. At the end of the movie, there is a call to action to click to another page on that site. However, it appears the only action in the Code Snippets panel is for an action that opens a new browser window. I miss the basic actions panel! Am I missing something here? How do I accomplish what I need to? I tried changing the code to "_self" instead of "_blank" but that doesn't work

Here's the code:

button_5.addEventListener(MouseEvent.CLICK,fl_ClickToGoToWebPage_9);

function fl_ClickToGoToWebPage_9(event:MouseEvent):void

{

    navigateToURL(new URLRequest("purchase.html"), "_blank");

}

This topic has been closed for replies.
Correct answer Ned Murphy

Change it to _self and test on a server.

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
May 25, 2011

Change it to _self and test on a server.

hlniemannAuthor
Participant
May 25, 2011

You know, I tried that twice, and it didn't work...now it worked. Go figure

Must have had something else wrong in the code.

Thanks!

Ned Murphy
Legend
May 25, 2011

You're welcome