HTML5 Canvas button code snips are not working...
I have been using animate since it was flash 4. I've built a ton of apps, movies, modules, etc using it w/ AS1,2 &3 until Apple killed it. Since then I have only used flash via AS3 for certain desktop style projects or for video transitition because I like the simplicity of it for video.
I am in the process of building something new to relive the old flash days by creating a book meets games meet movies experience. I decided yo go with HTML5 as it can run in a browser for any device which for my proof of concept I need this. I am thinking I may have just wasted 2 weeks working on this for nothing because the Button logic is not working at all no matter what. At first I thought that the html 5 canvas logic for button code would work in the swf, but I was wring and breaks the swf file. So, I started to publish it as an html 5 canvas page and view in a browser... I still can't get these buttons to work even using the Animate Code Snippets!!! In the past I found that sometimes starting over with a flash file would work without changing anything.
I spun up a new fresh canvas project to test the buttins again... sure enough the buttons litterally do nothing. I have used movie clips, symbols, and actual buttons with a single element with the same results. I hope I can use movie clips because I want to animate my buttons without using a movie clip inside a button.
Here's the code snippet Animate provided, and this is located on the frame where the button loads on the screen as this is where Animate put it. Yes, the button has an instance name, and I even tried using a frame label instead of the frame #249. I use to always put my button calls on frame 1, does this matter today?
-----
this.skipIntro_btn.addEventListener("click", fl_ClickToGoToAndPlayFromFrame_2.bind(this));
function fl_ClickToGoToAndPlayFromFrame_2()
{
this.gotoAndPlay(249);
alert("Mouse clicked");
}
------
Any help would be greatly appreciated as I'm not familar with JS enough as I skipped it for JQuery for my html/css work.
Thanks.
E
