Swf file:What is the best way to develop swf file? - iphone

I know we can generate swf file by creating action script project in flex sdk and also using cs5 we can create swf file. I want to create swf files for running in mobile devices like android,iphone. What is the best approach to create a swf file that runs in both android and iphone. I am very new to swf technology. please guide me.
thanks.....

Flash is not supported in iOS so there is no way of showing it on iPhone or iPad.
Take a look at Google's Swiffy Project it allows SWF to HTML5 conversion, allowing the content to be displayed on iPhone.

Related

phonegap media API or HTML5 audio tag?

which is better to use for playing mp3 files in iphone application the phonegap media API or the html5 audio tag?
HTML5's tag will work with Phonegap, but your results will vary. Functions like audio.load() (assuming you're using javascript to control your HTML5 audio element) won't work. I would recommend using Phonegap's media API.
A regular HTML5 audio tag will work in a Cordova project, even when you load music from the file system, if and only if you have a content security policy.
You can create a content security policy online with this tool or study this great tutorial
Note that the Cordova default project has a CSP, while the current default Phonegap project does not.

How to embed flash files in iOS app

I have some flash files and i need to integrate those files in iPad app. i searched lot but everyone's answer is
- iOS will not support flash.
- even if you integrate flash files app store will not accept.
But my app is not for app store this is an enterprise app. Instead of integrating flash files we can do all the animation in our objective-c itself. But client is demanding to integrate flash files in iPad app. Is there any alternate solution. Please guide me.
Sure you can run Flash apps on iOS, you just have to build them using AIR:
Adobe AIR is a cross-platform runtime that enables you to use your
existing Flash/ActionScript or HTML/JavaScript development skills and
tools to build and deploy applications, games, and videos outside the
browser and on mobile devices.
Here is the specific resources page on how to build Flash ActionScript 3 apps targeting any iOS device.
The beauty of AIR is that if the code of your app is well organized, you can reuse most of it for any build being it for Android, iOS, Blackberry, or even a desktop app (windows and macosx) or the web.
Hybrid way:
Flash to html5 conversion then open HTML document using webview
Google swiffy:
Swf to HTML 5
Note:
maximum of 1 mb only be converted at present
Link:
click here
Adobe wallaby:
Fla to HTML 5
Note:
At present cs5 only supported.the lower versions have to be resaved in cs5 to convert.
Link:
click here
Native way:
Adobe air:
One could run actioscript flash content directly in ios devices.
Note:
At present you could make stand alone ios apps only you can't integrate with existing app.
Link:
click here
It is a detour only, but you could install the Photon browser and call it from your app.

Play SWF files one the iPhone

I am new to the iPhone development, I need to develop application in which I can load SWF files (shock wave file). I have done lots of research but I couldn't get it to work. How do I load it on the iPhone ? if it's not possible, what alternatives do I have ?
There is no Flash player on iOS and no other solution to play Flash in your app. However, you might want to look into Adobe AIR for iOS which is able to produce iOS apps.
The iPhone doesn't support flash.
iOS Doesn't support Flash so you won't be able to launch a swf. If you have the source for the SWF you could consider building an ios app through Flash CS5+. Also, you could try porting it to haxe, which is very similar to actionscript and should allow you to build for both Android and iOS at once.
As I know there is no such application (expect Frash, which is only available on jailbroken iPhones) which can load SWF Files on an iPhone.
The only way you can go is to convert that file in an iPhone readable format, which I can't recommend as the results are normally horrible.
Otherwise I suggest to recode the behaviour of that SWF File in Objective C or something similar to that.
There is no Flash player in iOS. Even more – it is forbidden by Apple iOS Developer Agreement to deploy them (and other technologies where you may use an app to execute another executable code of any kind (SWF, Java, AIR, etc.) on iOS devices.
You can also make your own flash player.

AS3 Packager for iPhone: Can the app download content?

I am in the stages of designing a magazine concept for a client, taking the printed version and adding animated and interactive content, it seems Flash would be the obvious choice, and something which I am reasonably skilled with.
If I build the Magazine app with Flash, will the app be able to download additional issues? if so please point to any resources on the subject if possible.
You can use the Packager for iPhone to get Flash content on an iOS device. However, you can't download compiled Flash files (.swf) to the iOS device and execute them after the app has been installed.
From the developer documentation:
Loader
In an iPhone application, you cannot
use the Loader.load() method. However,
you cannot run any ActionScript code
in SWF content loaded with the
Loader.load() method. However, you can
use assets in the SWF file (such as
movie clips, images, fonts, and sounds
in the library). You can also use the
Loader.load() method to load image
files
If you would like to use InDesign and some of the other tools that Adobe Makes, you can consider the so called Digital Publishing Suite which is a toolset that was used to make some of the iPad magazines such as Wired or Martha Stewart Living.

Flash Component in iPhone

i have few questions regarding flash components in iphone
I would like to know if a safari browser in iphone can play a flash component(swf file).
Do i need to download a plugin for safari ? If so will the plugin update the existing safari browser or will it be another standalone application which plays the swf file in the safari browser? same doubt i have with mozilla browser in iphone.
I have a swf file .Will i be able to embed that to a native application in iphone.
I saw that iphone flash application can be developed and such applications are present in app store.If so which version of adobe flash has that capability ? (cs4 or cs5)
The Flash plugin is not available on iPhone, and will certainly never be...
You might take a look at Adobe Flash CS5, which will be able to create native iPhone apps from AS code.
http://labs.adobe.com/technologies/flashcs5/appsfor_iphone/
You might be able to embed a Flash SWF into your app using Hirameki. Still not ready for market, but it plays Flash animations directly from a SWF file inside a native app.
http://flash-on-iphone.com/demo