It just sounds like you have the pl.maliboo.ftp source in the wrong
place.  Try simply moving it to the /src directory.  If you're using
the swc, place that in /libs.

-Nick Matelli

--- In flexcoders@yahoogroups.com, "Chad Gray" <[EMAIL PROTECTED]> wrote:
>
> I found this Flex FTP library on RIAForge.com
> http://maliboo.riaforge.org/
> 
> How do I use it in Flex3?
> 
> I put the library files in the root of the project and added
xmlns:ftp="pl.maliboo.ftp.core.*" to the <mx:WindowedAppliction> tag,
but when I start typing my import statement in the <Script> block it
does not give me the option to load the library.
> 
> 
> I also get this error when trying to use it
> 1046: Type was not found or was not a compile-time constant:
FTPEvent.       AIR_ftp/src     AIR_ftp.mxml
> 
> import pl.maliboo.ftp.events.FTPEvent;
> import mx.controls.treeClasses.TreeItemRenderer;
> import mx.core.IDataRenderer;
> import flash.filesystem.File;
> import pl.maliboo.ftp.Commands;
> import pl.maliboo.ftp.FTPCommand;
> import pl.maliboo.ftp.FTPFile;
> import pl.maliboo.ftp.events.FTPEvent;
> import pl.maliboo.ftp.core.FTPClient;
> import pl.maliboo.ftp.utils.ConsoleListener;
> 
> private var list:ConsoleListener;
>                       
> public function makeConnection (host:String, port:Number):void
> {
>       if (list == null)
>               list = new ConsoleListener(client, output);
>       client.addEventListener(FTPEvent.CONNECTED, handleConnected);
>       client.connect(host, port);
> }
> 
> public function handleConnected (evt:FTPEvent):void
> {
>       client.addEventListener(FTPEvent.LOGGED, handleLogged);
>       client.login(username.text, passwd.text);
> }
>


Reply via email to