Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-04-2007, 02:46 PM
Junior Member
 
Join Date: Jun 2007
Posts: 16
Default how download or upload with inet.ftp object?

if ftp address:203.3.12.1
usernameyxiao
passwordyxiao
how can i code with inet.ftp object and download or upload a file?
thank's !
Reply With Quote
  #2 (permalink)  
Old 07-05-2007, 02:15 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:how download or upload with inet.ftp object?

Code:
var ftp = Inet.openFtp("203.3.12.1", 21, oyxiao, oyxiao);
ftp.connect();

ftp.onDownload = function (percent)
{
    trace(percent);
    return true;
}

ftp.download("test.rar", "c:\\samples\\test.rar");


ftp.onUpload = function (percent)
{
    trace(percent);
    return true;
}

ftp.upload("test.rar", "c:\\samples\\test_new.rar");
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 04:26 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.