Desktop app based on AIR using Flex

Hi
I am a .NET/PHP programmer and  is new to Flex. We have a requirement for a small desktop application to be provided as a service download (ref: BBC news ticker). I read that Flex would be a good option.
My questions are as follows:
1. Your feedback on using Flex
2. Is Flex 4 to Flex 3 better to start with (newbie)
3. Do I require any other investment other than Flash Builder
4. Any disdvantages in using Flex compared to a Windows app (apart from OS compatibility issues)
I may be asking too many questions in my first post itself. However, this will help me to decide the technology for my requirement.
Kindly request all Flex developers who has some time to spare to reply to my above post. Thanks in advance for all your vaulable inputs.
Regards
Sheni

Sorry.
I run this code only on debug-build.
Exported release build does not reproduce the crash.
To reproduce on release ipa package,
change BaseView#doSomething function like this.
  public function doSomething(e:*):void
    trace("do something"); // Add this line
Could you please try again.
I run the app on
iPad mini + iOS 8.1
AIR SDK version 17.0.0  build 96
Flash Builder 4.7
Regards.

Similar Messages

  • Share button to my App in Adobe Air using Adobe Flash CS6

    Anyone help me, I want to add share button like this in my app. How can do it?
    Have you found a solution? If so, would you like share to me?
    Thank you very much!

    Thank you guys for your support
    My air application descriptor is pointing to the "index.html" of my web application:
    <initialWindow>
    <content>index.html</content>
    <visible>true</visible>
    <width>1024</width>
    <height>786</height>
    </initialWindow>
    So I don't even know whether or not I'm using the HTMLLoader but with the help of @wadedwalker's hint, I was able to find the following link:
    http://anirudhsasikumar.net/blog/2007.12.19.html
    This is working! However as wadedwalker mentioned, the video is now played in a small box on top of my HTML pages left upper corner. If I understand you guy's correctly, it is not possible to embed this video box into a certain HTML element, right?
    Would it be possible to make the video play in full screen, add the player controls and a button to close this pop-up?
    It's okay for me to have some AIR specific JavaScript here, I can handle this in a build script and only embed the code when the AIR version for the iPads is build.
    Thanks in advance,
    J.

  • Building Web Based VoIP Phone using Flex

    Hi, all.
    I want to build a sip client web based using Adobe Flex. Anyone can tell me how I start?
    By the way, I use Asterisk as communication server.
    In other discussion, I find the google alchemy, but I still don't know what it is.
    Please your answer, all flex master.
    Thanks.

    I'll move this to off-topic since you've been correctly pointed to forums.asp.net.  I just want to mention that whatever that article was demonstrating is probably irrelevant in today's web development ecosystem.  For example, an event calendar
    is likely to be its own web control that you can just drop onto a web form (or otherwise instantiate in a web page).  I know of a couple retail components that can do it and there are probably free ones available too.  Even if you build your own
    it will likely be little more than an existing calendar control with perhaps some custom rendering code.
    Reed Kimble - "When you do things right, people won't be sure you've done anything at all"

  • 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

  • Deploying Java Desktop App using executable JAR files

    Hi there.
    Today I am very optimistic about java. I am a beginner, and I had tried (in my few free time) to understand how to deploy java desktop apps.
    I am using the lattest NetBeans IDE to do the programming and it is very very fast and optimized.
    Going to the point, I tried some time ago to deploy an application (made with this IDE) using JAR files, but even though the application run well on my IDE, when I packed it, it rised an error saying that
    java.lang.NoClassDefFoundError: org/netbeans/lib/awtextra/AbsoluteLayout
    I was using an absolute layout on my JFrame forms and this AbsoluteLayout is provided by netbeans and not by the normal SDK.
    I then looked for the absolute layout class and found a jar file in the following path:
    C:\netbeans\modules\ext\AbsoluteLayout.jar
    So I mounted the Jar file in my File Systems and then added the contents of the file to myApp.Jar file.
    I used the automated Jar Recipe Packaging feature of netbeans, that is why I needed to mount the AbsoluteLayout.jar file into my file systems.
    Now it runs fine by just right clicking the MyApp.jar file from Windows Explorer.
    In a next reply to this topic I will include some sample code so that anybody requiring to do such implementation can take this for help.
    Regards!
    JN

    Well,
    I will take some time here to show the basic source code and procedure to create a desktop application, pack it up in a Jar file for deployment, add other classes or jars to the deployment jar file and finally open the jar file as an executable. This applies for either windows and linux environments.
    Take in count i am using Netbeans IDE 3.x (3.5)
    First I open the IDE and create a new project called MyDesktopApp. This is done by going to the menu Project / Project Manager. Then click on the New button and specify the project name and click on OK.
    At this point, the Filesystems tab in the project explorer is empty. So I mount a directory to store myDesktopApp in it. I selected c:\MyDesktopApp but you can select any name you want.
    To mount the directory you follow these steps:
    1. Right-click on File Systems
    2. From the contextual menu select Mount > Local Directory
    3. In the filechooser window, you just browse it and SELECT the directory to mount. Be aware that you can even create the directory on this window. Do not enter (double-click) into the directory you want to mount, just select it and click on finish...
    4.Then the directory entry appears under the filesystems node of the project explorer.
    Now you have to create your application. You can either create a package (special configured and tracked directory) or you can create the clases directly inside the directory. For tidy project, I will create the package.
    To create the package follow these instructions:
    1. Right-click on the mounted directory and from the contextual menu select New > Java Package
    2. In the New Wizard - Java Package window, type the package name and click on finish. I use the "MyDesktopApp" as package name.
    OK. Now the package is created under the mounted directory. Now we have to create the Main Class. In this case I will use a JFRAME as the main class but you can create any class you want.
    To create the JFRAME as main class follow these steps:
    1. Right click on the java package you just created and select New>JFRAME from the contextual menu. If you do not see the JFRAME option on the NEW sub menu you will have to select the All Templates option. I explain the All Templates option now on, it will be easier to use the JFRAME if available. Once you use JFRAME with the all templates then the JFRAME will show up in further NEW usage.
    2. So finally we used the All Templates, and you select the Java GUI Forms > JFRAME form option and click on NEXT.
    3. Give it a name. (I used MyDesktopAppFrm) and click on finish. Be aware you can set advanced options by clicking on next. But for the purposes of this topic we will use default options so click on FINISH
    4. A new JFRAME form appears inside your package. Right click on the form and select Set layout > Absolute Layout.
    5. Add some controls and code. I added a label and a button. And coded the ActionPerformed event of the button to say hello! on the label. this is up to you. The code just looks as follows:
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    // Add your handling code here:
    jLabel1.setText("Hello folks!");
    6. Compile and execute the form.
    Let's say this is our Desktop Application. Now We will pack it in a Jar in two steps...
    A. Create a JAR file (Recipe)
    1. Right-click on your package and select New > All Tempaltes (Long Route) You can also select New > JAR Recipe if available.
    2. On the New Wizard Window, choose the JAR ARchives > JAR Recipe template and click on NEXT
    3. I used MyDesktopApp as the file name and Defaults and then click on Next.
    4. Specify the JAR Contents. Select the Package (not the mounted folder) from the mounted file system and click on add and then click on NEXT twice...
    5. On the JAR Manifest window, click on GENERATE
    6. Edit the manifest in the window to add the following code:
    Main-Class: MyDesktopApp.MyDesktopAppFrm
    7. Ensure the Main-Class definition is the same as your java package and JFRAME name. Click on FINISH
    8. At this point we have a jar file in your project directory but this file wont run because it is missing some Netbeans clases that we will add in the next set of steps... Just to check, compile the file (right click on the JAR file and compile) and try to execute. It must compile but must not execute.(well if it executes you are done. It may execute if you did not set the lay out of the form as AbsoluteLayout)
    B. Add the AbsoluteLayOut to the JAR
    1. Right click on File Systems and select Mount > Archive Files
    2. Look for your netbeans installation folder and select the following file:
    .../netbeans/modules/ext/AbsoluteLayout.jar
    3. Click on finish
    4. Now the JAR File is mounted in the file systems.
    5. Right-click on your MyDesktopApp.JAR file and select properties.
    6. Look for the contents property click once on it and then on its elipsis button [...]
    7. From the FileSystems box in the Contents window, select the AbsoluteLayOut file and click on Add
    8. Then the system asks you if you are sure. Of course you are so click OK. (If not sure, just read the message text and click OK...:-))
    9. Click on OK
    10. Compile your JAR Recipe (right click on it and Compile)
    11. Now you must be able to run the file by right clicking it and EXECUTE.
    12. Also you must be able to run the file by double clicking the file from a Windows Explorer. You may receive a message asking to select the program to run the file with. You must browse and select the Javaw.exe file in the bin directory of your Java RUn Time installation. This is typically located at C:\j2sdk1.4.0_01\jre\bin or something like that. Use the File-Search feature of window to locate the JAVAW.exe file if needed.
    I hope this long explanation helps somebody to deploy Java Desktop applications. Please reply the message if it helps you just to know it was useful.
    Thanks for your time....
    JN

  • Collect Reponses Online tab in the Adobe FormsCentral desktop app

    Where is the "Collect Reponses Online tab in the Adobe FormsCentral desktop app" ?

    Are you using the app bundled with Acrobat XI? or the one downloaded from the FormsCentral website? Only the former one has that tab.
    Randy

  • Building a desktop app - use AIR or not?

    Hello, I'm guessing that the keyword "desktop" would make you recommend I use Adobe AIR if I'm building with Flex.  Basically, we're building a desktop application that will occasionally sync with the server where a separate but related application resides.  Most of the time, the desktop app needs to be able to function with or without network connectivity. 
    So far, we have begun by playing with Flex and running it in a browser on a local machine.  We could simply use XML files for local storage instead of a database, and it seems like we can get a fair amount of functionality implemented this way.  However, I'm wondering if we should definitely be using AIR instead. 
    I'm coming with a server-side Java background, so I'm also trying to figure out how people write the business layer in this world (the business logic tier in between the presentation and data/service layers).  A lot of places I'm finding online keeping talking about Flex being for presentation only, but with an Adobe AIR app, do people often write business objects that sit between the GUI components and the database?  In some of the AIR programming guides, I'm not seeing any mention of that.
    I'm trying to make a case for AIR, so I need a little bit of help from you...
    Thanks!

    I'm coming with a server-side Java background, so I'm also trying to
    figure out how people write the business layer in this world (the
    business logic tier in between the presentation and data/service
    layers).  A lot of places I'm finding online keeping talking about Flex
    being for presentation only, but with an Adobe AIR app, do people often
    write business objects that sit between the GUI components and the
    database?  In some of the AIR programming guides, I'm not seeing any
    mention of that.
    I'd like to add a "me too" to this.  I haven't done a lot of research into AIR yet and it's not immidiately obvious what's involved with getting offline functionality.  I think I basically have the same question as the OP; do I end up (re)writing a bunch of business logic in the Flex client (I don't want to).
    I'm still using Java EE on the server for a (business logic) data access layer.  Specifically, I'm using a DTO inheritance strategy and setting up to auto-generate (mirror) .as DTOs with (Maven) flexmojos (I think flexmojos uses GraniteDS, but I use BlazeDS - the code generation tool shouldn't matter AFAIK).  So far, I'm quite happy with how the whole setup works.  However, I'd love to hear what kind of Java + Flex + AIR development strategies others have been finding successful since a significant portion of the online resources and documentation I've found tend to be somewhat trivialized.
    I hope I'm not hi-jacking the OPs question here (if so, I apologize), but what I'd like to know is if AIR is capable of any 'for free' type offline capabilities (like the way BlazeDS and LCDS 'just work').
    Ryan

  • Flex Desktop App (AIR) + LCDS w/ Hibernate Assembler - Not Working

    I have a desktop application which uses J2EE + LCDS + Hibernate to access a MySQL database. This not returning any data when used a data service fill command (and not returning any error).
    The same set of MXML code included in a web app (using the same J2EE + LCDS + Hibernate server side config) is returning data using data service fill command.
    I am using the FLEX IDE to build both the web and desktop flex apps.
    To me it seems to be a path/compiler issue with my desktop app setup.
    Any pointers would be very helpful

    Hello -
    There are lots of things that you can do to help debug this. The first thing you'll want to do is startup the LCDS server with DEBUG logging levels turned on and look for clues (ERRORS and debug output).  See this for details.  You can turn on client-side logging and debugging to help diagnose the problem too - See "Debugging AIR applications with Flex Builder" for details.  You could also use mx:tracetarget to help further diagnose the issue.  Without any real errors being reported it is difficult to diagnose the problem.  If you are getting errors (connection errors, NPEs, etc) post them here.
    hth,
    Bill
    LCDS QE

  • 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.

  • 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

  • Do i use Air or Flex for iPhone and Android app development

    Hi guys, whats the main difference between the 2 and does Air or Flex have everything Xcode does for iPhone/iPad development
    I'm hearing that Flex has Android and SDK for iPhone, if this is the case why learn Xcode ?
    Thanks

    Titanium is good for iOS, but apparently not so good for Android. Moreover, it's not so cheap!
    When one chooses a platform, one should also take into consideration the history and stability of the company which offers it.
    That is why I would not go to Appcelerator: who knows what's behind the corner?
    Sure, it is ironic that I say this after Adobe - a big company - has abandonded Flex...
    Some alternatives:
    - AMPChroma (Horrible name, but it has a solid company selling it: Antenna Software). This thing has the advantage that the content is not either native or web: the same content can be packaged for a web site AND for an app
         Pro's: Many big players are using it
         Con's: price list not very clear
    - Adobe Edge "Preview" + Adobe PhoneGap <--- Adobe says: you create animation for the web, you package it for an app. Not many people have tried it. But apparently it will work.
         Pro's: apparently, Edge is Adobe's instrument to finally go to HTML5.
         Con's: Edge "showcase" performs BADLY and SLOWLY in an iPhone (go think of a Samsung Mini)
    - Adobe Flash professional CS6 + Create JS <--- you create animations in Flash, then you export to HTML5 and js for browsers which don't have flash. You can also package with AIR for iOS and Droid.
         Pro's: Flash professional is easy, Action Script is powerful. You can have BOTH the power of Flash and the portability of html5/JS.
         Con's: for how long will Adobe support this Create JS hack? When will Adobe say "OK, now you've done enough automatic porting to JS, from next release on you move to Edge, or to - wait for it - a version of Flash which uses Javascript instead than ActionScript?"
    Me, I don't know what to do. I am keen on FlashBuilder/Flex because it's fast to build. Apps are really compatible both with iOS and Android. It has Salesforce.com connectivity. It's cool.
    However, there are two problems that get me stuck from continuing with FlashBuilder:
    - OK for native apps but... how do I use the Flash Builder/Flex content for the mobile WEB? Flash Builder does not have the CreateJS capability. I do a cool interface and I cannot reuse it on the mobile web if not with apps?
    - OK for HTML5 but... it's NOT as good as Flash now. Have you ever seen a Phonegap application with graphics? They're embarassing. Slow, imprecise. And non-compiled Edge stuff is not much better. Is it? any good example.
    Bottom line: at the moment, HTML5 support does not seem good. On the other hand, Flex is NOT compatible with mobile web. What IS performing and promises to be compatible with mobile web in addition to native apps?
    Flash Professional CS6.
    Again.
    I am happy if some-one belies me with good arguments.

  • Is it possible to converted Presenter 7 to a FLEX / AIR desktop app?

    I have an Adobe Presenter 7 course with multiple modules.  These are PowerPoint files converted to flash with Presenter 7.  I want to make them available as desktop applications by using Flex / Air.  Can this be done?
    I am a novice in these applications, but a quick learner.  Please let me know if it is possible and kindly point me in the right direction.  Thanks for your help.
    Bob

    Wow, thanks so much Bob - that is some absolutely fantastic information. 
    I converted one of my Presenter courses to a fully functional EXE file in about 5 minutes with the SWF Maestro Exe trial!  I have been trying for years to find a solution to turn my Presenter files into single, flat file and that seems to do exactly what I need.
    Your sample training course is really nice - you did a great job with it!  I know how much work it can be to get the PPT file, transitions and audio to work just right like you have.  I have 15 eLearning files that have hundreds of hours of work on each one!

  • 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

  • StageWebView in Flex Browser/web app instead of Air/mobile?

    Just heard about stageWebView.  Before I dig deeper, does stageWebView work in a Web/Browser Flex app in addition to an Air desktop/mobile apps?
    I still have a need to display PDFs embedded inside my Flex web apps.  None of the iFrame-based solutions out there support it. They all download the PDF doc instead of embedding it within Flex.  I need to behave like the HTML component does in Air desktop apps, since it embeds PDF very nicely.
    So, I just heard about Air 2.5 stageWebView and I'm wondering if it might solve this issue for me.  My guess is that is only works with Air/mobile, not Flex web apps, but I thought I'd ask.
    Don

    No, StageWebView is an AIR-only feature, it's not available in Flash Player.

  • 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

Maybe you are looking for

  • How to create folder for apps?

    How do create anew folder to hold apps that are similar in nature?

  • Have problem with recording to MINID

    I have Audigy 2 platinum pro. when I try open minidisc program (send music to my minidisc frow optical cabel) the computer shuts dow with the writing that there is problems. and tahts ir allmoust all time. Thanks Povilas

  • Getting the Latest status with respect to DATE entered

    Hi guyz, kindly help me in this scenario: I have a DSO and a CUBE.... DSO: cust status code status date RAW DATA cust               status code               status date payer1                    1                      12/31/2013 payer1              

  • Windows 2008 r2 wds

    I am using Windows 2008 R2 as WDS and i have issue for booting pc's which have no built-in NIC. remeber that pc's having built-in NIC is working all ok........................ plz help me 

  • Photoshop CS4 printer selection failure

    Wondering if anyone might know what's happening here.... Using Photoshop CS4, Windows 7 SP1, Novell Network Printers. There are 2 problems: 1) In the print dialog box, no matter what printer is selected, the page setup button has settings for a diffe