0
votes

I'm currently developing an Adobe Air application, using Adobe Flash CC 2005, Flash Builder 4.7, and ActionScript 3.

I notice that the UI Components like the List Component don't scroll up or down with finger on mobile devices.

If I'm understanding right, the Flex Framework has components like a List that support mobile.

Is it possible to integrate Flex Components to the existing Adobe Air project? If so, how?

4

4 Answers

2
votes

Use feathers instead.. it's similar to flex.

http://feathersui.com/

0
votes

I don't think so. You can wrap Flash Classes for use in Flex, but Flex components depend on the Flex Framework, which is contradictory with the timeline and the way Flash gets used in Flash. I believe that Air will generate those events when you publish your project for Air, so you should be able to add the functionality by listening for the events yourself and updating the scroll position. Good luck--the Flash component code isn't the easiest in the world to work with. You might be better off writing your own implementation so you know what's in it.

0
votes

To give a little more insights on top of the answers already given. Yes it's possible but it's probably not worth the trouble because of the hacky way this must be done and the potential troubles this will bring. As said to one answer you should probably create your own specific components or try to find some in a custom library like MadComponents or others.

2 possible ways:

  1. You can include all relevant Flex .swc in your project and then try for each component needed to instantiate yourself those components and follow strictly the Flex object instantiation workflow. This can be easy (Button) to very difficult depending on the component.

  2. Create the needed component in a Flex project. Export the resulting .swf. Load that .swf in your AIR project (can be difficult in Ios). Access objects within the loaded .swf and create clones or use those objects directly in your app. This is a hack and results can be deceiving. The loading app will have to listen to the relevant Flex Event in order to determine if the components are ready to be used.

-1
votes

In a nutshell: it's possible to use Flex for creating Adobe AIR applications. Here are few articles from the official Adobe website:

Creating your first desktop AIR application with the Flex SDK

Creating your first desktop Flex AIR application in Flash Builder

Also, please, pay attention, that Flex-based applications require a different version of Flex SDK, than regular AS3-based applications.

http://www.adobe.com/devnet/air/air-sdk-download.html - here at the bottom you may find links to the AIR SDK for the Flex-based applications and text:

Note: Flex users will need to download the original AIR SDK without the new compiler.