This question was answered several times. You could have serach on the forum ;-) (for example http://forums.adobe.com/thread/851093?tstart=90)
By the way, the iOS support for flex project will be available for the next release of Flash Builder in June. For the moment, only action script project are supported for iOS.
looks like FB 4.5 has support for Flex/iOS now (since June :)), but I still have some issues.
a) my AIR app is using a lot of components (mx.controls.Alert, mx.controls.Button...Canvas, pretty much everything under mx.controls.*) which do not want to compile under iOS, looks like iOS application do not support all regular FLEX/AIR components that will work for a Desktop AIR application, am I right, ir I am just missing something ?
b) is it possible at all to convert my working desktop air app to run on iPad 2 ?
thank you very much.
you can only use spark visual components in a mobile app
(except for mx:charts)
I've also been trying to convert an old project (Flex 4) to mobile. I made sure it was compatible with 4.5 first but I can't seem to find how you're supposed to convert an Air app to Mobile...it's pretty simple to go from web to AIR, could you tell me what you did to go from an AIR project to a mobile project?
There is no workflow for converting an AIR project into a mobile project within Builder. You'll have to create a new project (File > New > Flex Mobile Project) and copy your assets/code into there manually.
even this doesn't help, I still have those unsuported components from mx package,
mx components are not supported and so not included by default. You can add them back into your project by adding the MX swc to your library path.
I already tried this, when I compile the iOS project everything under mx package is ignored, they do not appear on the application.
As he said, mx components are not supported......
Change them to spark components...
There ist no easy way to simply convert a desktop project into a mobile project (even if you manage to include you mx components).
also the spark components are incomplete and only a view of them are optimized (performance, gestures etc.) for mobile use.
Just for now the only way is to analyse you current project and try to strip it down by using only the few optimized components.
for a complex application this is nearly impossible because there are no working substitutes for some of the components (i.e. datagrid).
you either have to wait for more optimized components or you have to redesign your whole project.