Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-17-2007, 03:20 AM   #1
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:

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

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

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

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 is offline   Reply With Quote
Old 12-17-2007, 09:24 PM   #4
dr_zeus's Avatar
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,999

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

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

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 11: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 08:22 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2015, 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.