Skip to main content
Known Participant
May 16, 2012
Question

Converting Flash CS5.5 to HTML5

  • May 16, 2012
  • 3 replies
  • 3566 views

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

This topic has been closed for replies.

3 replies

Participant
November 27, 2012

yes, we know that google Swiffy currently supports a subset of SWF 8 and ActionScript 2.0.  so sometimes we need another tool to do the work that swiffy couldn't work out. maybe you could try this swf to html5 movie maker, www.html5-movie-maker.com/swf-to-html5-movie-converter/

May 17, 2012

As3 not not support  to convert html 5 when you having the external as.is much better create the code in as2 and convert it in to html5 i hope its work

Ned Murphy
Legend
May 16, 2012

You should take your question over to the Dreamweaver forum if it asking how to work with HTML5.  HTML5 by itself cannot reproduce Flash designs... the burden is moreso on javascript and CSS to make that happen.

http://forums.adobe.com/community/dreamweaver/dreamweaver_general?view=discussions

pmfr01Author
Known Participant
May 16, 2012

Thanx.

Posting in Dreamweaver forum...