Skip to main content
rickg1949
Known Participant
May 22, 2018
Answered

Export html5 canvas as AIR app for desktop

  • May 22, 2018
  • 1 reply
  • 582 views

I have a perfect html5 canvas video player app created using html5 canvas with perfect code and actions.  Works perfectly in a browser.

When I export it as an AIR for desktop app all actions are commented out and video player objects are gone.  Do I have to recode everything using AC3? Then can I still use the JS listener actions for returning to menu when movies end? Am I better off just using this in a browser?

Sorry for being a newbie, appreciate the guidance.  rg

This topic has been closed for replies.
Correct answer Colin Holgate

AIR apps have StageWebView. You could make a shell app that just places a StageWebView, and then sets it source to be your already working project.

The documentation has some examples. They are AS3, you'll have to learn at least a little bit to get it all going:

StageWebView - Adobe ActionScript® 3 (AS3 ) API Reference

If you're doing something which is to be a kiosk installation, just running your project in Chrome in its full screen mode might be simpler.

1 reply

Colin Holgate
Colin HolgateCorrect answer
Inspiring
May 22, 2018

AIR apps have StageWebView. You could make a shell app that just places a StageWebView, and then sets it source to be your already working project.

The documentation has some examples. They are AS3, you'll have to learn at least a little bit to get it all going:

StageWebView - Adobe ActionScript® 3 (AS3 ) API Reference

If you're doing something which is to be a kiosk installation, just running your project in Chrome in its full screen mode might be simpler.

rickg1949
rickg1949Author
Known Participant
May 22, 2018

Colin,

Thanks.  I think your final suggestion is the best since it is working.  It's a large touch-screen video player and works in Firefox.  We are just trying to eliminate the possibility of users holding finger on screen too long and bringing up like a "right-click" menu.

I think I will try to get my IT person to work more with the hardware and Chrome to kill that problem.

thanks for the confidence boost.  rg

Colin Holgate
Inspiring
May 22, 2018

Your IT guy may know about this already, but there are ways to disable the right click:

Disable mouse right click, cut, copy and paste using jQuery - CodexWorld