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:
http://blogs.adobe.com/cssdk/2012/08/adobe-extension-manager-cs6-6-0-2 -update-out-now.html
Google Swiffy:
https://www.google.com/doubleclick/studio/swiffy/
Youtube video on how to use Swiffy:
https://www.youtube.com/watch?v=Vg0jxeAJyjA
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.