Skip to main content
Participant
February 16, 2020
Question

How to convert SWF file to HTML5?

  • February 16, 2020
  • 1 reply
  • 6257 views

Hello! I am trying to convert swf file in Adobe Animate CC, but the swf file does not open in this program. Is it possible to convert a swf file to HTML5? Thanks!

This topic has been closed for replies.

1 reply

JoãoCésar17023019
Community Expert
Community Expert
February 16, 2020

Hi.

 

No, you cannot convert SWF to HTML using Animate. Well, at least not directly and easily like we would do in a video file conversion.

 

Ideally, you need to have the source FLA that generated the SWF or you can also search for a good SWF decompiler that will try to create a FLA from the SWF. But usually this process is not perfect.

 

Then, you can use the command File > Convert To > HTML5 Canvas to convert the graphical scructure to the HTML5 mode. But all coding will need to be rewritten from scratch. Also, some features from ActionScript documents are not supported in HTML5 Canvas documents, like multiframe symbols in masks and most of blending modes.

 

To sum it all up: convert SWF to HTML5 is not as simple as converting a video file from .mov to .mp4, for example.

 

Even if some tool out there claims to do this (SWF to HTML5) then probably the conversion will have some issues. The Flash Player and Adobe/Harman AIR worlds are very different from the browsers world.

 

Please let us know if you have any further questions.

 

 

Regards,

JC

Alex70mAuthor
Participant
February 16, 2020

Thanks for your reply. Unfortunately, the video file is not suitable for me because I want to convert a small flash game (swf file less than 100 kB).

JoãoCésar17023019
Community Expert
Community Expert
February 17, 2020

Hi again.

 

You misunderstood my comment. The video part was just a comparison I did. Please read again and if you still have any further questions, please let us know.