Using FlexNativeMenu in AIR desktop app

Hello, I am having trouble using the FlexNativeMenu component in an AIR desktop app...
It seems the syntax has changed since previous versions of Flex, so I'm not sure how to get this to work.
I have my menu items / data provider as:
[Bindable]
private var menubarXML:XMLList =
<>
<menuitem label="File" data="top">
<menuitem label="Exit" data="QUIT"/>
  </menuitem>
  <menuitem label="View" data="top">
<menuitem label="MenuItem1" data="mi1"/>
</menuitem>
  <menuitem label="Help" data="top">
<menuitem label="Overview" type="check" data="OVERVIEW"  />
  </menuitem>
</>;
And then I tried to set the menu as such in the MXML:
<mx:Menu>
<mx:FlexNativeMenu id="rrMenu" showRoot="false"
   labelField="@label" dataProvider="{menubarXML}"
   itemClick="menuHandler(event);" />
</mx:Menu>
This didn't give an error, but shows nothing when I run the program.
So I tried just FlexNativeMenu by itself, but this tells me that it must be placed in Declarations instead of the main stage. So I moved it to Declarations, but it still shows no menu bar...

Hello,
You didn't mention which version of Flex you're using, but I suspect it might be 4.5.  If so, please see if this helps:
Creating an application or window menu
Thanks,
Chris

