Groups | Blog | Home
all groups > flash data integration > march 2005 >

flash data integration : load XML from subfolder


a-cross
3/8/2005 9:39:21 AM
Hi

I made a project that loads XML into my flash to display some data.
Initially de XML files were located in the root, but as I need to write data
back to an XMl file I had to put thos XML file sinto a subfolder because I
couldn't get read-write access to the root folder of my website (what's is
understandable..)
Anyhow I now got read-write access to a specific folder but this is protected
with Login and password; my question now is: is it possible to send a Login and
Paswword through the sendandload command to get access to that folder so I can
read and write my data from/to my XML files?

Thx

Tom
somaboy mx
3/9/2005 4:30:18 PM
"a-cross" <webforumsuser@macromedia.com> wrote...

[quoted text, click to view]

If you're on an Apache server and you're using .htaccess to protect the
folder, you could try loading the file like this:
myXml.load("http://user:pass@www.mysite.com/protected/thefile.xml");

-- where user:pass is your username and password for the folder.

I know this works through a browser, never tried it on an xml object but
theoretically it should work. I don't think it will work with a relative
url, you'll have to specify the full path.

..soma

AddThis Social Bookmark Button