Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-17-2007, 02:20 AM   #1
dhon
Registered User
 
Join Date: Dec 2007
Posts: 2
Default Load data from ftp server?

Is it possible to load XML and Image files from an FTP server that requires authentication?

I've tried including the username & password in the url, but this doesn't seem to work:

Code:
var urlLoader:URLLoader = new URLLoader();
var urlRequest:URLRequest = new URLRequest("ftp://user:[email protected]);
urlLoader.addEventListener(Event.COMPLETE, onXMLLoad);
urlLoader.load(urlRequest);
It may be a problem here as the username is an email address containing the @ symbol.

Thanks,
dhon
dhon is offline   Reply With Quote
Old 12-17-2007, 05:06 AM   #2
matbury
What's up pussycat?
 
matbury's Avatar
 
Join Date: Dec 2006
Location: Toronto, Canada
Posts: 1,990
Default

Just one thing: What's the point of having a password if anyone can decompile your SWF and get the password?
__________________
http://matbury.com/
matbury is offline   Reply With Quote
Old 12-17-2007, 10:30 AM   #3
dhon
Registered User
 
Join Date: Dec 2007
Posts: 2
Default

In this particular case there are a few reasons:

- The swf will only be distributed to trusted sources (the password access is to prevent outsiders from accessing the ftp content)
- The ftp server is not under my direct control

dhon
dhon is offline   Reply With Quote
Old 12-17-2007, 08:24 PM   #4
dr_zeus
Feathers
 
dr_zeus's Avatar
 
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,999
Default

I believe URLLoader and URLRequest only support HTTP.
__________________
Josh Tynjala | Feathers
dr_zeus is offline   Reply With Quote
Old 12-17-2007, 09:58 PM   #5
fentunfont
Member
 
Join Date: Dec 2007
Posts: 82
Default

i dont believe you can use the ftp protocol in flash.

perhaps you could write a php page (PHP does allow ftp connections) and use it as a connector to your flash script.

So http (https might be better?) to the php scripts which can ftp into the required files and feed them out to flash.
fentunfont is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
xml.onLoad won't load on server dravidian7 ActionScript 2.0 0 05-17-2007 04:58 PM
I want to load a slider movieclip with all the data from this table ahmedmasri Server-Side Scripting 0 04-04-2007 07:37 AM
RIAs and VOs and server data...oh my! CDHBookingEdge General Chat 3 11-09-2006 10:42 AM
data not showing on live server sineadhartley Server-Side Scripting 0 09-06-2005 10:24 AM
Is it possible to load data from other server ? cyberluk Server-Side Scripting 1 07-19-2004 01:35 PM


All times are GMT. The time now is 07:15 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.