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


i have application using following code access 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 create stand alone .exe (alt + sht + f12). .exe  file not read file. , not set soenabled anymore. can me here?

 

i running cs5, air 2 on windows xp. thanks.

hi,

your xml trace coming properly?

 

warm regards

deepanjan das

http://deepanjandas.wordpress.com/



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support