Need help - How to check online status of file?

Hi.
I'd like to make my flash app checks whether a particular file is online.
Let's say this file is 1MB. How do I make it so that when the flash app checks the URL of the file, it won't download the whole thing?
That is, once the flash app confirms that the file is up, it immediately cancels the download and displays a status message that the file is up. And if there's a 4xx or 5xx message, it will report appropriately.
I'm a total newbie, so I don't know how to go about this. I'd appreciate it if you could point me in the right direction.
Thanks.

you can use the filereference class'es download() method and its listener's onProgress() method.

Similar Messages

  • How to check the status of file downloading?

    I have to download the selected file by using "file download" dialogue box.
    This "File Download" dialogue box provides options for "Open", "Save", "Cancel" or "More Info". It is similar to usual "File Downloading".
    And i am required to do further processing only if , file is "Open" or "Save".
    So how can i check the status of the option selected by the user?
    Following is the code snippet:
    res.setContentType("text/plain");
    res.addHeader("Content-Disposition", "attachment; filename=" +value);
    try
         uFile= new File(fPath);
         fSize=(int)uFile.length();
         fis = new FileInputStream(uFile);
         c=-1;
         while ((c = fis.read()) != -1)
              out.print((char)c);             
         fis.close();
         out.flush();
         out=null;
    catch(Exception e)
           out.println("Exception : " +e);
    } I tried to generate a flag and inside a while loop, and then checking the status of that flag outside of loop.
    But it doesn't work.
    It reflects the value of flag even if user selects "Cancel" Option.
    So, if there is any another way of checking the option selected by user from "Open","Save" or" Cancel", then please reply me.
    Thanks in advance.

    Is there any solution for this or any web link for this...?
    Thanks in advance,
    Waiting for reply

  • Please, I need help - How can I generate a text file with Word format?

    Hello friends at www.oracle.com ,
    is it possible for me to create a text file - that is, with TEXT_IO.fopen, and so on - that's already formatted as a Word document?
    We have a Forms program here, where it's needed to generate a text file with .RTF format, 8 centimeters margin, Times New Roman font, with size 7.
    Best regards,
    Franklin Goncalves Jr.

    Hello Shay,
    sincere thanks for your answer. And, to answer your last question, I'm using client-server model.
    Since I couldn't create this .RTF file by using built-ins like TEXT_IO, I tried to generate an .RTF file using Reports, passing the parameters DESTYPE, DESNAME and DESFORMAT, as shown below.
    add_parameter (pl_id, 'DESTYPE', text_parameter, 'FILE');
    add_parameter (pl_id, 'DESNAME', text_parameter, 'c:\franklin.rtf');
    add_parameter (pl_id, 'DESFORMAT', text_parameter, 'RTF');
    However, the just generated .RTF file is uncomprehensible. After opening the file at Microsoft Word, I can see the following message at the top of file:
    This file was created by Oracle Reports. Please view this document in Page Layout mode.
    ... and informations doesn't appear as desired.
    If I can't generate such text format by using TEXT_IO, and if generating an .RTF file through Reports shows me an incomprehensible result, how can I export the selected result to an .RTF file?
    When Reports is opened, choosing Generate to file -> RTF doesn't export anything.
    Thanks, and best regards,
    Franklin Goncalves Jr.

  • (Need Help) how to clear the recently opened file list on Flash Player 11?

    excuse me pals, may i ask how to clear recently opened file list under "File" tab on Flash Player 11 (the standalone player) ? i've tried to browse my registry but i can't find the solution (and i can't find the .mru files containg the list). my OS is Windows 7 32bit, i hope i can find solution here

    I found it in the Windows registry under HKCU\Software\Macromedia\FlashPlayer

  • How to check lock status of field in current document?

    Hi,
    How to check the status of field in current document(master agreement), that is whether its locked or not.
    I locked "Publish to Supplier" checkbox after MA is saved first time. Now, I want to check the status whether this field is locked or not in the same document.
    IsLockOwner( ) is not returning the correct value. Its not giving the current document field lock status.
    Is there any way to get current document field status?
    Thanks,
    Saloni

    Hi,
    If I understand correctly, your requirement is to get the value of this field "Publish to Supplier on". It can be achieved by writing the below:
    isVendorVisible = doc.getExtensionField("VENDOR_VISIBLE").get();
    Meaning, if the box is checked, it will return a value = true and if not then false.
    Hope this helps,
    Regards,
    Vikram Shukla

  • Hi GIRU,How to check workflow status in a database

    Hi GURU,
    I am a DBA one user asked me to chke the workflow status for om order line in database.Any body help me how to check the status of workflow om order line in database.

    See Oracle Database FAQs
    </br>

  • How to check system status from Windows command line?

    Does anyone has an idea how to check system status from Windows command line? In UNIX we use startsap check, unfortunately I didn't find an appropriate command provided by SAP.
    The only idea we have is to use
    tasklist /FI "Username eq SAPService<SID>" | find "disp+work"
    which isn't as nice as startsap check.

    Hi,
    In windows you can use the command
    go to profile directory in command prompt and the give the following command to check the status of the instance.
    sapstart check pf=START_DVEBMGS<nr>_<hostname>
    that means you need to mention start profile or instance profile. So that it will say whether the instance is running or not.
    If you want any other information please reply back to me.
    Thanks,
    Chaitanya.

  • My Creative Cloud subscription has expired, and I assigned the monthly payment, but I can not open any progam creative cloud, I need help how to solve this problem

    my Creative Cloud subscription has expired, and I assigned the monthly payment, but I can not open any progam creative cloud, I need help how to solve this problem

    Carlos-
    Start by signing out and back in to see if it will see the subscription: 
    How to sign in and sign out of creative cloud (activate/deactivate)
    If the apps are installed fine and close after launch see this link:
    CC applications close immediately after launch
    If the problem is something different, please let us know the error you see or what is happening on the screen so we can advise  you on a solution
    Pattie

  • Hi, I have this green mark (with pointing arrow looks like a link) on some words show on my window screen when I open a web page, I wonder if it is a virus link or such. Need help how to get rid of it. Thanks

    Hi, I have this green mark (with pointing arrow looks like a link) on some words show on my window screen when I open a web page, I wonder if it is a virus link or such. Need help how to get rid of it. Here's the example:
    WING
    GAMES
    MAJORITY
    Thanks

    If the third link you posted (the link containing the word "majority") does not look like the following then you inadvertently installed adware.
    That particular page should resemble the following:
    The word "majority" in the third paragraph should not be a link and should not have the green icon associated with it.
    To learn how this may have occurred, and how to prevent it from occurring in the future, read How to install adware
    Most so-called "news" websites are nothing more than entertainment outlets that cater to prurient interests, and contain advertisements that leave the user about three clicks away from installing junk. If you decide to frequent those websites, Safari's "Reader" feature helps minimize that exposure.
    Try it:

  • Mail server not responding. Need help how to verify my account

    Mail server not responding. Need help how to verify my account

    There are instructions on this page for how to create a new account without giving credit card details (the instructions won't work with existing accounts) : http://support.apple.com/kb/HT2534
    Unless an account is created via those instructions then credit card details will need to be entered on it before the account can be used.

  • How can I get a stripped screw out of the bottom of my iPhone?? I need help, How can I get a stripped screw out of the bottom of my iPhone?? I need help

    How can I get a stripped screw out of the bottom of my iPhone?? I need help, How can I get a stripped screw out of the bottom of my iPhone?? I need help

    Try asking at ifixit.com. The iPhone is not considered user servicable. You're not going to get much help on an Apple sponsored forum.

  • Need help how to use itunes card to download music

    Need help how to use itunes card to download music

    If you want to add the iTunes card to your account, then in the iTunes app on the iPad you should be able to scroll to the bottom of the Music tab and there should be a Redeem button - there is more info here : http://support.apple.com/kb/HT1574

  • I have I pad one use iOS 5.1.1 i want update to iOS 8 itry a lot time but no possible  i need  help how ican doit

    I have I pad one use iOS 5.1.1 i want update to iOS 8 itry a lot time but no possible  i need  help how ican doit.

    The iPad 1 can not be upgraded beyond 5.1.1.

  • I need help, How could I add Aliases to Local Administrator account via terminal commands???

    I need help, How could I add Aliases to Local Administrator account via terminal commands???
    I want to use commands to add alias for existing administrator account remotly by using ARD.
    Thanks.

    Hi,
    a Windows Domain Controller does not have any local user or groups. So you might add the user to the admin group at Domain level.
    B RGDS,
    Gregor
    Edited by: Gregor Gasper on Jan 9, 2009 1:44 PM

  • Hi I am new on the Mac, I need help, how can I run my apps from my library on my Mac Pro?  All my apps I was used in my iPad, thanks guys!!!!

    Hi I am new on the Mac, I need help, how can I run my apps from my library on my Mac Pro?  All my apps I was used in my iPad, thanks guys!!!!

    The Mac OS X and iOS versions are separate products

Maybe you are looking for

  • HELP!  Grey footnote reference text in InDesign CS5

    Footnote reference text appears in illegible grey highlighted form in InDesign CS5.  Footnote text itself retains numbering and styles.  How do I fix this

  • ESs loan reuest in portal.

    Hi sir, i am new to webdynpro java..please help me with relevant solution.. Actually i have a requirement like ..three types of loans are there ..those are placed into the drop down once employee selected the loan type and enter the amount then submi

  • Changes in orders arenu2019t updated in 2LIS_04_P_ARBPL datasource

    Hi experts; Iu2019m having a problem regarding the delta of datasource 2LIS_04_P_ARBPL. The problem is that some fields assign to the operations arenu2019t updated (fields like BMSCH u2013 standard from the datasource u2013 and VGW01/VGW02u2026/VGW06

  • Use AirPort Express to extend Verizon FiOS WiFi signal

    I have been having trouble with low/no signal strength from my FiOS router at the far end of my house where my main TV is located. I just tried to plug in my AirPort Express midway between the two, but can't get the Utility to recognise the FiOS netw

  • How can I start using Oracle Express Edition

    Good afternoon, how can I start using Oracle Express Edition? I have it installed it but I can not enter any user or key that allows me to manage the program from the Internet. I have understood that this version is free. Correct me I'm wrong and ple