User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18

Thread: downloading File /Display Size /Help !

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2007
    Posts
    481
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    downloading File /Display Size /Help !

    I need the size from downloading File (FTP) in my application in % or Size on the counter, please with a sample (application)

    not the full size, only the downloading size

    hope you understand!

    Thanks
    Johnny

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: downloading File /Display Size /Help !

    You can use the file object to get the size of the file on your computer as it is being downloaded, an use a formula to get the percent:

    Decmal Percent: 100.0/(1.0*((TOTAL SIZE)/(1.0*(CURRENT SIZE))))

    Whole Number Percent: Floor(100.0/(1.0*((TOTAL SIZE*1.0)/(1.0*(CURRENT SIZE)))))
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2007
    Posts
    481
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: downloading File /Display Size /Help !

    can you make please a application to look the way !

    Please help me, i no understand this !

    Thanks
    Johnny

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2007
    Posts
    481
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: downloading File /Display Size /Help !

    Need fast help for my Final Game...

    I need only the downloading bytes in my application on counter or string !!!!!

    Please make my a example

    Thanks
    Johnny

  5. #5
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Percent Downloaded

    Just use the formulas I posted. All you do it\s copy, paste, and edit.

    I made an example anyway.
    Attached files Attached files
    Working as fast as I can on Fusion 3

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2007
    Posts
    481
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Percent Downloaded

    ok this is ok, i need more then byte size of the downloading file no only the %

    1. Download file start
    2. always look bytes of c:/... from the downloading file

  7. #7
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Percent Downloaded

    Use the "File" object. It has expressions to get the size of files.
    Working as fast as I can on Fusion 3

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Percent Downloaded

    That formula is horribly complex, just use

    Floor(Edit Value( "Size Downloaded" )*100.0/Edit Value( "Size Total" ))

    instead of

    Floor(100.0/(1.0*((Edit Value( "Size Total" )*1.0)/(1.0*(Edit Value( "Size Downloaded" ))))))

  9. #9
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Percent Downloaded

    Hmm, that doesn't display correctly/accurately for me, so that is why I use the other formula.
    Working as fast as I can on Fusion 3

  10. #10
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Percent Downloaded

    Oh come on, it works perfectly.
    Johnny, are you downloading using the FTP object? You can easily get the password of the connection - you should only use it when making general-purpose FTP clients. Plus, I'm unsure how to get the % or file size via FTP.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Downloading a file
    By Dines in forum Extension Development
    Replies: 6
    Last Post: 24th February 2011, 07:09 PM
  2. [silly] how to double the size of the display?
    By integrality in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 8th July 2007, 12:00 AM
  3. Downloading a game file from the web
    By rthorsen in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 6th April 2007, 07:29 PM
  4. Downloading a file
    By LazyCoder in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th November 2006, 04:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •