1 Reply Latest reply on May 9, 2010 1:25 PM by Ned Murphy

    Button URL Windows

    dwcs4novice

      I would like to use a Flash CS4 button to navigate to another page on my web site that doesn't open a 2nd window. As an example, when the Action Script 3.0 (below) is embedded as an SWF file within the html, a new window opens in addtion to the parent window that contains the embedded SWF file button. Is there way to use a button as part of an embedded Flash SWF file within the html that will close the existing window and replace it with the new target window?  I would like the button to work the same way an html hyperlink link with the _self property. I do not want 2 windows to be open at the same time.

       

      Thanks,

       

      K

       

      // basic button  navigation timeline control

       

      GoogleBtn.addEventListener(MouseEvent.CLICK, clickHandler, false, 0, true);

      function clickHandler(event:MouseEvent):void
      {
        navigateToURL(new URLRequest("http://www.google.com/"))

      }