What code to navigate to page without having to open a new page?

Hello, I have a flash button embedded in a css/HTML page that I want to use to navigate to a new page without having to open a new window. Here is the code I use in the SWF file that I got the adobe tv tutorial:

http://TV.Adobe.com/watch/ADC-presents/buttons-and-interactivity-in-Flash-CS4

Here is the test page that I joined the flash button: http://ianmartinphotography.com/testers/index-Flash.html

The 'flash' button is the button "about Ian" at the top left. I want to like traditional bearings navigation on the page. (I'm working my way until the button built-in flash melted in place, that's why I use flash.)

// 1. Event handler function

function clickHandler (Event: MouseEvent): void
{
trace ("Click!");
navigateToURL (new URLRequest ("http://ianmartinphotography.com/about.html"));
}
// 2. Assign the listener
about_btn.addEventListener (MouseEvent.CLICK, clickHandler);

I just want to go to another page, not to open a new window. How can I change this code to do this? Thank you!

-Ian

If you are looking for navigate ToURL function in the help documents, it lists all the window options available.  For your case, you can use:

navigateToURL (new URLRequest ("http://ianmartinphotography.com/about.html"), "_self");

Tags: Adobe Animate

Similar Questions

Maybe you are looking for

  • Show/hide multiple Button controls increment/decrement is AWOL

    As far as I can see (LV 2013), there is a missing feature in LabVIEW, whereby, when you select multiple digital controls, you can't show/hide their increment/decrement buttons: Here, I have 3 DBL, 1 I32 and 1 enum, but that goes for any combination o

  • Questions on the computer stop, must try to stop twice

    Original title: twice to close... Windows xp-Dell Latitude E6500... when I try to shut down or restart, I have to try twice before his arrest... What's wrong?

  • Issues related to the parental control EA6900

    I have my setup of parental control to block access from 22:00 to 09:00 however, it does not automatically access when the time changes to time 'unlocked '. Curiously, it still shows the message 'parental control block. I have to disable the parental

  • Impossible to turn on the firewall

    I can't turn on my firewall. This is a new number im having. When I chose the option to turn on/off I get a local saying "firewall Windows settings cannot be displayed because the associated service is not running. You want to start the Windows Firew

  • Should what message I to listen to know when a page is in jumps from the navigation pane

    Hello Is there a signal on the level of the page that will tell me when a page is in jumps from the navigation pane.  I wish I could stop some it is made on the page when he jumped and no longer in background processing mode. Where would I best handl