Debugging IOS AIR app

Is there anyway I can set NSZombieEnabled somehow in the adobe air app.  I am getting EXC_CRASH etc errors and need a way to find out where the troubled memory item is..
Thanks,
Bobby

It turns out that the "help document indicating that this is due to the iPad and the debugger host computer not running on the same wifi" was spot on.  At my work environment, the wifi and the ethernet lan are on the same network.  I was mistakenly assuming that the iPad and the debugger were communicating via the USB cable, but this is not the case.  I think what happens is that FB embeds the ip address of its computer in the debuggable app.  The app then connects to FB at that IP address.
My problem was that I had the Network Settings of my VM set to "Shared" under the Parallels hardware config set up.  My VM then had a 10.211.55.x ip address instead of a 196.196.0.x ip address, which is the range of addresses on my LAN.  Changing the setting to "Shared" fixed the problem.

Similar Messages

  • Debugging iOS AIR app from FlashBuilder running under Windows/Paralells on a Mac

    On my Windows 7 workstation at work, I use FlashBuilder 4.6 to debug iPad apps all the time. The process is simple and reliable -- start the debugger which begins waiting for the app to notify it, move the app into iTunes, move it onto the iPad, launch the app, the app notifies the debugger that it is running, debugging works!
    At home I am running Windows 7 under the latest version of Parallels on my iMac running the latest version of Lion. I go through the same process: I connect my iPad (the same one from work) to the Windows VM, and Windows iTunes recognizes it and syncs files just fine. I can move a non-debugger version of the app onto the iPad and it runs just fine. However, when I start the debugger in FlashBuilder and then move the app onto the iPad and launch it, the app is not able to find the Flash Debugger. When it launches I just get a black screen for about 2 minutes, then I get a message asking me to enter the IP address of the Flash Debugger.
    There is an old help document indicating that this is due to the iPad and then debugger host computer not running on the same wifi, but I don't think it's relevant. My workstation at work isn't even connected to wifi.
    I will consider any advice. It's pretty important for me to get this up and running at home. I tried running directly under bootcamp, but both Microsoft and Adobe consider the bootcamp install to be a unique install of their products.
    Thanks!

    It turns out that the "help document indicating that this is due to the iPad and the debugger host computer not running on the same wifi" was spot on.  At my work environment, the wifi and the ethernet lan are on the same network.  I was mistakenly assuming that the iPad and the debugger were communicating via the USB cable, but this is not the case.  I think what happens is that FB embeds the ip address of its computer in the debuggable app.  The app then connects to FB at that IP address.
    My problem was that I had the Network Settings of my VM set to "Shared" under the Parallels hardware config set up.  My VM then had a 10.211.55.x ip address instead of a 196.196.0.x ip address, which is the range of addresses on my LAN.  Changing the setting to "Shared" fixed the problem.

  • Getting Open In... to work with an iOS AIR app

    Hi,
    I am making a music player for iOS.  So far, I have figured that I am supposed to:
    in the InfoAdditions section of the app manifest, add:  UIFileSharingEnabled = true, so that users can place mp3s in iTunes within the app's documents directory, which my app can then open.
    Since File.browseForOpen() doesn't work on iOS ( *sigh* ), either:
    create my own file browser, based on the file pointers I get via File.documentsDirectory.getDirectoryListing().
    OR: coherce an image browser to look for sound files ( ! ) somehow, such as:
    CameraRoll.browseForImage()
    ANE:  https://github.com/freshplanet/ANE-ImagePicker
    Distriqt's CameraRollExtended ANE: http://distriqt.com/native-extensions#camerarollextended
    Assuming I can make this work without running afoul of Apple's storage guidelines ( BTW: from what I am reading, using the documents directory to store mp3s might be a violation ), I still need to figure out one more thing:
    How do I make it so that other apps can see my air app via the little "Open in..." drop-down menu, when trying to read an mp3?  Is that even possible?  IOW, is there a way to indicate to iOS that my AIR app can read mp3s ( or other sound files )?

    You need to register what document extensions you want your app to support and let other apps know about through various additional app desciptor InfoAdditions, as discussed here:
    http://forums.adobe.com/message/4725423

  • Failed to package iOS AIR app with Air 3.6 beta

    Hi
    I was hoping I could get help with those error messages
    Configuration to package for an iOS device
    Here is the adt command
    c:\program files (x86)\jetbrains\intellij idea 12.0\jre\jre\bin\java.exe -Dapplication.home=D:\flex_sdk_4.6 -Xmx384m -Dsun.io.useCanonCaches=false -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -jar D:\flex_sdk_4.6\lib\adt.jar -package -target ipa-test-interpreter -storetype PKCS12 -keystore D:\Headr\trunk\headr-app\headr-mobile\app\ios_profiles\certificate.p12 -storepass xxxxx -provisioning-profile D:\Headr\trunk\headr-app\headr-mobile\app\ios_profiles\development.mobileprovision D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug\iOS_device.ipa D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug\HeadrApplication-app.xml -extdir D:\Headr\trunk\headr-app\headr-mobile\app\ane -C D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug iOS_device.swf -C D:\Headr\trunk\headr-app\headr-mobile\app\src data -C D:\Headr\trunk\headr-app\headr-mobile\app\src icons -C D:\Headr\trunk\headr-app\headr-mobile\app\src [email protected] -C D:\Headr\trunk\headr-app\headr-mobile\app\src Default.png
    And error
    Failed to package AIR application iOS_device.ipa:
             D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug\HeadrApplication-app.xml: error 302: Root content HeadrApplication.swf is missing from package
    Configuration for the emulator
    Here is the adt command
    c:\program files (x86)\jetbrains\intellij idea 12.0\jre\jre\bin\java.exe -Dapplication.home=D:\flex_sdk_4.6 -Xmx384m -Dsun.io.useCanonCaches=false -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -jar D:\flex_sdk_4.6\lib\adt.jar -package -target ipa-test-interpreter -storetype PKCS12 -keystore D:\Headr\trunk\headr-app\headr-mobile\app\ios_profiles\certificate.p12 -storepass xxxxxx -provisioning-profile D:\Headr\trunk\headr-app\headr-mobile\app\ios_profiles\development.mobileprovision D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug\HeadrApplication.ipa D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug\HeadrApplication-app.xml -extdir D:\Headr\trunk\headr-app\headr-mobile\app\ane -C D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug HeadrApplication.swf -C D:\Headr\trunk\headr-app\headr-mobile\app\src data -C D:\Headr\trunk\headr-app\headr-mobile\app\src icons -C D:\Headr\trunk\headr-app\headr-mobile\app\src [email protected] -C D:\Headr\trunk\headr-app\headr-mobile\app\src Default.png
    And error 
    Failed to package AIR application HeadrApplication.ipa:
             unexpected failure: null
             java.lang.NullPointerException
             at com.adobe.air.ipa.IPAPackager.processExtensions(IPAPackager.java:314)
             at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:65)
             at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:257)
             at com.adobe.air.ADT.parseArgsAndGo(ADT.java:572)
             at com.adobe.air.ADT.run(ADT.java:419)
             at com.adobe.air.ADT.main(ADT.java:469)

    Hi Pahup
    My application.xml does say 3.6 at the moment.
    First couple of lines from application.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://ns.adobe.com/air/application/3.6">
    But I am using 2 ANEs (one is ours but one is a third party that 'm afraid I can't change)
    Their extension.xml look like below
    My ANE
    <extension xmlns="http://ns.adobe.com/air/extension/3.1">
              <id>com.headr.HeadrNativeExtensions</id>
              <versionNumber>1</versionNumber>
              <platforms>
                        <platform name="iPhone-ARM">
                                  <applicationDeployment>
                                            <nativeLibrary>libHeadrNativeExtensionsIOS.a</nativeLibrary>
                                            <initializer>ExtInitializer</initializer>
                                            <finalizer>ExtFinalizer</finalizer>
                                  </applicationDeployment>
                        </platform>
                        <platform name="default">
                <applicationDeployment/>
            </platform>
              </platforms>
    </extension>
    Third party ANE
    <extension xmlns="http://ns.adobe.com/air/extension/3.5">
                <id>com.milkmangames.extensions.GoViral</id>
                <versionNumber>2</versionNumber>
                <platforms>
              <platform name="iPhone-ARM">
                      <applicationDeployment>
                        <nativeLibrary>libGoViralAPI.a</nativeLibrary>
                        <initializer>MmgGoViralApiExtInitializer</initializer>
                        <finalizer>MmgGoViralApiExtFinalizer</finalizer>
                      </applicationDeployment>
                    </platform>
                        <platform name="Android-ARM">
                    <applicationDeployment>
                     <nativeLibrary>GoViralExtensionAPI.jar</nativeLibrary>
                      <initializer>com.milkmangames.extensions.android.GoViralExtension</initializer>
                      <finalizer>com.milkmangames.extensions.android.GoViralExtension</finalizer>
                    </applicationDeployment>
                  </platform>
                        <platform name="default">
                    <applicationDeployment>
                    </applicationDeployment>
                        </platform>
                </platforms>
              </extension>
    Please let me know if there is any other workaround or if you see anything else that might be wrong in my above files.
    Melissa

  • Problem with getDefinition method in ApplicationDomain for iOS AIR app

    I was using getDefinition method in ApplicationDomain to get class definition of an exported symbol from an external swf. It used to work fine with debug builds even on iOS. But when i exported a release build and installed the ipa file on iPad it stopped working. I debugged and found out that getDefinition is returning null in case of release builds on iPad.
    Is it a known issue? If yes, is there any workaround present ?

    Fast packaging in Flash Builder internally uses interpreter mode.
    The "Export Release Build" option generates an AOT build which uses ipa-app-store. For more on different target types in AIR iOS, refer:
    http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d128cdca935b-8000.html
    When you export some symbol (in say Flash Pro via AS Linkage), actionscript byte code is inserted in your SWF. As this SWF hasn't been AOTed, you are not able to access the symbols in it in a release build. Presently there is no way to AOT external swfs. Using the currently available tools, your best bet is to create a single SWF and then "export release build"

  • IOS AIR app won't install with new certificates

    I've been devloping my first iOS app in AIR for a few months. Testing on up to 3 devices has gone fine. It's time to submit to the app store. I'm developing for a client who wants the app in their name in the app store. So they set up an Apple iOS developer account and gave me access. When I made a new set of certificates and profiles with the new account the app failed to install on my testing device. I've remade all the certificates multiple times and double checked that I have the correct UUID and am not using a distribution profile.
    Is there a problem using someone else's account with keys and certificates made on my mac? What else can I try?

    Hi, you need to apply a migration signature. For more information, please refer to http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff0. html#WSFAB6E5EB-316A-42b0-81A3-0BC232ACD99A
    Thanks,
    Jian

  • IOS AIR apps do they need AIR installed on device?

    Hello, I am developing an app for iOS using AIR for iOS in flash cs5.5. I know for android you have to download air on the deivce first to run the apps. I don't have an iphone or ipad to test my app on yet, but am wondering if a user who is downloading my app will have to download AIR and then my app or does flash cs5.5 somehow combine it when it publishes it?
    Cheers

    They don't embed the Flash runtime.
    Flash CS5.5 compiles AIR directly into the app (called captive runtime) so your iOS device does not (and can not) install AIR separately and doesn't need it. There is no AIR for iOS to download.
    Also you can embed a captive AIR runtime into Android apps as well if you choose. Simply specify you want to embed the captive AIR as you export (which by default for Android is disabled). Then even Android users will not need to download AIR to use your app.

  • Code sign failures submitting iOS Air App

    Hi folks,
    I wondering if any of you might be able to point me in the right direction on this. I'm likewise having issues trying to submit an ipa file to iTunes Connect via Application Loader, and got as far as zipping the .app file and submitting. I get an error in Application Loader that: "Unable to run the lipo command: ... Can't map input file ..." and "Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or was not signed with an iPhone Distribution Certificate.", and "Unable to extract codesigning entitlements from your application. Please make sure ... is a valid Mach executable that's properly codesigned".
    Now, before posting here, I have done the following to no avail:
    a) I've regenerated all certs and mobile provisions from the top, completely on the Mac once, and completely on Windows as well using openSSL. Both times, I started at the top, from the csr request.
    b) I'm able to install and run my ipa file just fine on the test iPhones using the distribution.p12 file and the associated ad_hoc distribution mobile provision. It's always only when I compile for 'app store release', using the distribution.p12 file and the app_store mobile provision that this happens.
    c) I'm using Adobe Flash Pro CS6 on Windows 7 64, with Adobe Air 3.3 SDK, and I am submitting on a real Macbook Air with OS X Mountain Lion.
    d) I've also gone as far as trying both sets of cert/provisions (generated on mac and windows), by publishing the ipa from within Flash Pro CS6, and also using the adt command line, but still same.. works fine as ad_hoc on the test iPhones, but will not submit through Application Loader. Same codesign verification errors.
    e) My app uses native extensions, but these compile and run perfectly fine on the ad_hoc builds.
    I'm pulling out my hair at this point as to what I could possibly be missing or doing wrong, or if there is a bona fide bug with the combination of technologies I'm using? I would appreciate any tips/hints/suggestions from anyone who know what I am describing here.
    If there is anyone at Adobe that can look at my ipa file build for the app_store submission, that would be wonderful as well.
    with kind regards,
    Alex

    @Marius,
    Here's a step by step (verbose) of what I do from the top when I setup for a new client (which I did just 3 days ago). If there's anything here that's different, I recommend you remove everything you have from before and start from scratch, as there are times when some ridiculously unforeseen item left over can affect your setup:
    (a) On a Mac, open Keychain Access tool. Go to 'Keychain Access' in the main menu, then 'Certificate Assistant' --> 'Request a Certificate from a Certificate Authority'. On the Certificate information form, enter the email address you used for your iOS Developer Program account, for Common Name, use the name you have associated to your iOS Developer account (i.e. mine was a personal account, so it's just 'Alex Yamane'), leave CA email address blank, and choose 'Saved to disk', and save the .certSigningRequest file generated somewhere handy.
    (b) Log into http://developer.apple.com/ with your iOS Developer account. Click on 'Member Center' at the top. Log in. Click 'iOS Provisioning Portal'.
    (c) First of all, make sure you remove everything before you start this process. You need to go backwards when you remove everything, so make sure first, you go to the 'Provisioning' section, and remove all Provisioning profiles first (both Development and Distribution). Devices, you can leave alone. Go to the 'Certificate' section and remove all Development and Distribution certificates.
    (d) Go to App ID, and create yourself a new AppID for your app, just to make sure so you're using everything fresh from the start.
    (e) Now go to 'Certificates', and use the .certSigningRequest file. Also create one for Development using the same .certSigningRequest file. Re-click the tabs for each and they should refresh with your new certs there. Download each one. After you do, I recommend you rename them so you know these are the newest ones you just generated (it usually has a default ios_development.cer and ios_distribution.cer file name. If you haven't yet, make sure you also download the WWDR intermediate certificate if you haven't already.
    (f) Go to 'Provisioning' section, and now create a new profile for 'Development'. Then go to the 'Distribution' tab and create one for the app_store and adhoc distributions. Save all 3 provisioning profiles.
    (g) On your Mac, open Keychain Access tool. First if you haven't already, go to 'File'->'Import item' and choose the WWDR intermediate cert. Then, do the same for your Distribution Certificate (not Development certificate), I've had tons of trouble in the past when I first was starting out, because Adobe's website keeps talking about the Development cert, but you only need the Distribution Certificate installed (and just use the adhoc provisioning profile to development/test and the appstore provisioning profile for iTunes submission).
    (h) Once you've imported your Distribution certificate, there should be an item under the 'login' section of the Keychains column on the left that looks like "iPhone Distribution: Marius Versteegen". Click the arrow next to that and expand it. When you do, you should see a little key icon and your name again. Right mouse on that, and choose "Export 'Marius Versteegen'". Choose file format .p12, and save this file somewhere.
    (i ) Now take all of those certs and provision files over to your Windows machine. Fire up Flash Pro. Open your project, and use the new .p12 file for your certificate, and use the new appstore Distribution certificate and compile. You should now have a .ipa file that's ready for iTunes submission.
    (j) For me, from this point on, I've described earlier in the thread how I get my .ipa file over to my Macbook Air and upload to iTunes.
    Hope this helps,
    Alex

  • Launching another iOS AIR app from iOS AIR App

    Hi
    Ideally we would like to be able to launch another AIR iOS from our AIR iOS.  Is it possible to do this with AIR?  I understand you can do it natively.  We would also need to pass a few parameters: such as authentication ID and a URL.
    Potentially we need to be able to do this in Android too.
    Thanks
    Ben

    Yes. you can have following chunk in your infoAdditions
    <key>CFBundleURLTypes</key>
       <array>
        <dict>
         <key>CFBundleURLSchemes</key>
         <array>
          <string>appA</string>
         </array>
        </dict>
       </array>
    then from another AIR iOS application you can call navigateToURL("appA://thisDataWillBeReceivedByAppA")
    I have written an Article which lets AIR iOS applications implement Facebook Single Sign-On It uses the same techniques. You can follow http://www.saumitrabhave.com/2011/10/facebook-single-sign-on-for-air-ios.html for more details.
    Thanks,
    Saumitra

  • CER files not working in Flash (iOS AIR app)

    I'm trying to test a flash project on my iPhone 5, but flash won't let it compile and opens the AIR pref pannel instead with the "certificates" field highlited.
    I don't know why it would want that, but I searced for it on the apple developer website and found mine and downloaded it. But it's a CER file, and Flash wants a P12 file. I looked it up in the Adobe documentation (every bit of which sucks by-the-way) and it says I can convert with OpenSSL.
    So I downloaded that from the OpenSSL website, but all I got was a bunch of seemingly random files. Fortunatly i'm good at digging through seemingly random files, so I did, and found 3 things: 1. It's not 64-bit compatible, 2. It's not Windows 8 compatible, and 3. It's not COMPILED! I'm pretty good at just about everything that involes computers, but if theres one thing I'm bad at it's COMPILING THINGS!
    So this is my question(s):
    1. Why doesn't Adobe Flash support CER files when that's all that Apple has for certificates?
    2. Is there an online converter for CER to P12 files?
    3. Why is OpenSSL not compiled?
    4. Is there any other way to convert the files that works on Windows 8 Pro 64-bit?
    5. Why is it so hard for anyone make a good Elecro song?
    6. Would this work better on another platform?
    7. What's up with Adobe's documentation?

    Found an online converter!
    https://www.sslshopper.com/ssl-converter.html
    Unfortunatly, it needs a "PFX Password" and a "Private Key File".
    This is too much security. I don't even like security.
    I WOULD RATHER WALK AROUND WITH MY S.S.N. ON MY SHIRT!
    Also, I think Adobe is just trying to be anoying, because all I had to do to set up Xcode was type in my username and password, then click "add device to portal" in the device managment window.

  • Adl quits unexpectedly - while debugging AIR app in Flash Builder 4.5

    the crash scenario:
         - i'm debugging an AIR app, things are running fine
         - my app is a media rotator and i've set it up to load in images, videos, sounds, and swfs (all good no problems there)
         - the original was built for AIR 2.6 and used the old halo components
          - however, now that i've done the conversions, targeted all spark and mx, and also setup my new AIR 3 SDK (following these instructions http://jeffwinder.blogspot.com/2011/09/installing-adobe-air-3-sdk-in-flash.html)
           when I go from loading a BitmapImage to loading a VideoDisplay element, the adl debugger simply crashes w/ 'adl quit unexpectedly' msg and a massive crash report.
         - it never did this in AIR 2.6 and Flex 4.0 SDK
         - i can load videos in sequence no problem, but the error only occurs when going from bitmap to video.
    Any ideas? It's frustrating because after the crash there's not even an error message in the Console.
    Also, is this really the best practice Adobe approved way of targeting AIR 3?
    http://jeffwinder.blogspot.com/2011/09/installing-adobe-air-3-sdk-in-flash.html
    Mike Delucchi

    For example in the runtimes\player\win folder I would suggest downloading and renaming...
    1. http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_ax_debug_32bit .exe ===> FlashPlayerDebugger.exe
    2. http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_plugin_debug_3 2bit.exe ===> InstallPlugin.exe
    3. http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_ax_debug_32bit .exe   ===> InstallAX.exe

  • AIR app won't debug or compile in FB 4.7

    So I have an AIR app that's been around quite awhile, going back to Flex Builder 3 and AIR 2.x...
    I've recently upgraded to Flash Builder 4.7 and I had no troubles with this app until today when I tried to run it in Debug mode -- I got some errors about namespace, did a Google search, found out that I needed to overlay the AIR SDK onto the Flex SDK (http://helpx.adobe.com/x-productkb/multi/how-overlay-air-sdk-flex-sdk.html) and I followed those instructions...
    Then when I re-loaded Flash Builder 4.7, I started getting stuff like "Could not resolve <mx:Module> to a component implementation."  So more Google searches, and I found out I needed to change the name-space from xmlns:mx="http://www.adobe.com/2006/mxml" to xmlns:mx="library://ns.adobe.com/flex/mx".  So fine, I did that...
    Now I'm getting "Unable to resolve MXML language version. Please specify the language namespace on the root document tag."  Can't find anything on this on Google -- well, nothing that works at any rate...  Found someone suggesting I add the fx: namespace, so I did: xmlns:fx="http://ns.adobe.com/mxml/2009"
    But when I add that namespace, I get "Cannot resolve <mx:Script> to a component implementation."
    WHAT IS GOING ON HERE?!  I just want to debug my AIR app like I used to be able to in Flash Builder 4.6.  HELP!
    Thanks,
    L.

    I changed <mx:Script> to <fx:Script> and now it seems to work fine...

  • Want to use pushViewController and segues from UINavigationController in AIR app on iOS

    Ok, this might be a long shot, but here goes.
    My iOS AIR app includes a bunch of native screens defined in a storyboard.  I have them included by putting them into a native (static) framework, including that framework in an ANE, and adding code to instantiate and add the various ViewControllers to the screen.
    I can add a ViewController as a child and get its view to show on the screen with the following obj-c code in my ANE:
    [[[[UIApplication sharedApplication] keyWindow] rootViewController] addChildViewController:controller];
            [[[[UIApplication sharedApplication] keyWindow] rootViewController].view addSubview:controller.view];
            [controller didMoveToParentViewController:[[[UIApplication sharedApplication] keyWindow] rootViewController]];
    However, some of the views have child views that use segues and the push stack from UINavigationController.  When these screens try to load, I get the following error:
    Apr 21 13:50:43 raspberry LKW_Smash[7703] <Error>: *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Could not find a navigation controller for segue 'MemberOptionsSegue'. Push segues can only be used when the source controller is managed by an instance of UINavigationController.'
    So I attempted to get access to the app's UIViewController, and push the new ViewController onto the stack with the following code:
    [root.navigationController pushViewController:controller animated:YES];
    But root.navigationController is nil!  It looks like the app doesn't have one!
    So after all that, my question is this: How do I create an AIR app that includes a UINavigationController and is not simply just a single-view app?

    Sync the contacts on your Mac with Google Contacts as well... There is no need to involve iCloud.
    Perhaps you should take a look at Google's help pages.

  • External Swf on Android Air and IOS Air

    Hello
    Can android AIR and IOS AIR app download and play external SWF with code inside?
    I have created android AIR app(SDK version 4.0) which load external swf with simple movie clip on the scene.
    var loader:Loader=new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaded);
    loader.load(new URLRequest("2.swf"));
    function onLoaded(e:Event):void
         addChild(loader);
    I have installed this android AIR app on device but i do not see external swf on the scene.
    Thanks in advance

    So for ios as3 code must be like this one.?
    var _urlRequest:URLRequest = new URLRequest("2.swf");
    var _loader:Loader = new Loader();
    var _lc:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
    _loader.load(_urlRequest, _lc);
    addChild(_loader);
    One more question: How exactly  i can add the external swf to the included files?
    Can you give link with information or some sample? Also, does it work on Android Air?
    If you have sample for ios Air or for Andoid Air i will be very appreciative.
    Sorry for my english.

  • Flex wont launch my AIR app

    Now whenever I launch my air app I get this error:
    Process terminated without establishing connection to debugger.
    Command:
    "C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\bin\adl.exe" D:\fromLapTop\lapDocs\Flex\Workspaces\MothersRings\MothersRingsAir\bin-debug\MothersRings Air-app.xml D:\fromLapTop\lapDocs\Flex\Workspaces\MothersRings\MothersRingsAir\bin-debug
    Output from command:
    error while loading initial content
    I verified everything was in the locations specified. I also search on google and found a post somewhere that said I should change the xml namespace I tried: http://ns.adobe.com/air/application/1.1 and http://ns.adobe.com/air/application/1.5 but then it says it can't resolved <mx:WindowedApplication> as a component.
    Here is the source code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
    modalTransparencyColor="#663333"
    backgroundGradientAlphas="[1.0, 1.0]"
    backgroundGradientColors="[#663333, #663333]"
    verticalAlign="middle" horizontalAlign="center" width="100%" height="100%"
    applicationComplete="onApplicationComplete()">
    <mx:Script>
    <![CDATA[
    private static const neededForCompilation:AirGeneralImplementation = null;
    private function onApplicationComplete():void
    var can:MothersRings = new MothersRings();
    this.addChild(can);
    //can.labelMessage = "Loaded in an AIR Application ";
    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
    ]]>
    </mx:Script>
    <mx:Style source="style/style.css"/>
    <mx:Style>
    .header{
    fontSize:"18";
    fontWeight:"bold";
    TileList{
    backgroundColor:#996666;
    borderColor:#330000;
    rollOverColor:#cc9999;
    borderThickness:1;
    </mx:Style>
    </mx:WindowedApplication>
    Can anyone help me out?
    Thanks!!

    I agree with the first response...I usually see this error when I have already launched a test of the project (clicked the play button) and forgot to close it.  The issue you saw on the Internet will usually cause it not to run or do anything except just sit there.  I have to change that setting every  time I go from an XP to Vista machine...even though the both have AIR 1.5 on them.  If I don't change it, it doesn't run which bothers me from a distribution concern...I hope it will run regardless of the OS.
    HTH
    Dave

Maybe you are looking for

  • Unit testing legacy code - best approach?

    Hi, I've got a project full of legacy code (by this I simply mean untested) and I'm experimenting with retrofitting unit testing to it. I'm sure this entails a great many problems, but here's the first one. We have a central class with the Singleton

  • Dashboard prompt value is not passing into the report

    Hi, I am using OBIEE 10g. The problem is in Oracle BI Answers I have a prompt and its related report. In the prompt, in one of the column, I am using sql result. The sql query is a co-related sub query where i have used 2 tables. employee_data and em

  • Utilities shortcut not working (shift+cmd+U)

    Hi all, I recently got a new external HD and backed everything up A-OK. Did a repair permissions and restart and all is well...except: when I use my keyboard shortcut to access my utilities (shiftcmdU) it no longer works. The keyboard shortcut for th

  • Flash problems N900

    HELP ME PLEASE!!! SOS! Ican't flash emmc.bin there is problem, attach screenshot Attachments: Screenshot.jpg ‏127 KB

  • Comments in adobe reader not showing even after saving...

    Hi, We are using Adobe Reader X and have been emailed a document to comment on. We've used strikeout and replace, sticky notes and additional text commentary. We've been saving the document as we went along in a folder that we had access to (not the