FTP.login() This page was last modified over 30 day(s) ago and has 1 comment(s)


Back to FTP Class Summary

Availability
Windows, Mac OSX, Linux

Usage
ftpInstance.login(username:String, password:String):Void

Parameters
username:String - Username

password:String - Password

Returns
Nothing

Description
Logs into the FTP server using the specified username and password.

Notes
None

Example Code
myFTP.login("myUsername", "myPassword");

mdm.FTP Class Example Downloads
No Example Downloads Available


User Comment by MDM Admin on 27th October 2009 - 11:11
Each instance of mdm.FTP requires that after a successful connection is made (that is after onLoggedIn is broadcasted, the initial directory must be set in the user code before any other FTP Class functions are performed. For example:

myFTP.onLoggedIn = function()
{
myFTP.chDir("/");
doOtherStuffAfterLogin();
};

To summarize, before using any methods/properties that query a FTP instance, one should make sure that:
- The initial directory is set
- The queries are only made when the "onDirChanged" event is broadcasted

Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page