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.
Related
I have Some sample fla Content which I am not able to convert into HTML5 with interactions
What I tried is
Google Swiffy --> Gives interactions [not full] but no sound. Issue is it works for content less than 1 MB
Toolkit for CreateJs --> Initially I got jsx errors but I cleared them by removing Special Characters in element names. But non of the case I got interactivity [Means I was not able to use my Mouse events or clicks
HTML5 Canvas in Flash Pro CC --> even here I got same above result.
Did I am missing something ??
You didn't really miss anything. Flash's HTML conversions do not convert AS3 to JS (that would be nice if it did). In this case you have to write the interaction using JS.
Sounds like you're using Google's online SWF-to-Swiffy converter, which has a 1MB limit. There's a better way, if you have Flash Pro CS5 or CS6 and the original FLA files. Try this:
download Google's swiffy generator and instal it in your Flash Pro (read instructions carefully)
open your FLAs and find the sounds that don't play in the swiffy file - most likely they are set as streaming sound (streaming audio is not supported by Swiffy), so change them to event sound
BUT, looped event sounds exported to Swiffy only play once (they don't loop), so if you need them, export the sound from the FLA (as .wav), and copy and paste it as many times as necessary in a new .wav file and re-import
All done? Now export from Flash Pro using Command -> Export as HTML5 (swiffy)
NB: Google's Swiffy extension for Flash Pro won't work with Creative Cloud, and on mobiles there'll be NO AUDIO whatever you do - sound only seems to work on desktop PCs, owing to mobile restrictions on unsolicited big-file preloads.
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
I'm looking for a way to disable Flash Player and security warnings (e.g. ssl warnings) in HTML (or HTMLLoader) component without html modifications, just disable Flash natively.
Maybe WebKit inside Adobe Air has accessible low level API or it is possible to replace WebKit.dll here (C:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0) with another version without Flash. As I know, Adobe compiles that .dll (Apollo WebKit).
Thanks.
No way to tune webkit inside Adobe Air. Only solution is to preload html, then change like replace(/<object([^>]+)?>(.*?)<\/object>/gi, '') and load to htmlloader.
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.
What am I missing here because my video doesn't have any controls? Is there a special parameter I need or do I need to encode the SWF file in a special way? I just used a MPEG to SWF converter provided by Blaze Media Pro.
Wow. I was thinking this was much easier than it is. In order to get playback controls, you needs to either use some boilerplate Flash code to wrap your Flash movie or you need to script it out in ActionScript. Basially, there is no toggle or anything to just turn controls on for a SWF movie. You'll want to look into some sort of the Flash editor/IDE to build controls into a .fla file.
Try FlowPlayer.
Flowplayer is an Open Source video player for your website.
For site owners, developers, hobbyists, businesses and programmers.