Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-09-2009, 02:52 PM
Junior Member
 
Join Date: Oct 2008
Posts: 9
Default Inet.ftp and AS3

Hello =)
Do you know if it's possible to use Inet.ftp in as3 ?
I tried this code :

import SWFKit.*;
import SWFKit.application.*;
import SWFKit.inet.*;

....

var inet:Inet=new Inet();

var ftp = inet.openFtp("ftp://exoa.fr","21","LOGIN","PASS");

ftp.connect();



Flash returns that ftp is null

Can someone help me a little ?
Thank's a lot =))
Reply With Quote
  #2 (permalink)  
Old 02-10-2009, 09:03 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

Please try
Code:
var ftp = inet.openFtp("ftp://exoa.fr", 21, "LOGIN", "PASS");
Reply With Quote
  #3 (permalink)  
Old 02-11-2009, 08:09 AM
Junior Member
 
Join Date: Oct 2008
Posts: 9
Default

yes !!

finally it works like that :

//var inet:Inet=new Inet();

ftp = Inet.openFtp("ftp://exoa.fr",21,"exoa","exoa4ever");
ftp.connect();


try{
g.trace(ftp.currentDir);

g.trace("yes");

}catch(e:*){
g.trace("no");

}

I don't know why we havn't to instanciate Inet, but.. thank you for your help =) the second parameter is actually a number and not a string!
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 02:10 PM.


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.