Hello all,
I am currently working on a website that has a flash animation that includes a button. The button directs the user who clicks the button to a new web page. I am able to get the button to work within the .swf using
button_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_4);
function fl_ClickToGoToWebPage_4(event:MouseEvent):void
{
navigateToURL(new URLRequest(“http://www.cnn.com”), “_blank”);
}
The problem comes when I export the file out as an .html document using Toolkit for CreateJS… The button does not work. It is my understanding that if I included Javascript within the AS3 panel then it would work.
Does anyone know the Javascript equivalent to the above AS3?
Any help would be great!
Thanks,