Similar Messages

  • Include Air ( desktop app ) inside Mobile app permited by Apple / Android?

    Include Air ( desktop app ) inside Mobile app permited by apple / android?
    This is my question....:
    I need a "viewer" app run in a desktop machine... via p2p... ( done and working )
    I will like to include it in my iOS / Android Release, an then by example move it to the documents folder.
    Run iTunes and then copy the file from the shared document folder.
    Is this permited by apple / android / adobe ?
    Thanks....

    just tracing some kind of tests I'm doing.
    A couple of hours ago I left working 2 instances of my Application, leaving alone this computer: one instance is the Mac desktop version and the other one is the Web version. In this case both versions were running on the same computer (an iMac with OS X Mavericks):
    1) the AIR/Mac version have been recompiled yesterday with the new AIR4(.0.0.1619 - AIR 3.8 is used to fall in a equivalent way - no changes)
    2) the Web version have been compiled targeting FP 11.8 and it is running on Chrome browser with PepperFlash NOT disabled (which reports version MAC 13.0.0.80, the latest)
    I left working both the Mac and the Web versions of the Application opened on the pc screen (= not minimized) but kept totally behind some Terminal/ssh windows (= not on OS focus and the system is not asked to update any screen area of the app for sure).
    I came back after about 2 hours and I got the browser version connected&running (but it is not a rule) and I also found the AIR-based Mac version disconnected (uau, usually I found the app disconnected but with the screen freezed at last user look ->) which rapidly reconnects upon my click on the Apple dock icon (bring to front).
    Why these different behaviours? I ask to myself.
    The two versions of the software are TOTALLY the SAME application: except for the first Flash file (a 24kb swf file for the Web version and a 170kb dmg file for the Mac version), basically a platform-dependent loader, both versions loads the same remote swf modules. Of course t is AIR (or my first Flash file?).
    I attach the source code of the Mac version of the [first file] AIR-based application at the following url:
    http://92.63.230.100/others/others/wtstarter_mac.as.txt
    _Adobe_, is it a bug? isn't it?
    mc

  • AIR desktop app installation prob

    Gidday
    I'm having trouble getting my AIR desktop app (AIR2.5 with a self-signed certificate) to do auto updates.  I've had it updating fine in the past, but now get the following message:
    "This application cannot be installed because this installer has been mis-configured. Please contact the application author for assistance."
    Here's my method when I test the installation:
    - publish a new AIR file using the SAME version number as the currently released app eg 1.017
    - install it on my local machine
    - publish a new AIR file with an incremented version number, in this case 1.018
    - set my text file that the app checks online for updates to contain 1.018
    - upload 1.018 AIR file to my site
    - run the desktop app (version 1.017).  It successfully detects there's a new version, and downloads it.
    - it starts to install, and then I get the error
    I've researched this all afternoon, and have found articles mainly talking about expired certificates.  So I created a new certificate, and the problem still occurs.
    Also, I've tried uninstalling my app from my local machine, but I still get the installation error.
    Any ideas how to rectify this, so that I can continue using auto updating rather than force people to uninstall and download the new version for installation?
    Thanks for your help.

    Nevermind - the txt file that contains the version number and the url for the updater has the url for my live site, not my test one, so I changed it , and it installed fine.

  • Flash app converted to AIR/desktop app: actionscript not running

    Hi there,
    I have a flash app that runs on a browser useing actionscript and webservices for getting data, converted to a AIR desktop app. It access a local database for data. I have opened the .fla file and changed the publishing setting to AIR and set the document class to the Main.as. Also, I have added the following .swc files - framework.swc and rpc.swc. While trying to debug it is showing that "Your swf does not have action script to debug". While running it, I am getting a blank screen. Could you guys please help me out in what I am missing or doing wrong ????????
    HELP PLEASE!!!

    Hi there,
    I have a flash app that runs on a browser useing actionscript and webservices for getting data, converted to a AIR desktop app. It access a local database for data. I have opened the .fla file and changed the publishing setting to AIR and set the document class to the Main.as. Also, I have added the following .swc files - framework.swc and rpc.swc. While trying to debug it is showing that "Your swf does not have action script to debug". While running it, I am getting a blank screen. Could you guys please help me out in what I am missing or doing wrong ????????
    HELP PLEASE!!!

  • Pass parameter to new view in air desktop app

    Hi Guys,
    Have developed a mobile app that uses this code .....
    public function generalList_ChangeHandler(event:IndexChangeEvent):void
    navigator.pushView(Detail, list.selectedItem);
    .... to pass data from a list item that the user clicks to a new view called Detail. 
    This is a very common requirement. ie  Scroll a list, and then click on an item to go to a new view where the
    details about the item selected are rendered.
    ..but, I cannot see how to do this in a classic air desktop app.
    It must be pretty simple but it is not im Tour de Flex and I can't find a solution on the web.
    What would the equivalent code for an air app please?
    Thanks,
    Richard

    Oh, I see.
    Your right if I remember correctly you implemented your own version of a ViewNavigator for your AIR application.
    If you want to use the mobile components in your AIR application you need to add the swc to your project 'mobilecomponents.swc'.
    You do this right click project->propertie, then select Flex Build Path and focus on the Library Path tab. Then click "Add SWC" and browse to 'C:\Program Files (x86)\Adobe\Adobe Flash Builder Burrito\sdks\4.5.0\frameworks\libs\mobile' and select the mobilecomponents.swc.
    That should allow you to leverage the ViewNavigator in your AIR application. However, as your AIR app is not a MoblieApplication you will have to instanciate your own instance of ViewNavigator to use and push views to.
    Hope that helps.
    Greg

  • How to launch an Air desktop app from a second Air desktop app?

    Hi,
    Is there a way to launch an Air desktop app from a second Air desktop app?
    I'm using Air 4 with Flash CS 6 on Windows.
    Thanks

    According to Adobe documentation, AIR doesn't allow you to launch one application using another on desktop. The best bet that I could find at the moment would be to use the File.openWithDefaultAppilcation() function and open a file(like a .doc or .txt file) that has an AIR app set as the default application to use for X filetype. Unfortunately, launching app(.exe, .app, etc) files directly is not allowed. Probably for safety/security reasons. You might be able to get around that with a Native Extension though. Below is a link to the File.openWithDefaultApplication() method which includes a table of all the filetypes not allowed. Tried messing around with some ways around it, but the best I could do was open a new Finder window(testing on a Mac) and highlight the file. The code below assumes that both AIR apps are installed in the same app directory. Not sure how it would work on Windows but the result might be the same. For Mac, no special characters or anything was needed even though the app I was trying to open had spaces in the filename.
    var filePath:String = "file://" + File.applicationDirectory.nativePath + "/App to highlight.app";
    navigateToURL(new URLRequest(filePath));
    File - Adobe ActionScript® 3 (AS3 ) API Reference

  • Will we still be able to use the Adobe FormsCentral desktop app after FormsCentral retires?

    Is it just the online service that is expiring?
    Will I be able to create fillable PDF's using the desktop app (not online) to create fillable PDF's?
    Thanks!

    Hi LeanneW,
    Please see this section from the End of support | Adobe FormsCentral document:
    You may continue to use the Adobe FormsCentral desktop app for creating PDF forms until you update or upgrade your Acrobat software. But the app will not connect to any online component or offer the ability to collect data or publish web forms. Furthermore, we will not be supporting the application once Adobe FormsCentral is retired in July, and so cannot ensure functionality moving forward.
    If you have additional questions, please let us know.
    Best,
    Sara

  • How do I get Adobe Air Desktop App to notify user that a URL text file has been updated?

    How do I get an Adobe Air Desktop App to notify user that a URLRequest ".txt" file has been updated? via blinking system tray icon or something.
    New to Air and need someone to point me in the right direction. I have been searching web for hours and probably not asking the question right.
    I have a very simple Desktop App that just loads a text file from a web location into a dynamic text field at a set timer. it just repeats this action on the timer. right now every 5 minutes
    What would the actionscript be to tell the Air App to look at the date or time stamp of the ".txt" file and notify user if its new?
    Thanks

    Try to follow below steps
    Click on Finder and then hold Command + Shift + G keys on your keypad
    It will open Go to folder window, type  exactly ~/Library and click on Go
    Then open Application Support > Adobe folders
    Trash AAMUpdater and OOBE folders.
    Now click on finder and hold Command + Shift + G keys on your keypad.
    This time type /Library and click on Go.
    Make sure to remove ~ symbol.
    Then open Application Support > Adobe folders.
    Trash AAMUpdater, Adobe Application manager, OOBE folders.
    Now Click on Finder and then hold Command + Shift + U keys on your keypad.
    It will open utilities folder.
    Trash Adobe Creative Cloud and Adobe Application Manager folders
    Download and Run CC cleaner tool from below link
    http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems/_jcr_conte nt/main-pars/accordion_container_1/accordion-par/accordion-item-1/accordion-item-par/proc e dure/proc_par/step_3/step_par/download/file.res/AdobeCreativeCloudCleanerTool.zip
    Accept the license agreement and click on Adobe Application Manager
    Then click on clean up selected
    Close the window
    Download and install Creative Cloud App from below link
    Free Creative Cloud | Download Adobe Creative Cloud free trial

  • My adobe air desktop app keeps trying to update unsuccessfully

    my free adobe air desktop app keeps trying to update unsuccessfully
    whatever shall i do?
    thanks
    system
    Hardware Overview:
      Model Name: Mac Pro
      Model Identifier: MacPro3,1
      Processor Name: Quad-Core Intel Xeon
      Processor Speed: 2.8 GHz
      Number Of Processors: 2
      Total Number Of Cores: 8
      L2 Cache (per processor): 12 MB
      Memory: 10 GB

    Hello,
    I'm sorry you're having trouble. I'm fairly certain this problem is occurring on the Air side and not on the Acrobat.com side of things. Please try reposting your question in the Air forums.
    Good luck!
    Michelle

  • Adobe AIR desktop app with an embedded runtime

    Hi,
    Does an Adobe AIR desktop app with an embedded runtime (standalone/portable)  that got published on Windows work on a Mac too?
    Thanks

    No, you need to compile a "bundle" with ADT on each platform. On Windows it creates a directory with an .exe and the AIR runtime. On OS X it creates a .app file.

  • I'm trying to update my apps using the creative cloud desktop app. I can't see any apps in the app tab, the wheel just spins round and round and nothing happens. Has anyone got any ideas? I've tried uninstalling the desktop app and reinstalling but it sti

    Hi
    I'm trying to update my apps using the creative cloud desktop app. I can't see any apps in the app tab, the wheel just spins round and round and nothing happens. Has anyone got any ideas? I've tried uninstalling the desktop app and reinstalling but it still has the same problem.
    Cheers
    Rachel

    Hi Rachel,
    You can follow the article: App doesn't open | Progress wheel spins continually to get your issue fixed.
    Let us know if the issue still persists or not.
    Regards,
    Ratandeep Arora

  • Extend supported icon sizes for AIR Desktop Apps

    Currently AIR Desktop Apps seem to only support a limited set of icon sizes (16x16, 32x32, 48x48, 128x128px).
    It would be great to see bigger icon sizes (like 256x256 and 512x512px) being supported as well. For example, Windows7 does not display 128x128px icon size so the maximum icon size for AIR apps on Windows is currently 48x48px (which actually is pretty small and results in pixelated icons).
    Can you please consider the option of extending supported icon sizes?

    Feature request for this issue: Bug#3844899 - Adobe AIR does not support 256x256 desktop icons on Windows Vista, 7 or 8.x

  • Using the Air Browser inside an Air Desktop App - how to activate webgl?

    Hello,
    I´m using Adobe Air/Flex to build a Desktop App. Inside the App the user should be able to access an Internet Browser. This part is actually working so far.
    BUT:   THE ADOBE AIR BROWSER IS NOT SUPPORTING WEBGL.
    Is there any method to activate the WebGL Support so I could open WebGL-Dependent URLs from Inside my Desktop App?
    Sure, I could tell the User he should Alt+Tab to switch to an WebGL-Compatible Browser, but it would so much better if this all would work from inside my Application.
    Thanks for answering!
    Stefan

    Hi Krazy,
    With the monitor and Bluetooth peripherals connected, when you close the lid the machine will begin the sleep process. The Bluetooth (if set to wake the machine, which it should) when you activate one of the Bluetooth will then wake the machine and you're free to use it normally.
    To answer your last question, you can turn off the machine and leave the setup as is without any problems.

  • Publishing air desktop app error creating files

    Hello I am using flash cc pro to try and publish my flash document  as a windows desktop app. I keep running into an error
    Error creating files. The AIR version set in Publish Settings of the initial content SWF exceeds that allowed for the descriptor namespace.
    I am trying to publish using Air 14.0.0.178. here is my descriptor file.
    <application xmlns="http://ns.adobe.com/air/application/3.1">
      <id>project18</id>
      <versionNumber>1.0</versionNumber>
      <filename>project18</filename>
      <description/>
      <name>project18</name>
      <copyright/>
      <initialWindow>
        <content>project18.swf</content>
        <systemChrome>standard</systemChrome>
        <transparent>false</transparent>
        <visible>true</visible>
        <fullScreen>false</fullScreen>
        <aspectRatio>portrait</aspectRatio>
        <renderMode>auto</renderMode>
      </initialWindow>
      <icon/>
      <customUpdateUI>false</customUpdateUI>
      <allowBrowserInvocation>false</allowBrowserInvocation>
    </application>
    thanks.

    Hi,
    Can you please share your file for us to investigate this issue?
    Thanks!
    Mohan

  • What are the ways to integrate PayPal (or other monetizing service) into an Adobe AIR desktop app?

    Hey all
    I just finished publishing my AIR mobile app for iOS and Android, both featuring freemium style in-app purchasing/billing, for a single purpose only - opening the app to be full featured.
    Now the client wants a desktop version of the app. I need a way to monetize the same way: the user wants all the features - they click a button in the app, pay the 2 dollars, and now all the features are accessible.
    I think going out to PayPal, paying there and returning to the app would be best, but I cannot get the files I found here to work.
    Do you have any suggestions of a workflow with examples, or a service with AS3 support?
    thanx

    http://www.as3gamegears.com/monetization/as3-paypal-api/

