Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-01-2005, 01:17 PM
Junior Member
 
Join Date: Dec 2004
Posts: 7
Default percent bar?

I load some files with ftp on a server.
And when it load up, the application look like hang up!

Is ist possible to crate something like a percent bar?

thx Hochi
Reply With Quote
  #2 (permalink)  
Old 03-02-2005, 11:55 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:percent bar?

Yes, this can be done by handling the events of the Inet object. If you use the Inet.getUrl method to download a ftp file, please handle the Inet.onGetUrl method, or handle the ftp.onDownload method if you use the ftp.download method to download a ftp file. E.g.

Code:
// for getUrl method
inet.onGetUrl = function (type, msg)
{
    if (type == 0)
    {
        // an error occurs
        return false
    }

    if (!processMsg()) return false;
    return true;
}

inet.getUrl("ftp://xxx.com/xxx.zip", "c://xxx.zip");


// for the ftp.download method
ftp = Inet.openFtp("ftp://xxx.com");
ftp.onDownload(percent)
{
    trace(percent);
    if (!processMsg()) return false;

    return true;
}
ftp.download("xxx.zip", "c:\\xxx.zip");
Reply With Quote
  #3 (permalink)  
Old 06-27-2009, 08:24 PM
js js is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Thumbs down this codeing not helping me...

i used this coding as u say...
but it still freezing my movie clip until it download the file from ftp

and the file i am downloading is only 1kb and it is taking 5 seconds for that it is more than normal...
http://jasbir.vndv.com/my.as


and my import swfkit.* is also not working in flash cs3 with swfkit 3.2


and i try so hard to upload a sample ... but there some problem in your site... so unable to upload the samples

please download it for this link
http://jasbir.vndv.com/ftp.zip

regards
js
Reply With Quote
  #4 (permalink)  
Old 08-10-2009, 02:58 AM
Junior Member
 
Join Date: Aug 2009
Posts: 2
Default

As you make each button, you need to save it (right click, Save Picture As for IE users) to your own computer with a descriptive name. For example, a good name for the 50% button would be 50perc.png. When you're all done making buttons, upload them from your computer to your image host. If you don't have an image host, try Photobucket or ImageShack; they're free and easy.Once you have your images made and hosted, you can display them on your blog sidebar (or where ever you want) just as you would any other button. As your project progresses, simply update your blog template to show the appropriate percent bar. Easy!

________________________
Hostgator consumer report
audio software
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:47 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.