Vinicius Saeta
Vinicius Saeta

Reputation: 183

Convert flex web project to flex mobile project

I have a flex web project and I want to convert it into flex mobile project. What is the best way to do it. I know this is not recommended, however it is possible?

Upvotes: 1

Views: 1537

Answers (2)

JeffryHouser
JeffryHouser

Reputation: 39408

Generally, because of screen size and dpi issues, using the same code will not work.

In Flash Builder, you cannot convert a web project to a mobile project.

However, in theory you can use the command line compiler tools to compile your web project code to an APK or IPA or whatever Blackberry Playbook uses. You may have to add the libraries manually, such as SWC with all the MX libraries.

You could also create a library project, and move as much of your code as possible into the library project. From there you can create a "web project" and a "mobile project" that share the same code/libraries.

Upvotes: 1

Mansuro
Mansuro

Reputation: 4627

In Flash builder,

  1. start a new mobile project
  2. copy the code to your AIR project. There should be no problem there since AS/mxml code is the same, except for application files where you need to change the root tag from Application to MobileApplication

Upvotes: 0

Related Questions