How can I open a local folder using flash builder or AS3?

I need to open a local folder get the zip file and unzip it.
I know that i cannot open a folder using flash builder, i did it using air app. now i do not know how do i integrate it with my flex program.
Please help me with this issue.
Thanks

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script source="Asset/folder.as" />
<mx:Button x="10" y="10" label="My Button" width="122" height="31" id="myButton" click="folder()"/>
<mx:ComboBox x="10" y="49" id="cbobx" dataProvider="{}"  ></mx:ComboBox>
</mx:Application>
and .as code is:
// ActionScript file
import flash.display.*;
import flash.events.*;
import flash.net.FileFilter;
import flash.net.FileReference;
import flash.net.FileReferenceList;
import mx.controls.Alert;
import mx.controls.ComboBox;
private var fr:FileReferenceList;
private var cmbobx:ComboBox = new ComboBox();
    private function folder():void
fr = new FileReferenceList();
fr.browse([new FileFilter("Zip Files", "*.zip")]);
fr.addEventListener(Event.SELECT, listZipFiles);
private function listZipFiles(e:Event):void
Alert.show("selectHandler: " + fr.fileList.length + " files");
        var fls:Array = new Array();
        var file:FileReference;
        for (var i:uint = 0; i < fr.fileList.length; i++)
            file = FileReference(fr.fileList[i]);
            //Alert.show("File Name: " + fr.fileList[i]);
            Alert.show("File Name: " + file.name);
            fls.push(file);
            cmbobx.selectedItem = fls;
private function getShpFiles(event:MouseEvent):void

