|
|||
|
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! ![]() |
|
|||
|
;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. |
|
|||
|
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();
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|