Flex AIR for Flex Mobile

I made a Flex AIR 4.5.1 for office project using Flash Builder 4.5 and I want to convert a Flex Mobile for use on Android.

Is this possible?

The answer to your last question is no, it does not work like that. The final construction must be configured and optimized for the target platform.

What you need to do is put a little thought into the design of your project so that you can split your shared code that is platform-dependent code. Shared code would go in a separate and is library project used by your main application.

You then create a project (or the configuration, if you are using a build advanced environment) for each platform that you plan to deploy to (desktop, mobile, web, etc.). The main application should contain little or no code. Above all, it serves just as a wrapper for the shared library code. This allows the application to be configured and optimized for the target platform while allowing you to use a library shared between platforms.

Tags: Flex

Similar Questions

  • Any suggestion for the option of compiling the Flex Mobile of the project in Flash builder (Blackberry platform)

    I use Flex mobile project type to create a stand-alone for targeting blackberry and android application both versions.

    Depending on the configuration of my test application works ok in blackberry tablet Simulator. As I am new to blackberry AIR application development if anyone can help me for the compilation of project I currently put for my application is good or not?

    When I checked the project-> properties-> Flex compiler, I found "Flex Hero" as compilation same SDK, so I'm trying to pass the value of the configuration option available, that it won't allow me to set the 'Blackberry Tablet OS SDK 0.9.1 for Adobe AIR"- any suggestions?

    The question above, see attached screenshot.

    Hey Dounibiligda,

    He was right to what you saw originally in your settings. the default SDK should be the flex SDK Hero. If you want to add libraries specific blackberry, you must manually import the qnx - screen.swc which will give you most of the libraries QNX which are skinned to resemble the appearance of the standard playbook.

    so to summarize, keep the default Flex Hero sdk and manually import the qnx - screen.swc to your project. Good luck!

  • Two styles for a native look (Flex Mobile App)?

    Hello

    is it possible to use two styles/looks for the same application, it will look native on iOS AND Android?

    Or do I have to build the same application twice to get this?

    -BB

    Check out the blog of Jason San Jose post here: http://blogs.adobe.com/jasonsj/2011/06/ios-theme-for-flex-mobile-projects-proof-of-concept .html

  • universal support iOS and CSA 2.0. It will affect Flex Mobile projects?

    Hello

    Regarding the latest release notes for AIR 16, it says

    "The legacy compiler is not (and will not) compatible with iOS 64-bit." [...] It will be removed with the 16 of the AIR SDK version"

    I'm a little lost with what it means for Flex Mobile (4.6 or Apache Flex SDK). We will always be able to compile once AIR 16 is released or this new compiler will be the issue with Flex compiled for iOS projects? Must make us changes on existing applications in Flex?

    Thanks for your clarification,

    Fabien

    It seems that this evil is rumor spreading around... a lot of people don't bother research properly.

    When they talk about the legacy compiler, they speak of the ADT, MXMLC will continue to work. Simplified IPA packaging process is: Source code - MXMLC / ASC2---> SWF - ADT AOT compiler---> IPA

    So with AIR 16 ADT -useLegacyAOT argument is removed.

  • Flex mobile? should I avoid it?

    Hello

    I need to develop an application for mobile... And it seems that the Flex mobile framework is a huge time saver!

    But I know adobe has fallen Apache Flex... I would not use it?

    Thank you

    Gil

    The AIR SDK and Flex SDK are different. For example, you probably have the AIR inside your flash environment but try to load something from the Flex SDK as something of a spark component would use:

    for example, Flex:

    Import mx.collections.ArrayCollection;

    It works for you? Probably not. It is only a part of a modern installation of Flex.

    Mobile Flex introduced spark optimized components that are all mobile. Adobe AIR is the runtime (VM) which gets exported in captivity and compiled to ARM. You need not have a single component Flex in your AIR for Mobile project. AIR for Mobile does not Flex.

  • Scaling Flex Mobile project with iPad Retina display (3rd generation).

    Adobe and al.,.

    With the new iPad 3 we have now a ton more pixels to use. I know well and have already tested AIR 3.1 + compiler command line option (-platformsdk) for the Retina display on the new iPad. In ActionScript projects mobile, the content is rendered beautifully on the new iPad. But with Flex Mobile projects, something happens that forces him to render incorrectly. It is the retina-fine screen, but the size is too small.

    Here is a picture WITHOUT the construction tag - platformsdk, which causes the application to be doubled to fit on the new iPad to pixel:

    FB_Non_Retina.PNG

    Note that it is scaled proportionally, even while the text and the items are a bit pixelated. Not a big deal, but noticeable on the device.

    This image is taken with the rendering of the app to the retina (the platformsdk - pointing to iOS SDK 5.1 setting):

    FB_Retina.PNG

    As you can see, text components are made really clear, but the scale is far away. Obviously, it's getting the width of 2048 x 1536 of the device, but it is much too small.

    How can I fix it? I tried to change the applicationDPI, but it doesn't fix it. Setting a width/height of 1024 x 768 has nothing either. It seems that we have to overrride a behavior that causes all so small adjustment.

    A little help?

    Thank you

    iBrent

    Richard Lord posted a blog yesterday using the iPad screen retina with Adobe Air and one of the things I noticed is that the new iPad returns a 132 DPI, the specs say that the device is 264 ppi. I don't have one of the new iPads, so I can't test this, but it seems that it is just a case of the return the wrong DPI device which is something that has happened before. I could check the section to this page titled "substitute the default DPI" and see what happens if the device return 240 when running on the new iPad.

  • Flex Mobile 4.5.1 iOS unavailable NetworkInfo

    Hi guys,.

    I am building a Flex app for the iPad and Android platform. I have a requirement to identify each device of the tablet on the side server. Normally, the AIR SDK has the NetworkInfo class to access the available on the device Macaddresses:

    var interfaceVector:Vector. < NetworkInterface > = NetworkInfo.networkInfo.findInterfaces ();

    My problem is that the iPad 2 does not seem to support the NetworkInfo class on the device, so I can't find a way to access the MAC address.

    Does anyone know a way to extract some kind of unique identification number (there no guaranteed so it is unique) iOS device?

    Thanks in advance.

    Bashar

    Hey Bella,

    It's not that the iPad doesn't seem to support this api, it is explicitly not supported the mobile profile:

    AIR profile support: This feature is supported on all desktop operating systems and AIR for television sets, but is not supported on all mobile devices. You can test the support at run time by using the NetworkInfo.isSupported property. See Profile AIR-Support for more information about support of the API across multiple profiles.

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/NET/NetworkInfo.h tml

    The subject of the identification of the devices is back on the forums, for example, see:

    http://forums.Adobe.com/thread/803428

    As I remember only BlackBerry tablet OS additions offers unique UUID by device via actionscript:

    http://www.BlackBerry.com/developers/docs/airapi/1.0.0/QNX/system/device.html

    on Android/iOS, you might consider moving to per-installation model - which is to generate your own UUID (at your leisure: locally through script or through hash generated by the server, etc.) who once saved in the application will be used later to identify it on the server.

    HTH,

    Kind regards

    Peter

  • How to insert a background image in VGroup in Flex Mobile

    I want to insert a background image for the VGroup. Help out me. I'm new to Flex!

    I use this code in the Flex Mobile Application *.

    < s:VGroup height = "100%" width = "100%".

    paddingTop = "10" paddingBottom = "10" paddingLeft = "10" paddingRight = "10" >

    < s:List id = "homeList" height = "100%".

    labelField = "title".

    dataProvider = "{Homearticles}" >

    < s:layout >

    < s:TileLayout requestedColumnCount = '1 '.

    verticalGap = "5" / >

    < / s:layout >

    < s:itemRenderer >

    < fx:Component >

    < s:ItemRenderer >

    < s:VGroup >

    < s:BitmapImage source = "{data.source}" / >

    < s:Label text = "{data.title}" / > "

    < / s:VGroup >

    < / s:ItemRenderer >

    < / fx:Component >

    < / s:itemRenderer >

    < / s:List >

    < / s:VGroup >

    I don't think that you can add a background image to a VGroup directly, or VGroup can be skinned.

    As much as I know there are probably 2 solutions

    (1) use a SkinnableContainer skin rather the container to have a background image and set its layout to VerticalLayout

    (2) place the VGroup one group with a BasicLayout. You can then add a background image for the Group and the overlay VGroup

  • Flex Mobile 4.6 this step text - how render you HTML text with it?

    I have a little cat component in a Flex Mobile application that I just upgraded to 4.6 SDK.  The chat component has a text box displaying messages, and they are HTML formatted by the following text:

    StyleableTextField (textArea) .htmlText += myHTMLText;

    He worked in the SDK 4.5 but StyleableTextField is not part of the new text introduced in SDK 4.6 stage framework.

    Question: How HTML format messages in my chat text box now?

    I think I have a solution for you (and me) while watching devgirl.org. It seems that you have not need to set the skinClass on your textArea in MXML (as suggested above). Setting the skinClass fixed my Android problem.

    In actionscript, import this class:

    Import spark.components.supportClasses.StyleableTextField;

    In actionscript, also add the following to your new text Manager:

    ta.appendText (newText);

    StyleableTextField (ta.textDisplay) .scrollV ++;

    I don't know exactly why, but this solution works fine on an iPad, but it doesn't work for me on a Tablet I test here. The TextArea component on the Android tablet is not scrolling unless it is developed. Maybe I made a mistake of deployment to the Android device, and I will check that. Fixed this by setting the skinClass on the component.

  • Flex Mobile: presentation of carousel or 3D Coverflow

    Anyone know if someone has set up a scheme of carousel or Flex Mobile 3D coverflow.

    I did some research on Google and found a little Flex on the Web, but looked like they would work in Flex Mobile.

    Here is an example...

    http://www.rialvalue.com/blog/2010/03/30/Flex4-Coverflow-layout/

    Yes. same as that.  But, app is only internal business app for my client and is not in the market.

    But, here is my code from her...

    Click = "listClickHandler (Event)" id = 'list' "

    skinClass = "CoverFlowListSkin" useVirtualLayout = "false".

    itemRenderer = "TouchPresentationsCoverFlowRenderer" >

    horizontalDistance = "103".

    selectedItemProximity = '0 '.

    depthDistance = '1 '.

    elementRotation = "-70".

    perspectiveProjectionX = "-1".

    perspectiveProjectionY = "-1" / >

    rendering engine...

    <>

    xmlns:FX ="http://ns.adobe.com/mxml/2009"clipAndEnableScrolling = 'false'

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx" xmlns:local = "" * "width ="100% "height ="100% ">"

    Import mx.core.FlexGlobals;

    override public function set data(value:Object):void {}

    {if (value)}

    IMG.source = FlexGlobals.topLevelApplication.assetsUrl+'Thumbs/300/'+value.imageFile;

    LBL. Text = value.imageCaption;

    BC. Visible = true;

    If (LBL. Text.Length == 0) {}

    BC. Visible = false;

    }

    }

    }

    ]]>

    backgroundColor = "#000000" cornerRadius = "10" borderAlpha = "0.3".

    borderColor = "#000000" backgroundAlpha = "0.3" top = "50" right = "50" >

    fontFamily = "Myriad Pro Semibold" fontSize = "14"

    Color = "white" / >

  • ProgressBar on Flex Mobile? HOWTO?

    I feel like a fool asking this, but is there really no official way to put a ProgressBar component on a Flex Mobile project, even up to version 4.5.1?  The documents seem to indicate as such, as the spark still has no equivalent ProgressBar and mobile is only spark.

    There may be a 3rd party progress bar out there somewhere?

    I am trying currently to hack the fl.controls.ProgressBar Flash Pro CS5.5 in my project in Flash Builder through a CFC, which is simply dirty, because Adobe seems to have made deliberately incompatible between Pro and Builder Flex-side interfaces (for example, fl.controls instead of mx.controls).

    What gives?  It cannot seriously be this involved to put a bar of progression on a mobile Flex project... I feel like I am Bizarro-world...

    Please keep this civil.

    The mx:ProgressBar in Flex component is designed to be shown to a user to indicate that an operation is taking place which will have a certain amount of time to complete.  The conduct of this operation can be either specified as a fixed progress bar (completed percentage is still known and visible by the user) or indefinite (the percentage complete has ever known).

    With the help of a progress bar for display the remaining time is very often seen in desktop applications, but is less common in mobile applications.  Instead mobile applications tend to use a disc rotation for an indefinite period.  Given that the use of rotating disc case was much more popular on mobile devices the spark component BusyIndicator was added in Flex 4.5.

    Looks like you are looking for something more general that is not designed specifically to view the progress of something over time, but rather showing a value regarding a max value.  For this, you can consider using the spark component range (http://opensource.adobe.com/wiki/display/flexsdk/Spark+Range) that were also introduced in Flex 4.5.  API of the component of the range seems to be in the same direction as the Android SDK ProgressBar and BlackBerry GaugeField.

  • Native UI in Flex Mobile Application action bar

    Hi all

    I managed to port sample WeatherGuesser of FDT Mobile AS Application and market.

    But how to do so that the port in Flex Mobile application.

    I would use native look of the action bar, back and all that.

    are there opportunities to achieve.

    Thank you

    Vedran

    Any QNX control should be wrapped in a Flex control that you want to include in the MXML. It works well as a control of AS3.

  • C code embed in Flex Mobile app?

    Hi all

    I am writing a quick but very involved editing filter for both mobile and desktop, as a Flash Builder project.

    Is it possible to compile a native C module for each of the platforms - Android, iOS, Windows, Mac, Blackberry - and then link it effectively part Flash app?

    It would be a Flash application that calls a function to regenerate the image whenever the parameters change, image processing and then to create the final image.

    If this is not possible, please help me understand (because I am completely new Flash) if ActionScript itself is fast enough for the treatment by one pixel of an image of the big camera on a mobile device.  How much slower would be that C?

    Thank you!

    You can call the native AS3 code by writing a Native Extension of AIR (NSAS):

    http://www.Adobe.com/devnet/air/native-extensions-for-air.html

    BTW: Flash already contains a certain images compositioning algorithms and image processing filters. They may agree, according to your needs.

  • What can I use if I need the htmlText property in Flex Mobile project

    Hello

    What control exposes a property htmlText in Flex Mobile? MXML or AS3, is not serious.

    Does that help?

    http://help.Adobe.com/en_US/Flex/mobileapps/WS19f279b149e7481c-3c2dbaa612bb06a5ea2-8000.ht ml

  • Easy way to use the native user interface in the AIR for mobile?

    Hi, I use Flash CC for the mobile game, but when I want to create a regular application I need to create my own user interface and which takes a lot of time, I found several components on the internet but they require coding, is it parts components that you can simply drag and drop into the CC Flash?

    Thanks in advance

    Maybe it's what you need

    IgG.me/at/airui

Maybe you are looking for

  • Restoration of old iPhone to new iPhone with the new phone number

    I replace my current iPhone with a new iPhone.  My phone number and cell phone carrier will change.  It's as simple as my current iPhone to my computer backup in iTunes and then restore my iPhone for this backup or change of phone number is complicat

  • HP 350 G1: 8.1 Windows OEM Activation not working anymore?

    Hello After asking here on the forum about the restore a deleted partition, what issue has been resolved. We are facing another problem. My sister has recently infected laptop computer at a point, it has become UNUSABLE! Kept complete HARD drive, she

  • List box served selection range of excel cells

    I used the llb file found on this link to enter data from an excel spreadsheet. http://zone.NI.com/DevZone/CDA/EPD/p/ID/3409 My problem is I want the ranges of cells to be hard-coded according to what the user selected in a drop-down list box. My sta

  • uninstalled so far

    I tried to install the path info MS Office 2007 (KB976416) several times as a result of the help and still don't seem to be able to do.

  • Port of limitation of the rate on Catalyst 3550

    I'm having the same problem, as shown in the following cases: https://supportforums.Cisco.com/thread/161768 However - even when this is defined as an access port - it does not rate limit - should be limited to 2 MB by rate (a port traffic going in on