I found a solution!! Flash can translate actionscript3 into html by using a program that Google put out called Swiffy. You'll need to update adobe extension manager. I'll provide some links for you if you want to know how this works.
Adobe extension manager:
Youtube video on how to use Swiffy:
It works and I didn't even have to figure out how to code the js previous and next buttons that I was having trouble with; I simply used actionscript3.
Swiffy is a wonderful solution, only its export cannot be played on old versions of android OS (3 and below).