Pages: [1]
  Print  
Author Topic: unhandled IOErrorEvent loading text assets  (Read 254 times)
lukesturgeon
Gaia User
**
Posts: 17


« on: July 12, 2008, 04:27:57 AM »

Hey All,

I'm trying to load a .txt file in to a page. When I load that page I get a runtime error as shown below:

Code:
[object BranchLoader] [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2023: Stream Error. URL: file:///Macintosh%20HD/Users/lukesturgeon/Documents/Flash/gaia/round%2D7/deploy/assets/txt/profile.txt"]
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///Macintosh%20HD/Users/lukesturgeon/Documents/Flash/gaia/round%2D7/deploy/assets/txt/profile.txt

I am running Mac, Flash CS3, Gaia Framework v2.2.2

I'm not sure why I get this unhandled ioErrorEvent
« Last Edit: July 12, 2008, 09:27:24 AM by steven » Logged
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 1643



WWW
« Reply #1 on: July 12, 2008, 09:31:32 AM »

If you are loading the text asset on demand, you might get that if you aren't listening for an IOErrorEvent and the file is not there.

The reason I dispatch that event up the chain is because you, the developer, should know that the asset you tried to load didn't load.  If I didn't, you might think Gaia was broken.

You should probably figure out what's wrong with your text file.  The TextAsset is the basis for XMLAsset, which is definitely working, so there's not an issue with the class.

Try loading the text file yourself with your own URLLoader.  If you don't get an IOErrorEvent, then let me know, but I have a feeling you will.
Logged

Steven Sacks | Gaia Author
If you like Gaia, please donate to the project!  Smiley
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 1643



WWW
« Reply #2 on: August 06, 2008, 01:44:13 AM »

This was actually brought up again to me by hulkish and so I just wanted to let you know that you won't be getting unhandled error alerts anymore in the next version, you'll get a GaiaDebug.warn() message instead.
Logged

Steven Sacks | Gaia Author
If you like Gaia, please donate to the project!  Smiley
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v1.0.5 beta 1© Bloc