How to get folder(directory path only not file path) from local file system

Hi Firends,
How to get folder(directory path only not file path) from local file system , whenevr i will click on browse button.
Please give reply for this one , if anybody knows.
Thanks,
Anderson.

Hi Anderson,
if you're using flash.filesystem.FileReference - then it is run in black box - except of filename, size and creation data (and few other properties available after some operation succeeded). This is part of security features in Flash runtime (described in header section):
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference .html
This for example implies that user can download a content to local machine - but that content cannot be loaded back into Flash runtime. For this you would need either Air runtime flash.filesystem.File:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.h tml
(so you would created Air runtime based application: desktop or mobile but not web, even as standalone project) or you would need one of 3rd party tools that add file access/file information features to standard Flash runtime applications converted to standalone native applications.
hth,
kind regards,
Peter

Similar Messages

  • IOS: (not) playing sound from local file system - Error #2032

    Dear all,
    I am working on an app where I want to (among others) play sound files from the local file system.
    I have added a few mp3 files into my .ipa file.
    With a small file browser in my app I can select any one of them which returns me a File object.
    I then use this File object to do a URLRequest to load the sound:
    var req:URLRequest = new URLRequest(file.nativePath);
    sound = new Sound();
    sound.addEventListener(IOErrorEvent.IO_ERROR, soundLoadError);
    sound.addEventListener(Event.COMPLETE, soundLoaded);
    sound.load(req);
    It works in flash, but fails on the iPAD. Everytime I try to load, I get a IOErrorEvent with error code Error #2032
    When I replace new URLRequest(file.nativePath) with URLRequest("http://.../testfile.mp3"), everything works fine!
    Any help appreciated.
    Is this a matter of Security settings? Can I change those?
    Something to do with Sandboxing (whatever that is)?
    or something to do with cross-domain access?
    I have been looking around for days now and any help would be appreciated!
    I am using Flash CS5.5 & AIR 2.7
    Thanks, Marcus.

    Hi Sanika,
    this was something closer to that paragraph for "nativePath":
    Some Flex APIs, such as the source property of the SWFLoader class, use a URL (the url property of a File object), not a native path (the nativePath property).
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.h tml#nativePath
    but that is not exactly what I've read (maybe that was A-blog or post on someone from A-team on his personal blog or post on stackoverflow).
    (myself I'm using and providing solutions for paths using FILE protocol - file URI schemes - mostly whenever I can and where it is supported)
    regards,
    Peter

  • How do I display Canvas Graphic image (Not Iconic button) from jar file

    Hi all,
    I am currently using Forms 10g.
    I have gone through the tutorials on how to add Button Icons into Jar files for web enables forms .....so far so good
    This however does not explain what I actually want to do... since "graphic images are by nature embeded in the for rather than referenced ......so here goes ..
    I have a forms 10g application where all the individual form modules/canvases display a big banner (covering top 20% of the screen). This was done by importing the image straight unto the content canvases. As you know this now becomes a "graphic Image" now embeded(& not referenced by file name) on the canvas. Also bear in mind that this is actually different from an "Image Item" which is a block object.
    I dont know if this is possible, but what steps do i follow to make the image part of a jar file as opposed to my current situation. Please let me know if possible or not so I stop waisting development time looking for answers :)
    Another question is how do i make this jar file a library object so that we can vary the image as we wish
    NB: one other trick which i can think of is to create a giant push button across the screen to display the image and then stick it in a jar file !
    Cheers
    css_jay99

    I don't know about embedded images imported in from the builder, but there is a way to use READ_IMAGE_FILE into a BLOCK.IMAGE_ITEM where the images are all in a jar file stored on the OAS.
    Metalink Note:137397.1 explains it in details.
    Tony

  • Get-ChildItem directory only (not full path) on error output

    Hello,
    I currently use the snippet below to check for folder permissions, it outputs a CSV file which details Category, Reason and TargetName. When I open my error.csv file I see the 3 columns being populated, but how can I get a 4th column with the directory name
    as well? TargetName outputs the complete path to the folder, I want to also include the directory name in the CSV.
    $Path = "C:\test"
    $errors=@()
    get-childitem -recurse $Path -ea silentlycontinue -ErrorVariable +errors | Out-Null
    $errors | select -expand categoryinfo | select category,reason,targetname | export-csv -NoTypeInformation -Delimiter “,” .\error.csv
    Any help would be appreciated. At this point I dont think getting the directory name only is feasible with my method. I've tried many exampled but cant seem to get it. As easy as it may sound.
    Thank you.

    Hi jrv,
    I plugged in your suggestion as follows:
    $Path = "C:\test"
    $errors=@()
    get-childitem $Path -recurse -ea silentlycontinue -ErrorVariable +errors | Out-Null
    $errors | Select TargetObject
    It works but I'm still receiving the full path to the directory. How can I get only the directory name?
    You cannot use $errors.  It is owned by the system and will give you issues.
    If you want a folder name from a full path just use Split-Path
    I took the + out for a reason. It was not a mistake and I changed the name of the variable for a reason.  The custom error variable will fill with all errors and will be created new each time this is run. Try it without changing it incorrectly until
    you understand what is happening.  Don't just blindly do things because it feels good or because you saw a friend do it.
    $Path = 'C:\test'
    get-childitem  $Path -recurse -ea silentlycontinue -ErrorVariable myerrors| Out-Null
    $myerrors| %{Split-Path $_.TargetObject -leaf }
    PowerShell is very easy If you take the time to learn it. If you just guess you will never learn.  Believe me you could never guess how it works short of a course in software engineering.
    ¯\_(ツ)_/¯

  • Okay i had to install Itunes onto my new OS because window's Vista messed up on me and i can't get any of my old purchases back from my account such as music and movies any ideas on how to get them back (i do not have the folder that contains old items)

    Okay i had to install Itunes onto my new OS because window's Vista messed up on me and i can't get any of my old purchases back from my account such as music and movies any ideas on how to get them back (i do not have the folder that contains old items from the last itunes or anything from that OS because it had a virus and i just wanted windows 7)

    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Hope this helps,
    JD

  • Cant get rid of repeating future events. How to get rid of these and not have forever!! ??

    Cant get rid of repeating future events.  I deleted the calendar with these events but now I still have these "ghost" events showing up!! How to get rid of these and not have forever!! Really irritating, wont use repeat events ever again!! Have this problem on iphone and ipad even though deleted calendar from both!! Which BTW deleted my email connected with it too which was really irritating.

    Marisalynne wrote:
    I have the applications folder in my harddrive and then the one that I moved to my desktop when I first got my computer.
    Where was the one that you moved to your desktop before you moved it to the desktop?
    I really don't understand what you're trying to say. If I have a folder in A, and I move it to B, then the folder will be in B. There is no duplication. I still have only one folder, only the location is different.
    Furthermore, your desktop is on your hard drive. Everything is on your hard drive.

  • How to get the list of only installed bundled application on mac os X through programmatically???

    how to get the list of only installed bundled software on mac os X through programmatically???

    I think what you get is below;
    App Store
    Calculator
    Calendar
    Contacts
    Dashboard
    Dictionary
    DVD Player
    FaceTime
    Font Book
    Game Center
    Image Capture
    iTunes
    Launchpad
    Mail
    Messages
    Notes
    Photo Booth
    Preview
    QuickTime Player
    Reminders
    Safari
    Stickies
    System Preferences
    TextEdit
    Time Machine
    Twitter
    Activity Monitor
    AppleScript Editor
    Audio MIDI Setup
    Bluetooth File Exchange
    Boot Camp Assistant
    ColorSync Utility
    Console
    DigitalColor Meter
    Disk Utility
    Grab
    Grapher
    Keychain Access
    Migration Assistant
    Network Utility
    RAID Utility
    System Information
    Terminal
    VoiceOver Utility
    X11
    XQuartz
    Note if you buy a new Mac with ML preinstalled the list may be larger.

  • How to get Folder or document service permissions  by using  KM API's

    Hi,
    Any help how to get Folder or document service permissions  by using  KM API's  
    Any help or hint is greatly appreciated.
    Thanks,
    Costa.

    Hi,
    I have tested it here and it works for me (this code lists the service permissions settings for folder /documents/temp/):
        RID rid = RID.getRID("/documents/temp");
        try {
          IUser user = (IUser) request.getUser().getUser();
          IResourceContext context = new ResourceContext(user);
          IResource res = ResourceFactory.getInstance().getResource(rid, context);
          IResourceFactory resourceFactory = ResourceFactory.getInstance();
          IRepositoryServiceFactory serviceFactory = resourceFactory.getServiceFactory();
          IAclService aclService = (IAclService) serviceFactory.getRepositoryService(res, IWcmConst.ACL_SERVICE);
          IResourceAclManager aclResourceManager = aclService.getAclManager();
          IResourceAcl resourceAcl = aclResourceManager.getAcl(res);
          boolean inheritedAcl = false;
          if (resourceAcl == null) {
            resourceAcl = aclResourceManager.getInheritedAcl(res);
            inheritedAcl = true;
          response.write("<strong>SERVICE PERMISSION OWNERS</strong><br>");
          IUMPrincipalList ownerList = resourceAcl.getOwners();
          IUMPrincipalListIterator ownerListIt = ownerList.iterator();
          while (ownerListIt.hasNext()) {
            IUMPrincipal ownerPrincipal = ownerListIt.next();
            String strPrincipal = ownerPrincipal.getId();
            response.write(strPrincipal + "<br/>");
          response.write("<br><strong>SERVICE PERMISSIONS</strong><br>");
          IResourceAclEntryList el = resourceAcl.getEntries();
          IResourceAclEntryListIterator it = el.iterator();
          while (it.hasNext()) {
            IResourceAclEntry entry = it.next();
            String strEntryPerm = entry.getPermission().getDescription();
            String strPrincipal = entry.getPrincipal().getId();
            response.write("<strong>" + strEntryPerm + "</strong> - principal: " + strPrincipal + "<br/>");
            IAclPermissionList plList = entry.getPermission().getMembers();
            IAclPermissionListIterator plListIterator = plList.iterator();
            while (plListIterator.hasNext()) {
              IAclPermission perm = plListIterator.next();
              response.write(perm.getDescription() + "<br/>");
        } catch (Exception e) {
          response.write(LogWriter.extractCallStack(e));
          LogWriter.traceSevere(LogWrapper.trace, e, LogWriter.extractCallStack(e), true);
    Romano

  • How do you print in black only (not color) on Canon MG3520 printer?

    How do you print in black only (not color as I want to conserve color)  on Pixma MG3520 printer.

    No, sorry.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • I've used iMessage for abit now and latly my step dad has got an ipad that is now joint to the same computer and on his ipad is my number and the email for imessage and i want to no how to get it of fully and not just untick it?

    I've used iMessage for abit now and latly my step dad has got an ipad that is now joint to the same computer and on his ipad is my number and the email for imessage and i want to no how to get it of fully and not just untick it?

    Hi barryfromwarrington,
    Welcome to the Support Communities!  There are two things I can think of to keep your Stepdad's information separate from yours on the computer and the iPad.   On the computer, he should have his own administrative account, and on the iPad he needs his own Apple ID for iTunes and iCloud services.  Here is some basic information to get started.  I don't know if you have a Mac or Windows computer, so I'll include info for both.)
    OS X Yosemite: Set up users on your Mac
    http://support.apple.com/kb/PH18891
    OS X Yosemite: Set up users on your Mac
    If your Mac has multiple users, you should set up an account for each person so he or she can personalize settings and options without affecting other users. 
    Add a user
    Choose Apple menu > System Preferences, then click Users & Groups.
    Click the lock icon  to unlock it, then enter an administrator name and password. 
    Click Add  below the list of users. 
    Click the New Account pop-up menu, then choose a type of user.
    administrator: An administrator can add and manage other users, install apps, and change settings. 
    Enter a full name for the new user. An account name is generated automatically. To use a different account name, enter it now—you can’t change it later. 
    Enter a password for the user, then enter it again to verify. Using a password hint is recommended to help the user remember his or her password. 
    Click Create User.
    For an administrator, select “Allow user to administer this computer.”
    Last Modified: Nov 18, 2014
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues - Apple Support
    http://support.apple.com/en-us/HT203206
    Follow the steps below to create a new user account in Windows Vista or Windows 7:
    Choose Start > Control Panel.
    Open "Add or remove user accounts." (If you're using the Classic view in Windows Vista, open "User Accounts," and then open "Manage another account.")
    Select "Create a new account" and follow the instructions to set up the account.
    Once you create the new account, choose Start > Log Off.
    Log in to the new user account.
    Open iTunes and see if the issue you're experiencing persists in this new user account.
    Frequently asked questions about Apple ID - Apple Support
    http://support.apple.com/en-us/HT204161
    iCloud: Set up iCloud
    http://support.apple.com/kb/PH2609
    Cheers,
    - Judy

  • How the message appear to reciever only not the sender.

    Hi Everyone,
    I want to know in p2p or client server architucture ,how to view a Instant Message without adding the sender ip or Machine name , such in all IM software the sender see it's message what i need is how the message appear to reciever only not the sender.
    How can i exctract the Machine name on a Lan.

    OCKBA wrote:
    I want to know in p2p or client server architucture ,how to view a Instant Message without adding the sender ip or Machine name ,For the server to receive a message, it has to read it from a socket. To prevent the sender seeing its own message, remember which Socket it came from and make sure it doesn't go back to that Socket.
    How can i exctract the Machine name on a Lan.socket.getRemoteAddress()

  • How to get report in excel format instead of pdf from oracle forms.

    Hi,
    How to get report in excel format instead of pdf from oracle forms.
    Form & Report developer 10g
    report format .rdf

    create a report using report builder.
    call the report from form using the following procedure
    DECLARE
         RO_Report_ID REPORT_OBJECT;
         Str_Report_Server_Job VARCHAR2(100);
         Str_Job_ID VARCHAR2(100);
         Str_URL VARCHAR2(100);
         PL_ID PARAMLIST ;
    BEGIN
    PL_ID := GET_PARAMETER_LIST('TEMPDATA');
         IF NOT ID_NULL(PL_ID) THEN
    DESTROY_PARAMETER_LIST(PL_ID);
         END IF;
         PL_ID := CREATE_PARAMETER_LIST('TEMPDATA');
         RO_Report_ID := FIND_REPORT_OBJECT('RP2RRO');
         Add_Parameter(pl_id,'P_SUPCODE',TEXT_PARAMETER,:CONTROL.S_CODE);
    Add_Parameter(pl_id,'P_INVOICE_NO',TEXT_PARAMETER,:CONTROL.IN_NO);
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_FILENAME, 'INVOICE_REG_DETAILS.rep');
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_EXECUTION_MODE, BATCH);
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESTYPE, FILE);
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESFORMAT, 'SPREADSHEET');
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_SERVER, 'rep_dbserver_frhome1');
         Str_Report_Server_Job := RUN_REPORT_OBJECT(RO_Report_ID, PL_ID);
         Str_Job_ID := SUBSTR(Str_Report_Server_Job, LENGTH('rep_dbserver_frhome1') + 2, LENGTH(Str_Report_Server_Job));
         Str_URL      := '/reports/rwservlet/getjobid' || Str_Job_ID || '?server=rep_dbserver_frhome1';
         WEB.SHOW_DOCUMENT(Str_URL, '_SELF');
         DESTROY_PARAMETER_LIST(PL_ID);
    END;

  • The specified UNC path does not contain a valid WIM file or you do not have permission to access it. please specify a valid path

    I loaded 4 captured images into SCCM via the Add Operating System Image Wizard 2 months ago.
    I have since captured another image to the same location (which is the SCCM site server) and tried to add it to the server.
    I am getting error
    the specified UNC path does not contain a valid WIM file or you do not have permission to access it.  please specify a valid path
    nothing has changed on the site server that i can think of.
    i am domain admin and permissions have not changed.
    anyone got any answers?
    please help i am baffled

    I am having similer issues.
    Win 2003 SP2 - SCCM2007 SP2 R2 single site with MDT2010 intergrated but can not get a MDT2010 TS Captured WIM to import into SCCM OS Images "Invalid WIM". allso i tried to mount the MDT WIM image without luck (Invalid Image). however a SCCM TS
    will Capture and I can Import it into OS Images. it seems like something is amiss with MDT or WAIK possibly.

  • How to get the source code of an HTML page in Text file Through J2EE

    How to get the source code of an HTML page in Text file Through J2EE?

    Huh? If you want something like your browser's "view source" command, simply use a URLConnection and read in the data from the URL in question. If the HTML page is instead locally on your machine, use a FileInputStream. There's no magic invovled either way.
    - Saish

  • How to get the source code of an HTML page in Text file Through java?

    How to get the source code of an HTML page in Text file Through java?
    I am coding an application.one module of that application is given below:
    The first part of the application is to connect our application to the existing HTML form.
    This module would make a connection with the HTML page. The HTML page contains the coding for the Form with various elements. The form may be a simple form with one or two fields or a complex one like the form for registering for a new Bank Account or new email account.
    The module will first connect through the HTML page and will fetch the HTML code into a Text File so that the code can be further processed.
    Could any body provide coding hint for that

    You're welcome. How about awarding them duke stars?
    edit: cheers!

Maybe you are looking for

  • When try to download an app i got error 1009 how to solve that

    when try to download an app i got error 1009 how to solve that

  • ATS integration

    Hi, My team is developing a recruitment platform. At the moment, we redirect the users to the partners ATS to complete their job application. This is a very bad user xp, because we have been captured the majority of the details what the users have to

  • Macbook air keeps freezing on ichat cam and skype

    I have a macbook air that keeps freezing whenever I webcam with someone. How can I solve this problem? It doesn't last for 10 minutes. Is it a hardware problem or the webcam itself? I need a solution for this.

  • 1.1.3 update went great!!! But one gmail issue!

    The update was simple and works great. Thanks apple. One little issue is now my gmail on my iphone has 2500 emails sitting in my inbox. How do I get rid of them? Please don't say one by one???

  • Justified alignment not working

    Hi, I can't seem to justify a block of text. After selecting it, I can align it to the left, to the right and center it but the button for justified alignment does not light up to clik. So what can I do? Is it a bug? Thanks Katherine