Skip navigation
Currently Being Moderated

Converting Flash CS5.5 to HTML5

May 16, 2012 10:23 AM

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...

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points