PDA

View Full Version : loading text file from server with no crossdomain.xml


dirtybird
04-01-2008, 01:26 AM
i'm trying to load this file into a simple flash file to embed into html on my web site. here is the txt file http://www.ndbc.noaa.gov/data/latest_obs/41035.txt
the root of that server has no crossdomain.xml however. so it won't let the text file load into it. anyway to get around this?

Durnus
04-01-2008, 02:44 AM
You could load the flash in a php page, and have the php pass the text file to flash. I haven't tested this, but someone might be able to help you with this method. Loading images would be a problem, if you need to do it. But for a text file it could work. :D

I'm pretty sure there isn't any way to do this with only flash, providing you don't pay noaa to put on a crossdomain.xml. ;)

Good luck!

dr_zeus
04-01-2008, 06:25 PM
Yes, to load that data, you need to have a serverside script on your own server grab it for you.

FYI, you can load images without a crossdomain.xml, but you are highly restricted in what you can do with them. For instance, you cannot apply smoothing or edit the BitmapData.

Durnus
04-01-2008, 06:45 PM
Just so you know, this was a duplicate thread, and the OP's question was answered in the other one.

Please delete this thread...

dr_zeus
04-01-2008, 09:02 PM
Normally, I would combine them, but I am not a moderator in this particular part of the forum.