1 person found this helpful
You should be able to add the mobilecomponents.swc to a desktop Flex AIR project. I've done it before with no problems, do you get specific errors? It's important to note that many of the mobile features require AIR apis so you won't be able to use View/ViewNavigator and other features in a desktop web application that runs in the Flash Player.
Hi, thanks for the reply!
Here is the error I'm getting:
ArgumentError: Undefined state 'landscape'.
at mx.core::UIComponent/getState()[E:\dev\hero_private\frameworks\projects\framework\src\mx\ core\UIComponent.as:10596]
The error seems to be related to the theme, but I'm not quite sure what the best way to fix it would be. Is there an underlying flaw in my project set up, or do I need to set some kind of mobile theme in my Flex air project?
The main project includes a number of internal library projects, and each one has mobilecomponents.swc set to merged in code. I also need to be able to build the workspace as part of an automated build, so it's important I understand what the underlying issue is with the project configuration within FB.
I am using Flash Builder 4.5 Premium.
Any aditional insite you can give me will be greatly appriciated.
I found frameworks/themes/Mobile/mobile.swc and I imported it using the theme selector in the project config. The project now runs without errors.
Just any FYI, when I reopen the theme selection dialog again, the mobile theme is not listed. I will file a bug report if I have time later today.
Thanks for getting me in the right direction!
Thanks a lot! I figured this out before but totally forgot about setting the theme to mobile in the air app!