Maybe you are looking for

  • My macbook pro (late 09) restart itself and refused start up.

    this my first post ever - been using Mac all my life but a rookie when it comes to crash report. My Macbook Pro (late 09) running Mavericks (all apps and everything else, kept updated) to day restart itself and i wonder what caused. had to do the rit

  • Family Share iCloud Data for iCloud Back ups

    Is there a way that I can share my 200GB of iCloud space with my sisters to have them back up to my shared iCloud?  They go over the 5 free GB and I have 180GB free to use.  I feel that it is stupid for them to each pay more a month when I have plent

  • Problems with HP Printing tool "hplip"

    Hi ! I recently got a new old printer: A HP Laserjet 5P from Oct. '95. Installation with cups and printing works fine. It's connected via a "Prolific" Parallel-USB Adapter Now I want to use the hplip-program to read out the level of the cartridge. Bu

  • Nano doesn't work and itunes in restore/recovery mode loop

    My ipod nano 1st gen was fine (XP pro) - and then I plugged it in and it says "Itunes has detected an Ipod in rocover mode. You must restore this ipod before it can be used in windows." I press restore and it seems to be restoring - and says its rest

  • How to SeeThe Cost Center Budgeting Report

    Hi Experts, I am preparing the scnario for Cost Center Budgeting,once we enter the details in the budgeting plan,,we will post to the cost centers as well.after that how can we see the Cost Center Budgeting Report....will it be available in S_ALR_870