Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-19-2003, 03:54 AM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default ftp: upload

I've made a program wich saves variables to a textfile in a format the standard flashplayer can read with loadvariables.
Is it possible for swfkit to upload the textfiles to the internet using ftp (or are there other ways?).

Can I upload the swfkit-program to work on the internet directly. So could be able to run the program from any pc with internet acces.
Reply With Quote
  #2 (permalink)  
Old 05-22-2003, 08:49 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: ftp: upload

Hi,

SWFKit does not provide any native methods that support uploading files via FTP.

While we can build an ActiveX Object to do it. If you really like it, please let us know.
Reply With Quote
  #3 (permalink)  
Old 05-22-2003, 09:03 AM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Re: ftp: upload

Hi.

I bought swfkit this morning ! (finally found the funds for it)
Could you help me with the ActiveX who for ftp?

Thanks for all.

meester Kurt
meester.kurt@belgacom.net
Reply With Quote
  #4 (permalink)  
Old 05-22-2003, 09:13 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: ftp: upload

Thanks

We will build the object asap.
Reply With Quote
  #5 (permalink)  
Old 05-27-2003, 01:45 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: ftp: upload

The ActiveX object can be found at here
http://www.swfkit.com/download/Indy.zip

It's just a package of the Indy 9.0 FTP component, which can be found at here
http://www.nevrona.com/Indy/dowload/index.html

You can also download help files and demos *from the site.

Reply With Quote
  #6 (permalink)  
Old 05-27-2003, 01:47 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: ftp: upload

Usage:

Register the object first,
ActiveXObject.register('IndyObj.dll');

Code:
var ftp = new ActiveXObject('IndyObj.FTPObj');
trace(ftp);

ftp.OnStatus = function (s,t)
{
   trace(t);
}

ftp.Host = 'ftp.myftp.com';
ftp.username = 'myname';
ftp.password = 'mypass';

ftp.Connect();
ftp.list();

var dl = ftp.DirectoryListing;
trace(dl);
trace(dl.Count());

for (i = 0; i < dl.count(); i++)
{
   var item = dl[i];
   dl.parse(2, item);
   trace(dl.IndexOf(item));
   trace(item.FileName);
}

ftp.changedir('/pub');
ftp.put('c:\\myfile.txt', 'myfile.txt');

ftp.disconnect();
Reply With Quote
  #7 (permalink)  
Old 05-27-2003, 06:01 AM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Re: ftp: upload

It works!!!!!!!!!

Thanks!!!

Reply With Quote
  #8 (permalink)  
Old 05-31-2003, 10:27 AM
Junior Member
 
Join Date: May 2003
Posts: 3
Default Re: ftp: upload

I see at the board that you often write activeX components.

Can all ActiveX components that you can download on the internet be used that way with swfkit.

Do you know a place where I can learn more about that way of using Swfkit and ActiveX.
Reply With Quote
  #9 (permalink)  
Old 06-02-2003, 11:22 PM
Senior Member
 
Join Date: Jan 2001
Posts: 413
Default Re: ftp: upload

Quote:
I see at the board that you often write activeX components.

Can all ActiveX components that you can download on the internet be used that way with swfkit.

Do you know a place where I can learn more about that way of using Swfkit and ActiveX.
Yes, any activex that you can download on the internet can be used with swfkit ,if you want.
It depends on which type of activex you choose to use,
normaly every kind of activex has it's own manual,u can find them in their official web sites.
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 05:29 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.