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.
More discussions in ActionScript 3
adobe
Comments
Post a Comment