Similar Messages

  • How can I call functions in packages using flash builder?

    a new guy in flash developnet, I need to find out a way to import multiple packages into frames and call functions. I know how to import packages, but an error occurs error 1120 : access of undefined property. How can ı solve them?
    Is there any easy way to add Mediapomise object to the stage form the package? "addChild(loader);" does not work? or ı do not know whether it works or not, ı could not see the photo that ı took from camerauı object in android.
    thank you 

    I need to find out a way to import multiple packages into frames
    Usually, no matter where you use any classes of any package, the imports happen always in the beginning.
    If you have a specific problem with flashbuilder you should post in this forum:
    http://forums.adobe.com/community/flash_builder

  • How can i open the directory/​folder and read all the files inside it in order and then close it?

    How can i open the directory/folder and read all the files inside it in order and then close it? any example would be nice.
    thanks

    In the File I/O>>Advanced File Functions Palette is a function named "List directory". This function will give you two arrays. One contains the names of all subdirectories the other the names of all files. If you want to sort them by name use the array sort function. If you want to sort them by another attribute use the File/Directory Info function to get more data. Use a cluster which contains the attribut to sort and the original index of the name. Then sort this array.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • How can we open a new folder in the email account (ex: need to save certain emails into a new fodder called "work". can anyone help

    How can we open a new folder in the email account (ex: need to save certain emails into a new fodder called "work".
    Anyone can help?

    Right click on any folder in mail and select Create new mailbox.

  • How can I open a new page (using "Pages") when I already have another page open?  It just keeps reverting to the page I have opened already and won't let me open another one?

    How can I open a new page (using "Pages") when I already have another page open?  It just keeps reverting to the page I have opened already and won't let me open another one?

    To make a new document, go to File > New From Template chooser and choose the type of document you wish to create.
    To add a new page to an existing document go to Insert > Sections > Blank.

  • How can we create such navigation buttons using Flash CS4?

    Hi,
    How can we create such navigation buttons using Flash CS4 is in the following website? Please help me with any such tutorial to make my custom navigation bar/buttons.
    http://city.reallusion.com/join.html
    Thanks.

    While the Note 4 is a reasonably large device it still falls into the phone layout bucket. We need this layout to function on very small screens some as low as 320 pixels high and 240 pixels wide. These sorts of devices don't have the space for a full toolbar.

  • FB 4.5.1 How can I add assets/locale folder to a release build?

    I have a locale folder in my src directory, but it does not appear in the package contents when creating a Release Build, only for Run/Debug.

    Hi Peter
    Sorry, I was going to take a look at this this morning but got caught up in meetings. Glad you managed to work it out. I have a proposal for you, how about letting me post your solution to hte BIP blog? I can write it up and just use your examples ... full credit to you of course :o)
    Regards, Tim

  • How can I open a DCIM folder ?

    I have downloaded an iPhone photos folder in the DCIM but when I open open it
    There is not thing appear on it but it's appear that the folder size is 1 gb
    So how can I see my photos

    Just how did you do that?
    If y go to My Computer>iPod>DCIM folder and click on the folder and then click on the folder that then opens yo should see the photos and should should be able to copy the pohtos to your computer.
    For more info see:
    iOS: Importing personal photos and videos from iOS devices to your computer

  • How can I open/save .xlsx file using java

    Hi
    I have a jsp whose contenttype of response is application/vnd.ms-excel.
    When I am saving the file as .xlsx and opening from disk it displays error message.
    How can I save and/or open the file as .xlsx?
    Any advice will be appreciated.
    Thanks
    Rohini Kumar J

    sunshine_vennela wrote:
    I have a jsp whose contenttype of response is application/vnd.ms-excel.That's not the way to create excel files. You're just creating a plain vanilla HTML file and fooling the browser with a wrong content type.
    Checkout the Apache POI XSSF API or the OpenXML4J API's to create xlsx files and use a servlet to write it to the outputstream.

  • How can I open old cwk files using OS X 10.8.4?

    I have tried to open old cwk files using Pages, using Numbers and using Keynote as well as trying to open them with Word or even OpenOffice.  However, the most I can get is what looks like gibberish.  Any suggestions?  Thanks

    Don't know if you found a solution to your cwk File problem but I had the same problem and solved it by downloading this program and was able to open my old cwk files.
    libreoffice That will oppen old cwk files and its free (by donation)
    Hope this helps?
    Cheers

  • How can I open AppleWorks 6 files using Pages or Word?

    I am currently running Mac OS X v.10.4.11, but I am turning in my old mac for a new one in about a week. Almost all of my important files are AppleWorks 6 files and my new mac will not have this program since it has been replaced with Pages. I currently have AppleWorks 6, Microsoft Word 2004 for Mac, and Pages 08 on my old mac. I am unsure as to what applications I will have on my new mac (I am a teacher and the macs are school computers so I do not have control over the software), but I think it will have both Word 2008 and Pages 08 or 09. So far I have not had any luck opening my AppleWorks files in Pages or Word. I have been able to copy and paste the AppleWorks files into Pages (they are mostly Draw documents, not simple word processing), but they become an image so I cannot edit the content. I need to be able to edit my documents on my new computer and do not have time to open each AppleWorks file and copy it to Pages anyway. Any suggestions to help me with this compatibility problem?

    AppleWorks will run fine on your new Mac, though if you transfer it from the old one you should delete it from there to stay within the terms of the licence. You would need to copy the Appleworks folder over, not just the application.
    Pages can open Appleworks 6 word processing documents, Numbers can open Appleworks 6 spreadsheets. It's possible to open AW Draw documents in Eazydraw, or in Pages through a workaround. Nothing will open AW Database documents.
    I have written a detailed article going into the process of migrating from Appleworks, including the workaround for Draw>Pages:
    http://www.wilmut.org.uk/aw

  • How can I open encrypted files from a flash drive?

    I moved transferred files from my work PC to a flash drive and had to encrypt them using Credant.  I know the password but can't find a way to decrypt the files on my mac...

    You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import.
     Cheers, Tom

  • Flex Mobile project - How can I open a database csv?

    How can I open a database with csv flash builder and load the contents into a list?

    STARTUP OPEN;
    Check this link
    http://h50.isi.u-psud.fr/docmiage/oracle/doc/server.817/a82950/ch5.htm

  • HT202879 how can I open a Word document in Pages 09?

    How can I open a Word document using Pages 09 please? I am trying to open Word documents from a CD using both trying to open in Pages, nd dragging and dropping into the Pages icon in the dock. It tells me, every time, thast the document cannot be opened.

    What happens if you open it in TextEdit or LibreOffice [free]?
    Does it open where you got it from?
    Peter

  • How can I open my books in iBook saying not formatted but is downloaded?

    Since my iPad was reset unable to open my books in iBook saying not formatted how can I open?

    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch

Maybe you are looking for