AIR works in debug flash CS5, but does not stand-alone.

I have an application that uses the following code to access an XML file.

var file = File.desktopDirectory.resolvePath ("wbconfig.xml");

var fileStream = new FileStream();

fileStream.open (file, FileMode.READ);

var configXML = new XML (fileStream.readUTFBytes (fileStream.bytesAvailable));

fileStream.close ();

read soldout setting

trace ("XML =", configXML);

If (configXML.soldoutEnable == 'ON')

soEnabled = true;

on the other

soEnabled = false;

It works fine in debug mode (ctrl + enter), once I created a stand-alone .exe (sht, alt + F12). The .exe file does not read the file. and does not define the soEnabled. Can someone help me out here?

I am running CS5, AIR 2 on windows XP. Thank you.

This forum is using the AIR, not any other type of AIR application. Looks like you have a different type of AIR application. I think you might want to try the regular AIR (probably listed under Flex) forum.

Becky Williams

-Sent from my Palm Pre

August 7, 2010 10:48, farmerInCS5 <[email protected]> wrote:

I have an application that uses the following code to access an XML file.

var file = File.desktopDirectory.resolvePath ("wbconfig.xml");

var fileStream = new FileStream();

fileStream.open (file, FileMode.READ);

var configXML = new XML (fileStream.readUTFBytes (fileStream.bytesAvailable));

fileStream.close ();

read soldout setting

trace ("XML =", configXML);

If (configXML.soldoutEnable == 'ON')

soEnabled = true;

on the other

soEnabled = false;

It works fine in debug mode (ctrl + enter), once I created a stand-alone .exe (sht, alt + F12). The .exe file does not read the file. and does not define the soEnabled. Can someone help me out here?

I am running CS5, AIR 2 on windows XP. Thank you.

Tags: Adobe

Similar Questions

Maybe you are looking for