Avatar of DJMgraphix
DJMgraphix
Flag for United States of America

asked on 

Flash Button Redirect AS2

Hi,
I have a fla file that I recently changed over to actionscript 2.  I used to have it in actionscript 3 format and the redirect code I had worked fine.

Now that I'm using actionscript 2, what code can I type into each button to redirect them to a different URL in the same window/tab.

below you will see the code I was using in actionscript 3.  The code below now gives me errors in AS2

Thanks in advance!
auto_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void 
{
var request:URLRequest = new
URLRequest("http://www.audioobsessions.com/autoindex.html");
navigateToURL(request, '_self');
}

Open in new window

Adobe Flash

Avatar of undefined
Last Comment
DJMgraphix

8/22/2022 - Mon