This content has been marked as final. Show 3 replies
Flex runs inside a browser and as such can read files only from the server. No access to user's local files. To read a text file you're going to have to use HTTPService.
If it's a desktop app, you might want to look into AIR that supports access to local file system.
"atta707" <firstname.lastname@example.org> wrote in message
> Flex runs inside a browser and as such can read files only from the
> server. No
> access to user's local files. To read a text file you're going to have to
You can also use HTTPRequest or URLLoader.
Also...If you don't need the file to load at runtime, you can simply embed it:
private var somefileClass:Class;
var somefileByteArray:ByteArrayAsset = ByteArrayAsset(new somefileClass());
Only if you don't need to read it at runtime.