ActionScript 3.0 sftp library
Dear Apache Royale team , Is there any sftp client library for ActionScript 3.0?
Hi, I'm not an Apache Royale team, but if you want to use sftp client, I don't think as3 would be fine because raw Sockets aren't implemented (only WebSocket). So the best and easy way is to use a javascript library and wrap it to be use by as3 code. Here is an example on how to do this : https://royale.apache.org/using-external-javascript-libraries-in-apache-royale/
Hi @cristallium , I will c=go through the above resource. Thank you very much for your reply.
Btw, Application is packaged using HARMAN AIR. Would it still work?
It seems your question wasn't for Apache Royale but for Air SDK. If this is the case, you could search for an FTP lib in as3 and use secure sockets (because sftp is ftp over TLS or SSL, but I'm not sure because of ftps ).
Here is some paths :
https://stackoverflow.com/questions/53093201/as3-negotiating-ftp-es-connection
For secure sockets : https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/SecureSocket.html
And yes, you can use https://flex.apache.org/download-binaries.html SDK (4.16.1 FP32 / AIR 32 is the latest) with adobe air runtime v32 , If you use SDK version > V32 (ie Harmann), il will need to use Harman runtime
For browser apps, I'm pretty sure you can use BinaryUrlLoader for FTP (which uses XHR under the hood).