ActionScript 3 Air Desktop Application Browse For Local Directory Popup

Hello all,
I am developing a desktop Air program that will include a browse button that allows the user to click, and once the user clicks the button, I am wanting a pop-up window to appear that allows the user to browse to a writable folder/directory on his computer. Once the user selects a folder in the window, I want to grab that directory location and store it. The storing part I know how to do, but how to create this pop-up window or dialog, I do not have a clue where to start.
What's the simplest way to go about this?
Edit:
I see I can use this example from this site, but I don't know where to grab the directory the user selected: actionscript 3 - How to create "Browse for folder" dialog in Adobe FLEX? - Stack Overflow
var f : File = new File;
f.addEventListener(Event.SELECT, onFolderSelected);
f.browseForDirectory("Choose a directory");

This seems to be supported by AIR only.
What gives you the impression?
AIR-only functions are marked with a fancy AIR logo
(like the first one in this list: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/images/sprite-index.png )
and getData doesn`t have it, so it should work without problems in the "normal" Flash Player if you follow the recepy:
Note for Flash Player applications: In Flash Player 10, a paste operation from the clipboard first requires a user event (such as a keyboard shortcut for the Paste command or a mouse click on the Paste command in a context menu). Clipboard.getData() will return the contents of the clipboard only if the InteractiveObject has received and is acting on a paste event. Calling Clipboard.getData() under any other circumstances will be unsuccessful.

Similar Messages

  • Convert Air Desktop Application to Android apk Please help!

    I developed an Air Desktop Application by using Flash Builder 4, it's a pure ActionScript 3 application. I used a few PNG image files and mp3 audio files in the application. After I build it, I got the swf file, xml file and all the image mp3 files in the bin-debug folder. If I run the swf file with all other files (png and mp3 files) in the bin-debug folder, it works great. If I run the swf standalone, the application will miss the images and sounds.
    Now I'm converting the swf to apk, and run it on android device, it will NOT show the images or Doesn't play the sounds. I was wondering if there is a way to merge the png and mp3 files into the swf when I build/compile it? Or is there some other way to convert to apk which includes all the image and audio files? Please help.

    Please see adt -package command here
    http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffb.html
    in this example icons folder is packaged along with swf and app xml.
    What you can do is that specify each of the mp3 and image files one by one separated by space at the place where icons is used in examples.
    In this case you will find all mp3 and image files in same directory as your swf when you run on android.
    Make sure you use app:// urls for accessing those files

  • How to load a FLEX application in an AIR desktop application.

    I am creating an AIR desktop application (mx:WindowedApplication). I need to load another remote FLEX application (mx:Application) inside my AIR application.Is it possible ? If then ,please mention how to achieve this ..

    If it is bundled with the air app, then it's as easy as using the SWFLoader class.
    If it's loading from a remote host, you need to load it into your app as a ByteArray first.
    More info here: http://aaronhardy.com/flex/loading-a-remote-module-into-a-local-app/
    The example is for Modules, but the principal is the same I believe.

  • Change Encore Project into a adobe air desktop application with password

    Good afternoon,
    I am trying to find a a way that i can change or inport a Encore project into a adobe air desktop application so that a can password protect it. I have a training simulator built in Encore that has a large number of menus and videos that i would like to tern into a tesk top application that i can password protect. Encore out puts this as a swf file. Is there any way to do this? I have bin looking around an the web and can't seem to find any information on this kind of problem. Any help would be greatly appreciated.
    Many thanks,
    Justin

    Hi Justin,
    ok, assuming that your external SWF tries to access some hosting application context (methods/properties) you could try:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                xmlns:mx="library://ns.adobe.com/flex/mx"
                                applicationComplete="applicationCompleteHandler(event)">
         <fx:Script>
              <![CDATA[
                   import mx.controls.Alert;
                   import mx.events.FlexEvent;
                   private var loader:URLLoader = null;
                   protected function applicationCompleteHandler(event:FlexEvent):void
                        loader = new URLLoader();
                        loader.dataFormat = URLLoaderDataFormat.BINARY;
                        var url:String = "MyApplication.swf";
                        loader.load(new URLRequest(url));
                        loader.addEventListener(Event.COMPLETE, loaderCompleteHandler);
                        loader.addEventListener(IOErrorEvent.IO_ERROR, loaderErrorHandler);                   
                   protected function loaderCompleteHandler(event:Event):void
                        // allow cross-scripting in case loaded content tries to access
                        // that context properties or methods
                        var context:LoaderContext = new LoaderContext();
                        context.allowCodeImport = true;
                        swfLoader.loaderContext = context;
                        swfLoader.load(loader.data);
                        cleanup();
                   protected function loaderErrorHandler(errorEvent:IOErrorEvent):void
                        mx.controls.Alert.show(errorEvent.text, "ERROR");
                        cleanup();
                   private function cleanup():void
                        loader.removeEventListener(Event.COMPLETE, loaderCompleteHandler);
                        loader.removeEventListener(IOErrorEvent.IO_ERROR, loaderErrorHandler);
                        loader = null;
              ]]>
         </fx:Script>
         <!-- ui -->
         <s:SWFLoader width="100%" height="100%" id="swfLoader"/>
         <!-- -->
    </s:WindowedApplication>
    See that doc for some details "allowCodeImport":
    http://www.adobe.com/devnet/flashplayer/articles/fplayer10_1_air2_security_changes.html
    note: I'm not sure if that would 100% work. I don't know what Encore authored .swf really do, for that you could ask on Encore forum:
    http://forums.adobe.com/community/encore/encore_general
    regards,
    Peter

  • Air desktop application: how to make a menu item bold?

    Hi, I'm using Flash CS6 to develop an AIR desktop application for OSX. I've created my menu using NativeMenu and such, but I can't find a way to make the first menu item bold, like a true OSX app. So far the little I've found on this always referred to Flex, not Flash. Any hints?
    Thank you.

    Thank you, kglad.
    I think I forgot to mention I'm building an Application Menu. The NativeMenu contains NativeMenuItems and there is no format property or method that I can see. Also, the name the menu item displays is its label property, which you can set, but it's a string, and I believe the htmlText applies to textfields, right?

  • Re: Flash Air desktop application

    Hi there,
    I have developed a flash air desktop application with the help of a flash programmer.
    Soon I will put it online for sale. How could I avoid illegal copy from spreading around?
    I need a lot of info regading this.
    Please help me with this issue.
    Many thanks

    A possible solution is described here:
         http://nsdevaraj.wordpress.com/2009/01/20/licensing-flex-air-application/
    HTH.

  • Flash air desktop application

    Hello there,
    We developed an application.
    The window of our application cannot be maximize after it is install on our desktop.
    How could we get this fonctionnality?
    Please help.
    Many thanks

    Are you saying that it is possible to get this fonctionality (maximise
    without stretching) when using flash air desktop application?
    Yes, you can maximize a window without distorting the contents. When using Flash, the stage scale mode defaults to one of the scaling modes. For your app it sounds like you should set the scale mode to the "noScale" option.
    If yes, Do you recommend the utilization of aire for the distribution of our
    application?
    I don't know enough about your application to make any kind of recommendation, and anyway my opinion might be biased since I am an Adobe employee.
    Also could you recommend us a way for limiting the illegal distribution?
    I don't think there is a fool proof way to do it (in general DRM is a race between the publishers and the hackers). Adobe doean't provide any tools for this. Presumably, there are 3rd party tools for application DRM that you could use (but that's outside my area of expertise).
    For a homegrown approach to the problem, you could require that users of your application create a user account on your web site and download a license file in order to run the application.  This isn't perfect, because someone could hack your application to remove the check for the license, but it would prevent casual copying.

  • How to allow multiple instances of air desktop application

    hi all
    Adobe air desktop application only allow single instance of
    application. How to allow multiple instances like in other desktop
    applications?.
    thanks

    Thanks a lot morgair, i will check with exe4j tool.
    Actually the problem is, thread is not waiting for second request.
    thatswhat i thought it may because of thread.
    Thanks & Regards
    Sudha

  • Problem using application client for local stateful session bean

    Hi,
    I have deployed a local stateful session bean in Sun J2EE 1.4 application server.
    On running the applclient for the stateful session bean application client i get the following error:
    Warning: ACC006: No application client descriptor defined for: [null]
    cant we use application client for local stateful session beans. becoz the application runs smoothly when i changed the stateful sesion bean to remote.

    Hi,
    No, an ejb that exposes a local view can only be accessed by an ejb or web component packaged within the same application. Parameters and return values for invocations through the ejb local view are passed by reference instead of by value. That can't work for an application client since it's running in a separate JVM.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • AIR Desktop Application for Linux running HTML5 and JS

    Hello all,
    Can I build an application with Adobe AIR coding in JS + HTML5? Once it was indeed possible and there are even tutorials on this technique:
    http://www.adobe.com/devnet/air/air_javascript.html
    If it's still possible with AIR 3.8, how can I build an existing website into a desktop application that will run in debian Linux? I'm struggling to find a resource that teaches how to actually build the application with AIR SDK. I've found how to build an application written in AS3 but not HTML + JS.
    Thanks

    Thank you, kglad.
    I think I forgot to mention I'm building an Application Menu. The NativeMenu contains NativeMenuItems and there is no format property or method that I can see. Also, the name the menu item displays is its label property, which you can set, but it's a string, and I believe the htmlText applies to textfields, right?

  • Registering event as application event for local class inheriting grid clas

    hello all,
         i have a scenario where i have to use many events as system events and one event as a application event for a local class defined which inherits cl_gui_alv_grid can any one tell me how exactly could  i do it.
    Thanks,
    raju N

    Hello Uwe,
    Each of them- "Dynpro" and "Programs" has 2 entries:
    Dynpro     0100 Müller
                   0200 Harryhirsch
    Programs SAPTROX1
                  SAPTRIXTROX
    How can you say that "Programs" has children and "Dynpros" not?
    Regards,
    Christian

  • Detect CD drive from Flex-AIR desktop application???

    Can we detect CD drive from  Flex-AIR destop application even though there is no CD or Blank CD inside the drive?

    AIR 2.0 supports native code integration.
    http://labs.adobe.com/technologies/air2/
    This may be useful in hooking into native CD/DVD writing capabilities.

  • Graphics Interface for browsing through local directory structure

    Hi ... Friends,
    Is there a way in Forms 4.5 under Windows 95 for providing a graphical interface to the user for browsing through his local disk and associated files and directories?
    Something like the window we get when we File -> Open in any windows application, which allows the user to open a file ...

    Hi, Abhijit
    The function win_api_dialog.open_file might be what you're looking for.
    It's included in the d2kwutil.pll, which is part of Forms Demos.
    Hope this helps,
    Pedro

  • Invoke browser from air desktop application

    Hi,
    How do I start the browser (if not running), and load a web page into a specific tab of the default browser? Is this possible?
    Thanks

    I still have a problem with this. I call
         navigateToURL(new URLRequest ("http://www.adobe.com"), "Foo");
    But it starts a new browser tab (Firefox) every time. I specify the custom name so it re-uses the same tab.

  • Adobe AIR Desktop Application - HD Video Playback

    Hello everyone,
    I am new to the forums. Hope I am posting in the correct one.
    I have been doing AS3 development for last 2 years. But recently I had to implement a HD Video playback in windows. I was happy to know that StageVideo helps in that case. So I started coding and created projector (not with Adobe AIR , but to play with Flash StandAlone player). Was working great , playing 3840*1080 video with ease, awesome performance. But the problem came when I had to switch to fullscreen in that program. We were using 2 Monitors with extended desktop to give 3840x1080 resolution. The Flash could switch only to one screen. I leanred a new thing , Flash just can not switch fullscreen on two screens, be it standalone/web.
    Then I came across AIR , saw on some forums that with NativeWindow class you can pretty easily run a AIR app fullscreen on 2 different monitors. I thought awesome ! I installed Flash Develop and got started with AIR 3.7 SDK. when I ported my AS3 code for AIR app , came to know that the stageVideo does not work here (that was completely unexpected!). So Now I am confused which path to take as Flash can not go fullscreen on dual monitors, and AIR can not use stageVideo.
    Any help will be appriciated. Thanks in advance.
    Edit -
    The StageVideo Class seems available , but it returns the stage.stageVideos.length as 0. Attached a StageVideoAvailabiliityEvent to stage but seems it never is available. Any other way to play HD Video ? Native flash.media.Video is not able to handle such big video.
    Message was edited by: amitsarangi

    Hello everyone,
    I am new to the forums. Hope I am posting in the correct one.
    I have been doing AS3 development for last 2 years. But recently I had to implement a HD Video playback in windows. I was happy to know that StageVideo helps in that case. So I started coding and created projector (not with Adobe AIR , but to play with Flash StandAlone player). Was working great , playing 3840*1080 video with ease, awesome performance. But the problem came when I had to switch to fullscreen in that program. We were using 2 Monitors with extended desktop to give 3840x1080 resolution. The Flash could switch only to one screen. I leanred a new thing , Flash just can not switch fullscreen on two screens, be it standalone/web.
    Then I came across AIR , saw on some forums that with NativeWindow class you can pretty easily run a AIR app fullscreen on 2 different monitors. I thought awesome ! I installed Flash Develop and got started with AIR 3.7 SDK. when I ported my AS3 code for AIR app , came to know that the stageVideo does not work here (that was completely unexpected!). So Now I am confused which path to take as Flash can not go fullscreen on dual monitors, and AIR can not use stageVideo.
    Any help will be appriciated. Thanks in advance.
    Edit -
    The StageVideo Class seems available , but it returns the stage.stageVideos.length as 0. Attached a StageVideoAvailabiliityEvent to stage but seems it never is available. Any other way to play HD Video ? Native flash.media.Video is not able to handle such big video.
    Message was edited by: amitsarangi

Maybe you are looking for

  • Is there a way of improving my graphics on my early 2011 macbook pro 13"?

    Does anyone know a way of improving the graphics capability for OpenGL with the Intel 3000 chips in the early 2011 MBP 13"? I bought it not realising the graphics chips had been downgraded and now as a result struggle to do any CGI work that I rely o

  • Hr abap programming help

    can anyone help on this ? Selection screen having p2001-BEGDA, P2001-ENDDA and PA0001-BTRTL. <u><b>Flow of the Report:-</b></u> 1.     Get Date(P2001- BEGDA and P2001- ENDDA) using selection criteria from selection screen 2.     Get Personnel sub are

  • Using GP Runtime Manager in CAF

    Hi, I would like to create a CAF operation to access our Guided Procedures processes via the GP Runtime Manager. In my CAF project I have added the dependencies to both caf/eu/gp/api and caf/eu/gp/api/wd and checked all the 3 'Design Time', 'Deploy T

  • Endnotex4

    I am running endnotex4 in Pages on Lion.  I understand Endnote officially is not supported on Lion, but if you know of a solution to my issue that would be great. When I click on 'Endnote citation' under the insert menue in pages the dialogue box app

  • Transport org. unit & position to another system

    Hi, I modified some org. units and positions in development and system did not ask for a transport request. How can I move my objects into test system ??