Simplyprofound.com
Flash, Flex, AIR, ASP.NET, PHP, AJAX, whatever it takes...

AIR: Changing Filename

April 4, 2008 10:41 by dave

I spelled something wrong. Oops. It's a pharmaceutical brand name, so get off my back. I fixed it in my filename, and code, and Flash library, and linkage, and....everywhere. The AIR program compiled and ran, done. Right? Wrong.

It was running and displaying an old version. I kept getting this error on my URLLoader when testing offline:

Error #2044: Unhandled ioError:. text=Error #2032: Stream Error 

Duh, I know. I'm offline and trapping for that error so I can move on. I knew I shouldn't be getting that error. But what was strange is that the filepath and code lines in the error DIDN'T EXIST ANYMORE.

So, I checked my Flash properties for the FLA to make sure the SWF filename had updated properly. Yup, it had.

Then I checked my AIR Application & Installer Settings. I had to do all this by hand, and this is where my problem was. The "Included Files" portion at the bottom of the form includes a reference to the SWF and the filename was pointing to the previous file. As a result, debugging showed the old file and code.

Can I wrap myself in a try{}catch{}? 


Related posts

Add comment


(Will show your Gravatar icon)  

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]