This content has been marked as final.
Show 2 replies
-
1. Re: Opening Help
Andrei1 May 31, 2010 5:19 PM (in response to Fumph)First, when you have an error, please post error text with your requests.
Second, I hope this AIR application. Otherwise you cannot use flash.filesystem package.
Third, the line
stream.open(File, FileMode.READ);
is wrong. It references File as a Class - not instance. Line must be:
stream.open(new File(), FileMode.READ);
-
2. Re: Opening Help
Andrei1 May 31, 2010 5:28 PM (in response to Fumph)Actually, the line is wrong altogether for the first argument in stream.open must be selected file which is event's target. So the correct line is:
stream.open(File(event.target), FileMode.READ);


