Converting Flash CS5.5 to HTML5
I.
I'm not a programmer, so this question might sound a bit noobish.
I have this flash project with an advanced button - here's the code:
portfolio.addEventListener(MouseEvent.ROLL_OVER,btnOver);
portfolio.addEventListener(MouseEvent.ROLL_OUT,btnOut);
portfolio.addEventListener(MouseEvent.CLICK,clickPortfolioToGoToWebPage);
function btnOver(event:MouseEvent)
{
event.currentTarget.gotoAndPlay("Rollover");
}
function btnOut(event:MouseEvent)
{
event.currentTarget.gotoAndPlay("Rollout");
}
function clickPortfolioToGoToWebPage(event:MouseEvent):void
{
event.currentTarget.gotoAndPlay("ClickPortfolio");
navigateToURL(new URLRequest("http://www.fudzilla.com/"), "_blank");
}
In order to comply with the HTML5/CSS3 "new standards", I converted the swf file to HTML5 with Google Swiffy and flash-to-html5.net. The problem was that it doesn't support Actionscript 3, so it was converted as a looping movie. Question: Is it even possible to retain the Mouse events? Or do I have to make a HTML5 for the Rollover, another one for the Rollout and one for the Click? Again, I'm not a programmer. ![]()
Forgive my noobish remarks...
