Hi,
Someone might find this Perl script useful. Accessing it through Load Variable will allow you to get around the problem of getting to data files on a different server than the Flash movie sits on.
The problem is defined in:
http://www.macromedia.com/support/fl...s_security.htm
How have others solved this problem?
E-mail me your comments, questions, suggestions for improvement.
Peter
-----------
#!/usr/bin/perl -w
# loadvars.pl
# by Peter Mosinskis <[email protected]>
# last rev. 06-03-00
#
# DISCLAIMER
# The author assumes no responsibility for correct function,
# appropriate use, or misuse of this script,
# and any damage(s) its use or misuse may cause.
#
# The script loads a remote URL of a MIME-encoded data file,
# so that Flash can retrieve data from a remote URL,
# which it was not designed to do (for security reasons)
#
# INSTRUCTIONS
# 1. Find out the URL of your MIME-encoded data file.
# 2. Edit the value of the $url variable in the script below
# 3. Upload the script and chmod 755
# 4. Using Load Variables, call the URL of the loadvars.pl
# script
#
# Enjoy! If you have any suggestions or ideas for making
# this script more extensible, please email me at
# [email protected]
#
use LWP::Simple;
local $| = 1;
my $url;
# Define this URL to point to your text file
$url = "http://www.yourdomain.com/your_data_file.txt";
$doc = get($url);
chomp $doc;
# Create temp text file for Flash to read
# (by "printing" results to your browser)
print "Content-type:text/html\n\n";
print "$doc";
