Is there any way to render HTML in ActionScript3 - FlashPlayer SWF? - actionscript-3

I already know about StageWebView and HTMLLoader, but that only works in Adobe AIR. Is there any way (maybe third party) to do the same in a SWF.
Reason:
I'm building a game in AS3 that will run on mobile devices with Adobe AIR, and there is also a web version that will run as a SWF.
The game has some links, URLs that open in a StageWebView for mobile. My problem is that the SWF has to open these URLs in a browser popup or i-frame... I don't like it :(

What you're trying to accomplish isn't possible in a SWF. However, on the web you will have access to javascript and HTML, and with that, you could replicate the functionality with an iframe that sits directly over your SWF.

Related

Is there a way to run an embed page on Haxe with Flash content enabled?

Im pretty new on FlashDevelop and Haxe and wanna know if theres a way to display a web url on Haxe window and allow flash content

Can flash website work without flashplayer?

I just create an interactive flash website and it doesnt work without flash player. Is there a code to make my website work well on any browser and without flashplayer?
Thanks :)
Bad news, if you want to run flash animation in a web page, the browser should have FlashPlayer installed and enabled.
But if it's not in a webpage, you have the possibility to convert your Flash animation in an application with Adobe AIR for desktop and mobile.
http://www.adobe.com/products/air.html
With the last Flash IDE (Animate CC), you can export your Flash animation in HTML5, to be compatible with a browser that not have Flash Player. But not support all Flash functionalities.
https://helpx.adobe.com/animate/using/creating-publishing-html5-canvas-document.html

How does Shumway convert Flash to HTML5?

Mozilla's Shumway project appears to play SWFs without requiring a Flash player to be installed:
Shumway is an HTML5 technology experiment that explores building a
faithful and efficient renderer for the SWF file format without native
code assistance.
I'm looking at the source of their racing demo and can only see a link to a SWF and no JS.
How are they displaying this SWF without any Flash plugin being used?
Shumway loads, parses and executes SWF with JS, and uses HTML5 <canvas> to render it.
You can see a bit better what's going on behind the scenes when you open the SWF in the Shumway Inspector. Direct link for the racing game: http://www.areweflashyet.com/shumway/examples/inspector/inspector.html?rfile=../racing/race.swf

Embed Adobe AIR application in html with swfobject

I've a .fla program that decompresses ZIP files using BiteArray.
In order to use this BiteArray I change the publish settings of the document in Adobe AIR.
I tried to embed this app in an HTML page as you would for a swf file, so with SWFObject, but nothing is shown, even if I run the swf locally.
There is a particular way to manage an swf in Adobe AIR?
There is no way you can embed an AIR app in a html. AIR is for desktop applications (or mobile).
But you do not need AIR to use ByteArray ...
The code you found may use the File class. This one is AIR only.
You'll have to work that around.

How to know for sure something was made in Flash?

If you right-click on a game of movie in a website and see a box with the bottoim line "About Adobe Flash Player..." does that necessarily mean that the content was made with Flash (Either Flash Pro, Flash Builder, FDT, Flash Develop)?
Does it mean that the creators for sure used AS3, or could you in thery have an html5 or union project running in flash player?
Yes, it means the content is made in Flash. If you view source for the website, contents made in flash have .swf extension.
But the creators may not have used AS3, it may be made using AS2 if older.