| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Senior Member
|
Suppose I have the following code:
ActionScript Code:
According to Adobe's documents: http://livedocs.adobe.com/labs/air/1...system_32.html The above code should write a file, then read it back. What's odd is I never get the "Hello" trace. Here's what's even more strange... If I call the readLastLocation() function within iGotClicked (example ![]() ActionScript Code:
I get the "World" trace. So for some reason, writeFileStream.addEventListener(Event.COMPLETE, completedWriteLastLocation); is never getting fired, but readFileStream.addEventListener(Event.COMPLETE, completedReadLastLocation); is. Any ideas on what I'm doing wrong? NOTE: There were a few times when I removed the COMPLETE eventListeners and forced the subfunctions, but I kept getting errors that the file was open and there was a sharing violation blah blah blah. Even though I .close()'d the filestream. |
|
|
|
|
|
#2 |
|
Senior Member
|
Got it.
ActionScript Code:
|
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
|
Better yet:
ActionScript Code:
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dynamicaly read variable in embed tag | drliebs | ActionScript 1.0 (and below) | 1 | 05-23-2006 10:40 AM |
| read and write cookies from flash | Navarone | ActionScript 2.0 | 2 | 04-29-2005 03:04 PM |
| flash does not read .txt file correctly | |\/|cpalmer | ActionScript 1.0 (and below) | 8 | 02-16-2005 07:41 PM |
| write to text file (reading from cache) | alpsoy | ActionScript 1.0 (and below) | 3 | 01-28-2005 08:14 AM |
| constantly read an xml file for changes | gobblez | ActionScript 2.0 | 0 | 12-24-2004 02:13 AM |