You can write an action-script code and the library translate for work with html5 canvas. The library is still in beta so still has major limitations. ATTENTION! this project its stopped at 2012