Listbox with air for adroid

i have to use listbox for air for android. But when i type in import fl.controls.List, i get the error: can't find definition fl.controls:List.
even when i use fl.controls.* it gives the same error.
i found out that its becouse fl.controls.List is made for the following:
Language Version:
ActionScript 3.0
Product Version:
Flash CS3
Runtime Versions:
Flash Player 9.0.28.0, AIR 1.0
(i got this from http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/controls/List.html)
i use flash cs5.5 en air for android. does any1 know how i can use a listbox for air for android?
grtz
Rein

DRag an instance of the listbox from the components library to the stage.  That will place it in your library.  Then delete the instance you placed on the stage.

Similar Messages

  • Sound delay with air for android

    Hi,
    I am building a game with air for android, all work just perfect but I have just little problem with the sfx.
    When I play sound I have 500 millisecond delay.
    I tried to use wav format instead of mp3 and its help a bit but still there is a big delay.
    Any ideas?
    Thanks

    First, never use the nativePath property of File.applicationDirectory (as the example does). This isn't supported on Android. You get an empty string. While you could usually bypass the write-restrictions on te application directory using this technique on the desktop, it definitely does not work on Android. Always use URLs rether than native paths to refer to application files.
    What you should do is create the database in the applicationStorage directory. You could do this with SQL, or by coping a "template" database file that you packaged with the application from the application directory o the application storage directory (using the URL not the native path, of course.)

  • Flash cs5.5 FLVplayback Encoding Problems with Air for Android

    Dear All,
    I'm trying to play flv in my air application by using FLV playback in flash cs5.5.
    I can play flv in the pc but not on the samsung galaxy tab andriod platform.
    if anyone out there has tried out FLV playback with either an Air For Android application, where the FLV files are packaged within the app, or either streaming via normal http//:, any help  would be greatly appreciated.
    Thanks!

    First disable autoplay. It gave errors for me. Try to make the movie play with the play() command.
    to embed the movie in your air bundle, just go to publish settings for your flash project. Then in that screen go to the player settings.
    In the first GENERAL tab you'll see a the bottom that you can add files to your project
    Propably there is allready your .swf and an .xml file in there.
    Using the + icon you can add your video.
    Make sure that your video is in the same directory as your . FLA file and you can use it as is (by name)
    If for example your flashfile is in c:\mytest\mytest.fla and the video in c:\mytest\videos\myvideo.flv , then you will have to load your video as "videos/myvideo.flv" with a FORWARD slash, never use \
    Good luck

  • Using Google Play Developer License RSA code with Air for Android App?

    What is the procedure for using Google Play Developer's provided license code (Base64-encoded RSA public key to include in your binary) for an Air for Android app in Flash?
    I see the need to load a p12 file and have gone through the process of creating one for Air for iOS with OpenSSL but the Google provided key is in a different format. To start with it is delivered by copy/paste off a webpage.
    I am using Flash CS5.5. I could switch to CS6 if neccesary.
    Thanks

    Follow this link, see post number 12.
    http://forums.adobe.com/thread/1115438

  • Problems with AIR for DW extension

    Is anyone having luck with the AIR for Dreamweaver component?
    I've got it installed but I try to export an AIR project all I ever
    get is stuff like this:
    File does not exist: /Users/databell/Library/Application
    Support/Adobe/Dreamweaver
    9/Configuration/Temp/FlashElements/ImageViewer/application.xml

    I am also experiencing problems. I am running DWCS3 build
    3481, Mac OS X 10.5.4 on an Intel MacBook, and AIR 1.0 (the 1.1
    updater page still provides v. 1.0 download) according to the file
    info, and I've tried completely re-imaging my computer and cleanly
    installing DWCS3, AIR, the extension, etc.
    The problems are centered on either selecting an existing
    certificate or trying to create a new one:
    1. Select an existing cert ~ selecting a previously-created
    certificate and entering in the *correct* password still results in
    a "could not load keystore file (password may be incorrect)" error.
    The cert is located one directory above the app folder, and it
    works fine via the command-line adt tool.
    2. Create a new cert, 1st attempt ~ attempting to create a
    new cert and selecting to place it in a central project folder
    within my home directory fails. I get an "unexpected failure:
    /scott/Documents/Projects/Optimac.pfx (No such file or directory)"
    error. Look closely at that path. The actual path I selected to
    save this cert to is
    "/Volumes/data/scott/Documents/Projects/Optimac.pfx." My disk is
    partitioned and my home folder is located on the "data" partition,
    whereas my operating system and applications are located at
    "/Volumes/os." (Mac OS X 10.5 enables locating your home directory
    on separate partitions, and I have not encountered any other
    problems with this configuration since Leopard was released, up
    until now.) It looks like Dreamweaver erroneously misconstrued my
    home directory as existing on root ("/"). So...
    3. Create new cert, 2nd attempt ~ if I create the new cert at
    root ("/"), that process completes successfully, but then if I
    select it and click "Create Air file" I get an "unable to create
    temp file in output directory" error.
    As is, I cannot create an AIR app in Dreamweaver.

  • APP created with Air for Android but doesn't work on the emulator for test - Help!

    When I create an application using Flash CS5.5>>> AIR FOR ANDROID.
    After creating a test page I go to publish settings and send the app on Emulator RELEASE ... The APP is loaded correctly but as soon as you start the emulator, give this error "The application XXnameappXX (process air.XXnameappXX) has stopped unexpectedly. Please try again" Help Please!

    Ok i've find this before "Adobe Flash CS5/AIK2.5/runtimes/air/android/emulator/Runtime.apk" and install it on android emulator! Now works all i hope! Thanks for your answer!

  • Is there a way to publish a high-res .ipa from Flash CS5.5 with AIR for iOS?

    Hello,
    I've developed an app for iOS in Flash specifically for iPad 3's. My client uses SOTI MobiControl as it's mobile device management solution. If I publish out of Flash using AIR SDK 3.1 or newer the app is created and looks high-res on the iPad3. When they try to add the app to SOTI for in-house distribution it errors with the error claiming that "CFBundleDisplayName" has been left blank.
    After having looked into it I've been able to find out that when publishing with versions of the AIR SDK older than 3.0, the info.plist file within the app package includes a CFBundleDisplayName. In versions newer than 3.0 there is no CFBundleDisplayName in the info.plist.
    Is there a way to publish for iOS from Flash utilizing an older version of the AIR SDK and having true high-res graphics that will look proper on an iPad3?
    Thanks in advance for any help.
    Phil

    It's not AIR that's lacking the key in the plist, it must be Flash Pro, although it's just running adt itself. I use AIR 3.4 and I compile via adt command line (because Flash Builder 4.6 still has not been updated to handle warnings from ANEs during compile, grr). I have CFBundleDisplayName in my plist file. Have you tried compiling on the command line?
    Here's an Adobe page with a bunch of examples compiling with ADT on the command line:
    http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d128cdca935b-8000.html
    Being unaware of what in-house distribution system that actually is, I have noted that some people had previous issues submitting apps Flash compiles. Their solution was to rename the AppName.ipa to AppName.zip, extract the Payload folder, copy the AppName.app inside there out, then rename that AppName.app to AppName.ipa. Then it was accepted. Not sure if that old issue still exists.

  • Garbled/scrambled text with Air for Android & GPU mode

    Please excuse the big image! Has anyone come across this? As you can  see the 'U' in 'Nebula' is scrambled and so are the digits below best  time.  It only happens within  the space a character would occupy. The line under 'game' is just a reflection.
    I can't work out what's causing it, it's not always the same  characters that do it although the U in Nebula is always scrambled.  Sometimes digits are scrambled and sometimes the same ones are not. It  seems to occur with embedded fonts and with normal ones like Arial. I've  tried using both Classic and TLF text, and changing anti-aliasing  settings. It occurs on both dynamic and static text.
    But it only happens  with GPU rendering, not CPU rendering.
    I can't find any mention of this at all on Google, starting to wonder if perhaps it's just my phone? (Desire S).
    Any input is greatly appreciated!

    Thanks for the fast reply! Switching to device fonts does fix the problem, but it means using some horrible default font rather than the one I want to, which I've embedded. I've tried a few more settings and Bitmap Text seems to fix it in some instances but not in others.

  • NavigateToURL not working with Air for iOS

    Hi,
      I have created a game in flash for iOS (iPad). The game works fine, but I am trying to call a URL on the click of a button.
    There is no response on click.
    Below is the code
    externalcallButton.addEventListener(MouseEvent.CLICK, moregames)
    private function moregames(e:MouseEvent){
         var urlReq = new URLRequest("www.example.com/iphonegames");
         navigateToURL(urlReq);
    Please help me on this...
    Regards
    Santosh Bhagat

    hi sanika thanks for reply
    i can open the URL in browser. I'm not getting any error while using navigateToURL. It is working when i publish it and test it on the desktop. But when i transfer it to ipad it is not working.

  • The three main hurdles to porting existing Flash projects to iOS with AIR

    The purpose of this discussion is to identify significant problems currently preventing AIR for iOS from being a viable solution for porting existing Flash apps.  These issues have been largely ignored by Adobe, so I hope that everyone will add to this discussion if you have also run into these roadblocks in targeting iOS with the AIR SDK.  I hope that Adobe staff will address and provide some much needed information with regard to fixing these problems.
    There are 3 main problems with targeting iOS currently, which are probably affecting anyone who is trying to port a project that is both medium to large in size and makes use of SWF loading.  Pretty much any project that has a MVC architecture is going to load SWF assets that are compiled against a view class, so this is likely affecting many people.
    1. Bug - ADT packager runs out of memory when packaging "large" numbers of SWF assets
    https://bugbase.adobe.com/index.cfm?event=bug&id=3511656
    This is a blocking bug that prevents packaging projects with a large number of SWF assets.  It is preventing me from being able to package all the needed assets for my project.  I provided Adobe with my project to package a couple months ago so this bug can be reproduced in house and fixed.  The Adobe employee who was handling this never tried to reproduce the issue and has stopped responding to email and comments in the bug.  Adobe, please have someone take charge of testing and fixing this bug.  It seems like it would be a straightforward fix once the failure is reproduced within a debugger.
    Has anyone who has encountered this problem determined the number of files or classes where it starts to fail.  I've spent some time trying to reverse engineer what the packager is doing when it runs out of memory, so think I can determine how many classes it's working with, but obviously the size of the classes will be variable and so this number will probably be more of a range where we start to get into the failure state.
    Please let me know if you can reproduce this issue with your project with many SWF assets and upvote the bug if you are already aware of this one.
    2. Bug - SWF reloading when doing a "real" (AOT) compile
    https://bugbase.adobe.com/index.cfm?event=bug&id=3636385 
    There is already a forum post that covers the history of this issue (http://forums.adobe.com/message/4920638) but that also covers some issues in older AIR builds with loading of any SWF asset (previously fixed), where this bug deals specifically with reloading of SWF assets that include compiled bytecode (ABC).
    The expectation here is that all versions of the Flash runtime should handle SWF reloading with ABC in the same way, so that a single codebase can be used to target web and iOS (or any other platform).  This is the only issue of the 3 that has a legitimate work around, in my opinion, because the assets can be cached within the app within a loading manager layer.  All the application code that makes loading calls can stay the same, and a compiler flag can be used to enable this caching for iOS builds, with subsequent requests returning a new instance of the cached asset.  This can potentially lead to a very bloated memory footprint for the running app after a period of time, though, which could make some apps perform poorly, so a bugfix is ultimately needed.
    3. Unimplemented feature (?) - The constraint that a single ApplicationDomain is used when running AIR for iOS 
    I did ask about this in the same forum post as SWF reloading but didn't get an Adobe response.  Why does this constraint exist?  My guess is that the AIR runtime for iOS simply hasn't implemented multiple ApplicationDomain support at this point, and that this was done to focus resources on other high priority features for the iOS runtime.  It's possible that there is some aspect of the iOS operating system that makes it difficult or impossible to implement this feature, which may be why it's been avoided to this point, but obviously this is all conjecture without hearing from Adobe on it.
    This is a major issue that needs to be addressed.  For us, the problem is that our SWFs for multiple instances of the same type of asset use the same name for the AS export.  For example, each item an avatar can equip is a single SWF with multiple sub assets -- the parts which comprise the item.  Each of the parts will have an AS export name based on the avatar facing and where it is equipped, like "fv_head".  This naming is consistent across all items, so we will load a lot of assets containing "fv_head" simultaneously.  This normally works fine because the default behavior for Flash has always been that each SWF is loaded into a new ApplicationDomain instance, but for iOS a single ApplicationDomain must be used, causing these names to collide.  The last SWF loaded containing a given AS export name overwrites the previous ones of that name.
    The work around for this, and I use that term loosely, is to go through and uniquely name every AS export in every asset where sets of assets with the same export name is used. For us that is hundreds of items with multiple exports.  Maintaining unique naming across all these parts is also a very error prone process, not to mention all the code that manipulates the parts needs to be modified to handle the new naming and make sure it's referring to the now uniquely named assets.
    The expectation here is that all versions of the Flash runtime should handle asset loading in the same way and place each loaded asset into its own ApplicationDomain container as the default behavior.  I'd like an Adobe employee to address my assumption that this is an unimplemented feature of AIR for iOS at this point, and let the community know if a solution for this will be implemented.
    Summary
    All three of these issues in combination are a major roadblock to porting existing Flash games to iOS with AIR.  Issues with one can make it hard to test and try to work around others.  All need to be fixed, but If I could only pick one of these to fix, it would have to be issue 3 -- that lack of proper ApplicationDomain support when loading assets.  This issue is completely inconsistent with standard Flash behavior and creates a major roadblock to ports of existing applications with no viable solution for a workaround.
    I look forward to Adobe's feedback on each of these issues and hopefully fixes that will allow those of us working with AIR for iOS to get our products to market.

    About the 3rd issue being an AoT design limitation, I'm not sure I understand why it's necessary to know during AoT packaging what the domain is that a child will be loaded into to be able to have SWF loading work as on the browser.
    Isn't the ApplicationDomain an internal construct in the AIR runtime that you guys define in order to manage namespaces of loaded SWFs?  To be clear, when I say "runtime" I know that the resulting code isn't being interpreted within the iOS app, but clearly you have a set of AIR libraries that get compiled into the IPA that provides support for all the Flash APIs.  If that's the case, then wouldn't it be possible for the iOS version of the AIR libraries to define a new ApplicationDomain on the fly when code that has been cross-compiled to iOS native code loads a packaged SWF?
    I don't have a clear picture of how ApplicationDomains are managed internal to the runtime of course, but a little more detail would be very helpful.  Thanks.

  • How to make an air for ios enterprise distribution Flash CS5.5?

    Hi, There seems to be only:
    Quick publishing for device testing
    Quick publishing for device debugging
    Deployment - Ad hoc
    Deploymnet - Apple App Store
    How does one do Deployment for in-house Enterprise Apps from Flash CS5.5 with AIR for iOS?
    Thanks!

    maweibezahn,
    The plist in step 2 is created so you can download the app onto the device.  This file stands alone, and does NOT need to be included in the app package, but it does need to reside in the same spot on the web server.  Below is an example plist file for an app.  You then access the following link from mobile safari to install:
    <a href="itms-services://?action=download-manifest&url=http://www.myserver.com/myAppPlist.plist">Tap Here to Install myApp On Your iPhone</a>
    ----------myAppPlist.plist------------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>items</key>
              <array>
                                  <dict>
                                            <key>assets</key>
                                            <array>
                                                      <dict>
                                                                <key>kind</key>
                                                                <string>software-package</string>
                                                                <key>url</key>
                                                                <string>http://www.myserver.com/myApp.ipa</string>
                                                      </dict>
                                            </array>
                                            <key>metadata</key>
                                                      <dict>
                                                                <key>bundle-identifier</key>
                                                                <string>com.myServer.myApp</string>
                                                                <key>bundle-version</key>
                                                                <string>1.0.0</string>
                                                                <key>kind</key>
                                                                <string>software</string>
                                                                <key>title</key>
                                                                <string>My App Name</string>
                                                      </dict>
                                  </dict>
              </array>
    </dict>
    </plist>

  • Video in air for ios

    i created a sipmle app  with air for ios in flash cs5.5 which includes only short video which was imported using "import video". when testing it in "control\test movie\ test " it works perfrct, however when i sync it to my iphone device with itunes - i see icon and when i push it - the movie not shown - why?

    i have added the .flv
    can you see if it had been done ok?

  • Possible Solution: Allow native code packaging with AIR using ADT?

    Packager / ADT are providing huge benefits for AS3 developers targetting mobile as we all know.  We also know that we'd like as much access to the native libs for the various platforms as we can possibly get.  Two cases in point, in-app purchasing and access to Apple's iAd network.  Discussions about these requirements over the last few days with a colleague of mine have resulted in him coming up with a very strong idea for providing adhoc access to native libraries.  He has posted his suggestion, (which involves a feature request to Adobe), on Adobe AIR Ideas at Labs.  I really encourage as many people as possible to read his suggestion to get the discussion warmed up.  If you think the proposal is worthy, please make sure you vote it up so that it registers on Adobe's radar.  I believe this would really benefit all of us working with AIR for mobile. Here is the link.
    Peter Robertson

    manicjames wrote:
    I have packaged my AIR app into a Native .exe installer using ADT. If the user does not have air installed and they are connected to the internet, the AIR runtime is automatically installed.
    Is it possible to package the AIR runtime into the exe so that if the user is not online the AIR runtime is installed?
    I have experimented with the sidecar install and .air file but ideally I want to only have the one file(.exe). I already have a distribution licence from Adobe.
    This isn't available at this time, but I think it's a great idea.  You might want to add a feature request for this over at ideas.adobe.com and bugbase.adobe.com, or review and vote for these current feature requests if they provide for what you're looking for:
    Portable AIR Apps
    Create portable AIR apps
    If you decide to add a new request, please post back with the URL so others can cast their votes and add comments.
    Chris

  • AIR for iOS device compatibility

    When I tried to test a game I have been making in Flash on my iPod Touches (I tried it on 1st and 2nd generation ones), iTunes tells me that it is not compatible with either iPods when I try to sync the devices. However, a few weeks ago, I got a simple "Hello World"-type app I compiled with AIR for iOS to work on the 2nd gen iPod Touch, but when I tried it again today, I had the same problem as I did with my game.
    It doesn't make sense that an AIR for iOS app would work one time and not another, so I have serious doubts that it is because they are incompatible with earlier iOS devices. I thought that I followed all the steps listed in order to test the apps on my devices, but there is certainly a chance that I did something wrong. Has anyone else had this problem? Does this mean that I am setting up my certificates incorrectly or doing something else wrong?

    Multitouch.inputMode = MultitouchInputMode.GESTURE;
    stage.addEventListener(TransformGestureEvent.GESTURE_ZOOM, f);
    function f(event:TransformGestureEvent):void{
        mc.scaleX *= event.scaleX;
        mc.scaleY *= event.scaleY;

  • Error creating files. Compilation failed... when publishing iOS app with AIR 3.1 and Flash 11.5.1

    Hello, I'm running Windows 7. I'm using Flash 11.5.1 (that's CS5.5 updated once) and AIR 3.1 to make an iPhone app.
    I can export the app perfectly fine with either Ctrl+Enter or F12.
    I added all the required things with AIR for iOS settings, such as a p12 certificate and icon files.
    I then hit publish. After I hit publish, I got this error:
    Error creating files.
    Compilation failed...
    I tried dragging the window to see if there was anything hidden behind the elipses. What can I do to fix this problem?

    note sure if I'm much help other than to CONFIRM it is working for me by using the sdk WITHOUT the compiler. Check out adobe's little note: "Note : Flex users will need to download the original AIR SDK without the new compiler."
    I am using FB 4.7 with AIR 3.6 and seems to compile correctly for iOS.
    Maybe try reinstalling flash builder?
    I honestly don't know if the JRE has anything to do with it... I'm using 1.7 ....to see what JRE you're using, open the Java Control Panel (I right click my java orange icon and hit properties), select the Java tab, then hit "View..."

Maybe you are looking for