This content has been marked as final. Show 4 replies
I've run things like this from a flash drive, it should be similar. Is the xml file in the main directory? Or are you trying to download it from a server?
Thanks for your reply.
It's a local xml file sitting in an assets folder. Here's the code (typing from memory):
The weirdest thing is that it works just fine when we launch it in FlexBuilder 2, and when we launch the file from the explorer inside the bin folder. When we copy all the files (not changing their location of course) to another place on the hard drive none of the xml data gets displayed. The paths in the xml file are all relative as well.
Any clues as to what's going on?
Hmm.. I see what you're saying. I just tried it and the same thing happens to me. I guess the project I was thinking I ran from a flash drive didn't have any HTTPServices in it yet (does now). Thats really strange.. I'm not sure what the problem is.. sounds like some kind of a bug or security feature to me..
You are getting tangled up in the security sandboxes.
Flex Builder installs itself into a "trusted" sandbox, which allows it to access pretty much everything.
Except for this kind of install, you must choose beteen local access and network access, you can't have both. There are several good docs on "Flex security sandbox".
I fear you will not be successful with what you are attempting. Can you use AIR (google that)?