Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

+ Reply to Thread
Results 1 to 2 of 2
  1. #1

    Default Help with making a file uploader

    Hello,
    I'm a complete flash noob at this point and am trying to learn as I go along. I've tried looking into a couple of books but didn't find them satisfactory (nor online documentation for that matter). But anyway. . .

    I'm trying to make a small, simple program to upload a couple files onto a server. But that isn't really important either at this point.

    MY question is this: I have a function where fr is a fileReferenceList and output_message is a test field used to display info.
    Code:
    function file_browse(event:MouseEvent):void
    {
        
        fr.browse();
        output_message.text = "Files waiting to be uploaded: \n";
        for(var i:Number = 0;i < fr.fileList.length; i++)
        {
            output_message.text += fr.fileList[i].name;
            output_message.text += "\n";
        }
    }
    Simple right? The problem is that I was expecting the function to hang for a minute at fr.browse() until the user finished selecting files but it doesn't. It goes right to the for loop, which exits immediately because fr.fileList has yet to be defined. Any way I can save this part from running until after the user is finished with selecting files?

    Thanks a lot for any help.

    -Tony

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2

    Default

    Hello,

    Thanks for the sharing this...

    Thanks,
    Smith Brown
    http://www.applemacvideo.com/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial