Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

AIR works in CS5 flash debug, but does not work standalone.

New Here ,
Aug 07, 2010 Aug 07, 2010

I have an application using 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;

else

soEnabled = false;

It works fine in debug mode (ctrl + enter), After I create a stand alone .exe (alt + sht + F12). The .exe  file does not read the file. and does not set the soEnabled anymore. Can someone help me here?

I am running CS5, AIR 2 on windows XP. Thanks.

683
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Aug 07, 2010 Aug 07, 2010

This forum is for AIR Help, not any other type of AIR application. It sounds like you have another type of AIR application. I think you might want to try the regular AIR forum (probably listed under Flex).

Becky Williams

-- Sent from my Palm Pre

On Aug 7, 2010 10:48 AM, farmerInCS5 <forums@adobe.com> wrote:

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

 

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

var fileStream = new FileStream();

 

fileStream.open(fil

...
Translate
Guest
Aug 07, 2010 Aug 07, 2010
LATEST

This forum is for AIR Help, not any other type of AIR application. It sounds like you have another type of AIR application. I think you might want to try the regular AIR forum (probably listed under Flex).

Becky Williams

-- Sent from my Palm Pre

On Aug 7, 2010 10:48 AM, farmerInCS5 <forums@adobe.com> wrote:

I have an application using 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;

else

soEnabled = false;

 

It works fine in debug mode (ctrl + enter), After I create a stand alone .exe (alt + sht + F12). The .exe  file does not read the file. and does not set the soEnabled anymore. Can someone help me here?

 

I am running CS5, AIR 2 on windows XP. Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp