Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-11-2007, 03:14 AM
Junior Member
 
Join Date: Oct 2006
Posts: 6
Default ftp object

Hi guys, great work on the swfkit stuff.
I have been away fro quite some time :-[
Therefor now have the problem of having to get back into shape codewise.

I have been trying to make the ftp object work for me, however...it doesn't.
therefor a couple of questions:


Where do I put the code?
So far I have been trying to put it in the .fla by copy pasting it
I remember I have to :
1) setup an "empty.swf" as a main movie in the skp
2) keep both flash and the swfkit open
3) attach the empty movie in the flash command section
not sure about this next one....:

4) import SWFkit.* in the AS code
5) copy paste the code into the actionscript panel as provided in the forum for the ftp sample for xiaou or some similiar name who had problems getting started as well.

Doing so did not give me the right results.

Is there a way that you guys could come up with a working sample for this in the sample section that we could test with your server?

That way I will know for sure that the coding is in the right place.

Up untill now, I haveonly been guessing and this part is supposed to be only a small part of what I still need to do in SWFKit.

Thanks for the help in advance!
And once again,
amazing work what you have been doing so far!
Reply With Quote
  #2 (permalink)  
Old 07-11-2007, 07:47 PM
Junior Member
 
Join Date: Oct 2006
Posts: 6
Default Re:ftp object

;D
so.....
the only problem had been that the explanation for the ftp object usage wasn't applicable to my situation;

I had to use a different format:
put everything in between parenthesis and everything is OK
:
thank god it only took me 2 days to figure that out.
:-\
now onwards to reinvent the wheel again.

Reply With Quote
  #3 (permalink)  
Old 07-12-2007, 06:27 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:ftp object

In actionscript 2
Code:
import SWFKit.*;
import SWFKit.inet.*;

var ftp = Inet.openFtp("ftp://www.mysite.com", 21, "username", "password");
ftp.connect();

var list = ftp.list();
Dialogs.msgBox(list.files.toString());
Dialogs.msgBox(list.folders.toString());

ftp.close();
ftp.Release();
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.