Bridged files - File.desktopDirectory.resolvePath ();

I'm trying to access the files on the bridged BB Phone.

He has "BlackBerry" directory with two directories inside - "SDCard" and "InternalDeviceMemory" but if I try to resolvePath("SDCard") or resolvePath("InternalDeviceMemory) it is only a directory without a name and is inaccessible.

I have some special permissions to access these directories or where is the problem?

Various files browser app access somehow on a bridged smartphone file system. Bridged files must be unlocked using the icon located next to the clock on the PB Office. Have you tried that?

Tags: BlackBerry Developers

Similar Questions

  • Open Blackberry Bridge files in Custom Applications

    Hello

    I am trying to create a playbook application that preference needs to access files on the bridge of blackberry, is this possible?

    Thank you

    Phil

    No API on the bridge has been available to the general public.

  • .msg in Bridge file not open

    Hello

    I can't open an .msg file in bridge CS4

    On Windows Explorer, it works

    I have 10 Windows and Outlook 2016

    MSG.png

    Best regards

    [personal information deleted by MOD]

    Hi Eworksverias,

    .Msg files are not compatible with Adobe Bridge and cannot be opened in Windows Explorer.

    Kind regards

    Sahil

  • Bridge files have extension Exe

    I am using the bridge on a Windows XP computer. One of my SD cards has recently begun to show files with extension .exe (for example DCIM.exe). When I try to open them, it starts Windows Explorer.

    When I look at the files in Windows Explorer, they do not have any extension. If I try to rename the folder in the Bridge he says that there is already a folder with that name.

    Any suggestions on how to fix this?

    You have a virus scanner?  There was a 'worm' virus W32. SillyFDC who worked by replacing files by exe files on removable drives. This looks like these symptoms - so it will be worth a check running.

    Dave

  • ASE in Bridge files

    I use a Macbook Pro and the Creative Suite CS3 running. When I save a swatch and try to display it in the deck, it shows that the. Icon of the ESA, not the colors. There are a few nuances that appear as colors when I try to view in the bridge, but as far as I know, these are only samples provided with Illustrator, Photoshop, etc. I do something wrong after the upload to Kuler? I noticed that in the Panel metadata bridge, there is a field "color chart of the document" which exists only for samples that preview the colors. For samples that I can foresee only the icon, this "color chart of the document' field does not exist. Anyone have any ideas? I looked everywhere but could not get any info.

    Thanks in advance,

    Kevin

    Update! If you are using Mac OS and that you can not preview the kuler ASE files in Bridge CS3, download themes kuler using Safari, not Firefox to view the kuler.

    (For some reason, the ASE kuler files downloaded using Firefox are not preview.) We investigate more, but it's the solution.)

    Saami

  • Erased from my desktop computer (office, true) File.copyTo

    It's probably karma. I was a little joke for April Fools program for our office and it went horribly wrong. The test of some file operations, I copied a file from the directory of the user on the desktop. The file did not already exist on the desktop, but I put the argument overwrite to true. Like this

    var userDirectory = File.userDirectory;

    var desktopDirectory = File.desktopDirectory;

    var fileToCopy = userDirectory.resolvePath ('file.ext');

    fileToCopy.copyTo (desktopDirectory, true);

    So I run a Test-> publish so it is running in ADL - I look at my desktop and everything disappeared. Completely gone. Yikes! Is this a bug? Is anyway to recover my office? I'm on a Macbook Pro OSX Flash Pro CS6 10.8.3, with target publication AIR 3.4 desktop running

    Unfortunately, I think that you have specified the directory desktop as a file object to replace in the copyTo method.  See the red text in the documentation below.

    URL location of the new file target. Note that this file object specifies the resulting (copied) file or directory, not the path to the directory containing.


    Instead, I think what you wanted to write:

    var userDirectory = File.userDirectory;

    var desktopDirectory = File.desktopDirectory;

    var fileToCopy = userDirectory.resolvePath ('file.ext');

    var destinationFile:File = desktopDirectory.resolvePath ("file.ext");

    fileToCopy.copyTo (FichierDestination, true);

    It seems to me like a file shouldn't be able to overwrite a file.  This is the behavior under Windows.  I recommend a new bug on this course at bugbase.adobe.comof opening.  Sorry he had to go through this, I unfortunately do not know how this go back to Mac.
  • File read write error

    Hey guys

    I write a string in a .txt file with air.  The chain gets its data from the names of files in a directory, the user selects.  Once it is written, I can send it to a download function.

    The problem I encounter is that is works fine the first time, but if the user tries immediately, I get the error:

    Error #3013: File or directory is in use.     (it refers to the line in bold below);

    The following code is stripped of my project, but I am able to reproduce the problem with that:

    ------------------------------------------------------------------------------------------ ----------------------------------

    Var list: Array = new Array();

    var stream: FileStream;

    var incr:Number = 0;

    var filenameVar;

    browse_but.addEventListener (MouseEvent.CLICK, travel);

    Browse function (e:MouseEvent): void {}

    nMF = new File();

    nMF.addEventListener (Event.SELECT, filesSelected);

    nMF.browseForDirectory ("select your file directory");

    }

    function filesSelected(event:Event):void

    {

    Add selected files to table 'list '.

    list = nMF.getDirectoryListing ();

    for (var i: uint = 0; i < list.length; i ++) {}

    fileNamesString is fileNamesString + list [i] .name;.

    }

    setSaveFileName();

    }

    function setSaveFileName (): void {}

    filenameVar = "text.txt".

    saveFile();

    }

    function saveFile() {}

    var newFile:File = File.desktopDirectory.resolvePath("dir1/dir2/"+filenameVar;)

    Stream = new FileStream();

    Stream.Open (newFile, FileMode.WRITE);

    stream.writeMultiByte (fileNamesString, "utf - 8")

    Stream.Close ();

    stream.openAsync (newFile, FileMode.READ);

    stream.addEventListener (Event.COMPLETE, uploadFunc);

    }

    function uploadFunc(event:Event) {}

    nothing of consequence here affects the result.

    }

    ------------------------------------------------------------------------------------------ -----------------------------------------

    If I remove the code pointed out, the problem goes away.  But I need to have it there to test whether the file was written before being sent to a download function (there is a bug in the Air that will let you listen to for a complete event when writing the files to your hard drive.

    Also, I have other functions to send data to the function saveFile (each with different string data and a different to save filenameVar under), and they work fine.  The difference is that their string data come from a browse file, it is created from the text entry boxes.

    Nothing obvious here which is tripping me?

    Thanks for your help.

    Shaun

    Who gave a kglad of crack with no change, but which lead me to understand the problem.

    I had a second var stream "filestream' open for the download function, but never closed.  For some reason, there everything worked well until the channel I wrote in the text file was from a repertoire of navigation and to obtain the names of files.  I don't quite understand it.  In any case, close the second fixed stream.  I think I'll see if I can get rid of second stream altogether.

    BTW the first stream always had a stream.close () in my code, so that took care of this one.

    Thanks again mate

    Shaun

  • Question of variables and file download.

    Hello

    I have a uploader of file in AS3 and can successfully save a file using php.

    I would also like to send variables with the file, php to process variables and display in Flash.

    Separated, I was able to include flash-flash-php variables in a project, but I can't work on how to do this while also downloading a file.  I get a null reference error in the completeHandler function when flash tries to display the reactive power coming back from php.

    Here is my AS3:

    create a file from a string of text, it records, the bed, then download:

    var newFile:File;

    newFile = File.desktopDirectory.resolvePath ("my.xml");
    var stream: FileStream = new FileStream();
    Stream.Open (newFile, FileMode.WRITE);
    stream.writeMultiByte (str, "utf - 8")
    Stream.Close ();
    stream.openAsync (newFile, FileMode.READ);

    stream.addEventListener (Event.COMPLETE, uploadFile);

    function uploadFile(evt:Event):void {}

    var URLrequest:URLRequest = new URLRequest ("http://www.mysite.com.au/uploader_script.php");
    var variables: URLVariables = new URLVariables();
    variables.todayDate = new Date();
    variables. Name = "Dude."
    variables. Email = "[email protected]"; ""
    variables.saveThisXML = "test record this";
    variables.passwordString = 'parse ';
    URLrequest.method = URLRequestMethod.POST;
    URLrequest.data = variable;

    newFile.addEventListener (Event.COMPLETE, completeHandler);
    newFile.addEventListener (ProgressEvent.PROGRESS, progressHandler);
    newFile.upload (URLrequest);

    }

    function completeHandler(evt:Event):void {}

    var phpVar1 = evt.target.data.var1;
    var phpVar2 = evt.target.data.var2;

    result1_txt. Text = phpVar1;
    result2_txt. Text = phpVar2;

    uploaderMC.status_txt.text = newFile.name + 'has been uploaded.';

    }

    My PHP:

    <? PHP

    $Name = $_POST ['name'];
    $filename = $_FILES ['Filedata'] ['name'];
    $filetmpname = $_FILES ['Filedata'] ['tmp_name'];

    $uname = $_POST ['email'];

    Print two vars back-Flash, you can also use 'echo' instead of printing
    print ' var1 = the domain name with a variable of $uname was sent to PHP and is back.';
    print '& var2 = $uname is also defined in the variable 2 php.';

    File on the server:
    move_uploaded_file ($_FILES ['Filedata'] ['tmp_name'], $filename);

    ? >

    It works fine download, but falls into the AS3 to var phpVar1 = evt.target.data.var1;

    Is there an obvious reason that I'm missing?

    Thanks for your time.

    Shaun

    Add your variables in your URLs and use $_GET in your php file to analyze the variables:

    create a file from a string of text, it records, the bed, then download:

    var newFile:File;

    newFile = File.desktopDirectory.resolvePath ("my.xml");
    var stream: FileStream = new FileStream();
    Stream.Open (newFile, FileMode.WRITE);
    stream.writeMultiByte (str, "utf - 8")
    Stream.Close ();
    stream.openAsync (newFile, FileMode.READ);

    stream.addEventListener (Event.COMPLETE, uploadFile);

    function uploadFile(evt:Event):void {}

    var URLrequest:URLRequest = new URLRequest ("http://www.mysite.com.au/uploader_script.php?var1=" + all + "& var2 =" + whateverelse);
    var variables: URLVariables = new URLVariables();
    variables.todayDate = new Date();
    variables. Name = "Dude."
    variables. Email = "[email protected]";
    variables.saveThisXML = "test record this";
    variables.passwordString = 'parse ';
    URLrequest.method = URLRequestMethod.POST;
    URLrequest.data = variable;

    newFile.addEventListener (Event.COMPLETE, completeHandler);
    newFile.addEventListener (ProgressEvent.PROGRESS, progressHandler);
    newFile.upload (URLrequest);

    }

    function completeHandler(evt:Event):void {}
           
    var phpVar1 = evt.target.data.var1;
    var phpVar2 = evt.target.data.var2;
       
    result1_txt. Text = phpVar1;
    result2_txt. Text = phpVar2;
     
    uploaderMC.status_txt.text = newFile.name + 'has been uploaded.';

    }

    My PHP:

    <>


    $var1 = $_GET ['var1'];

    $var2 = $_GET ['var2'];

    $Name = $_POST ['name'];
    $filename = $_FILES ['Filedata'] ['name'];
    $filetmpname = $_FILES ['Filedata'] ['tmp_name'];

    $uname = $_POST ['email'];

    Print two vars back-Flash, you can also use 'echo' instead of printing
    print ' var1 = the domain name with a variable of $uname was sent to PHP and is back.';
    print '& var2 = $uname is also defined in the variable 2 php.';

    File on the server:
    move_uploaded_file ($_FILES ['Filedata'] ['tmp_name'], $filename);

    ?>

  • Replace the files automatically?

    Hello

    I am writing an Air application that creates and writes a HTML page in the user's hard drive.  If the file already exists, it must be replaced.

    I was wondering if there is a way via AS3 to stop the prompt that ask if users want the overwritten file and just do automatically each time?

    The Air program takes the contents of a text box (which contains the HTML code of the page), then page.php writes on the hard drive.  The code I use is as follows:

    docsDir = File.documentsDirectory.resolvePath ("page.php");

    docsDir.browseForSave ("Save as");
    docsDir.addEventListener (Event.SELECT, saveData);

    function saveData(event:Event):void

    {
    var newFile:File = event.target as file;
    var str:String = outputBox.text;
    var stream: FileStream = new FileStream();
    Stream.Open (newFile, FileMode.WRITE);
    stream.writeUTFBytes (str);
    Stream.Close ();
    }

    Is it something simple, or it cannot be done due to security restrictions?

    If you just open a file and write it AIR can't invite you - there is nothing to ask.

    The reason why you get the prompt is that you call ahead. There is no need for this, unless you want the user to choose the location/name of the file.

    For example the following will create a text file on the desktop without intervention whatsoever:

    var file:File = File.desktopDirectory.resolvePath("test.txt");
    var stream:FileStream = new FileStream();
    stream.open(file, FileMode.UPDATE);
    stream.writeUTF("this is a test");
    stream.close();
    
  • Problem with image display in a Datagrid loaded from local files

    Hello

    I'm trying to get (charges from the local file system) images to be displayed in a datagrid control.

    the paths are fine, but no images are displayed in the datagrid control (I use a project based Air, AS3).

    DataGrid code is:

    < mx:DataGrid id = "dg" dataProvider = "{myArrayCollection}" >

    < mx:columns >

    < mx:DataGridColumn headerText = "Image" width = "100" >

    < / mx:DataGridColumn >

    < / mx:columns >

    < / mx:DataGrid >

    The Actionscript code is:

    fileStream = new FileStream();

    var imageBytes:ByteArray = new ByteArray();

    var stream: FileStream = new FileStream();

    array7 = new Array();

    for (var j: int = 0; j < fileList1.length; j ++)

    {

    var file1:File = File.desktopDirectory;

    File1 = new File();

    File1 = File.desktopDirectory.resolvePath ("DG_TEST /" + fileList1 [j] .name);

    fileStream = new FileStream();

    Stream.Open (File1, FileMode.READ);

    stream.readBytes (imageBytes);

    Stream.Close ();

    array7.push (imageBytes);

    array7.push (j);

    }

    myArrayCollection.source = array7;

    I also have: [Bindable] private var myArrayCollection:ArrayCollection = new ArrayCollection();

    If I Uncomment the line array7.push (j), the figures show in the DataGrid and seem to leave a line for images?

    Any ideas/code (preferably because I am very new to flex/Air) to help me to display the images in the control datagrid would be greatly appreciated.

    Thanks in advance,

    Guida

    You are welcome

    don't forget to put the discussion as 'responded' to close

  • How to read a local file using as3 in flash in HTML object? [urgent]

    My web site contains a flash object.

    I want to use as3 to read a local .txt file

    by getting the user to the file directory.

    I know that AIR can support this by smth like:

    File.desktopDirectory.resolvePath

    but when I open an AIR file for this, it seems

    the action can not be performed when I embed in html.

    And I tried to use the above function in a normal life

    Flash file in the script action.

    But it does not recognize the file. class...

    How can it be done?

    It's urgent, reli

    Help, please...

    Thank you!

    a web-based flash application cannot detect the users directories.  You can use the method to browse class' filereference to let the user to locate a file in a directory that the user wants.  Flash can then recover the file name and type.  but, as mentioned previously, flash cannot determine the file directory.

  • Someone at - he used CameraRoll yet? Seems completely broken.

    I am currently implementing navigation for a file using the CameraRoll since File.Browse () methods are still badly broken. I have implemented a method of load using the example of the documentation. Unfortunately, it seems simply crash the application. Here's the code to date.

    private function load(e:MouseEvent):void
    {
        trace("loading");
        menu.close();
        if( CameraRoll.supportsBrowseForImage )
        {
            var mediaSource:CameraRoll = new CameraRoll();
    
            mediaSource.addEventListener( MediaEvent.SELECT, imageSelected );
    
            mediaSource.browseForImage();
        }
        else
        {
            var myFile:File = File.documentsDirectory;
            var filter:FileFilter = new FileFilter("Images", "*.png;*.jpg")
            myFile.browse( [filter]);
            myFile.addEventListener(Event.SELECT,chooseFile);
        }
    }
    
    private function imageSelected( e:MediaEvent ):void
    {
        trace(e.target.nativePath);
        img.setImage(e.target.url);
    }
    
    private function chooseFile(e:Event):void
    {
        trace(e.target.nativePath);
        trace(e.target.name);
        var name2:File = File.desktopDirectory.resolvePath(e.target.name);
        trace(name2.nativePath);
    
        img.setImage(name2.url);
    }
    

    I'm detection to see if the film is supported and then using one of the two callback methods to load the file.  It could be done with the method of a reminder if we could rely on the event. Target property from the File.Browse method, but we cannot and this is another problem.

    In any case, it seems very simple. When he runs in the sim card, the supportsBrowseForImage property is true indicating it is supported, but on the browseForImage() call, the application disappears. The callback is never called. I think I can see a gray bottom bar as if the app were reduced to a minimum, but I can't bring it back. Heck, I can't yet bring up the system menu. If I redeploy the application (which causes the previous uninstall) it seems to recover.

    I use FB Burrito and am, I changed the project settings to use the SDK.94. I use the simulateur.94.

    I installed TourDeMobileFlex found here: http://flex.org/TourDeMobileFlex.fxp

    The TourDeMobileFlex camera seems to work fine in the 0.9.4 Simulator. He opens the roll and you can choose your image saved previously.

    The CameraRoll of the TourDeMobileFlex code:


    http://ns.Adobe.com/MXML/2009.
    xmlns:s = "library://ns.adobe.com/flex/spark".
    paddingTop = "10" >


            
    If (CameraRoll.supportsBrowseForImage)
    {
    var cameraRoll:CameraRoll = new CameraRoll();
    cameraRoll.addEventListener (MediaEvent.SELECT, {function(event:MediaEvent):void}
    i.source = event.data.file.url;
    });
    cameraRoll.browseForImage ();
    }
    on the other
    {
    l.Text = "CameraRoll; not supported
    }
            

        

        
        
            
    If (CameraRoll.supportsAddBitmapData)
    {
    var cameraRoll:CameraRoll = new CameraRoll();
    var bd:BitmapData = new BitmapData (640, 480);
    bd.perlinNoise (640, 480, 1, Math.floor (Math.random () * 10), false, true);
    i.source = bd;
    cameraRoll.addBitmapData (comics);
    }
    on the other
    {
    l.Text = "CameraRoll; not supported
    }
            

        

        
        
        
        
        

  • Returns always true?

    Okay, so the question here. I have a workload file and an entry on the method of file. We all know what they are doing. How ever load always returns true and writing always returns false. Just, you know somethings wrong.

    Because the forums are a problem with me validation code... I've posted it here: http://pastebin.com/MTDi5y0C

    Based on this code, what is the problem here? Why write return always false and why always charge returns true? (even for files that do not exist). My understanding is that if flash is unable to find the file that it should write to it it will create, and if it cannot load said file, then this method should return false.

    or even more own assignment:

    var f:File = File.desktopDirectory.resolvePath(fileName);
    
  • questionable behavior of the API SQLErrorEvent.ERROR

    I get an error when I SELECT a value that is not present in the database (planned). But it is not to be taken by the errorHandler function.

    I would like to note that my selectStmt (function readFromDatabase()) is identical to the one on Adobe livedocs, so I am confident that the code is correct.

    Let's say, for simplicity, that my database table has authors.fName and authors.lName columns.

    If I get a letter in my txtIn.text (which is copied to a string variable which is part of the SELECT statement) and the SELECT function cannot find an exact match in the table, I'm getting a TypeError: Error #1009. I understand why. But the SQLErrorEvent.Error isn't the event capture.

    Apparently, does not find a value in the table is not a SQLErrorEvent?

    What is the value of the present: var numResults:int = result.data.length; If there is no data? Null value? Followed by a null value does not seem to work.

    The errorHandler works very well if the application fails to establish a connection. Just not if she is unable to find the data.

    I can't use the code to handle this exception because I can't capture it.

    And another question; and it really gets my goat...

    Why are there no tutorials... Anywhere... on how to handle errors? Tons of tutorials on how to connect to a database, instructions select, seizure data, etc, etc, etc. But NOTHING about the error handling?

    Here is my code:

    import flash.data.SQLConnection;

    import flash.data.SQLMode;

    import flash.data.SQLResult;

    import flash.events.SQLEvent;

    import flash.filesystem.File;

    Import fl.data.DataProvider;

    Import fl.controls.List;

    import flash.events.KeyboardEvent;

    import flash.events.Event;

    import flash.events.MouseEvent;

    import flash.net.URLRequest;

    import flash.display.Loader;

    import flash.display.NativeWindow;

    import flash.system.Capabilities;

    import flash.text.TextField;

    import flash.errors.SQLError;

    import flash.events.SQLErrorEvent;

    var appWindow:NativeWindow = this.stage.nativeWindow;

    appWindow.x = (Capabilities.screenResolutionX - appWindow.width) / 2;

    appWindow.y = (Capabilities.screenResolutionY - appWindow.height) / 2;

    var conn: SQLConnection = new SqlConnection ();

    conn.addEventListener (SQLEvent.OPEN, readFromDatabase);

    conn.addEventListener (SQLErrorEvent.ERROR, errorHandler);

    var dbFile:File = File.desktopDirectory.resolvePath ("bookLibrary.db");

    conn.openAsync (dbFile, SQLMode.UPDATE);

    txtIn.addEventListener (Event.CHANGE, changeHandler);

    var txtIn:TextField;

    txtIn.stage.focus = txtIn;

    var txtOut:String = "a";

    function readFromDatabase(event:Event):void

    {

    var selectStmt:SQLStatement = new SQLStatement();

    selectStmt.sqlConnection = conn;

    register listeners for the result and failure (status) events

    selectStmt.addEventListener (SQLEvent.RESULT, readResultHandler);

    selectStmt.addEventListener (SQLErrorEvent.ERROR, errorHandler);

    set the SQL text.

    selectStmt.text = "SELECT * FROM authors WHERE lName LIKE '" + txtOut + "%'";

    Execute the statement

    selectStmt.execute ();

    }

    function readResultHandler(event:SQLEvent):void

    {

    var result: SQLResult = event.target.getResult ();

    var numResults:int = result.data.length;

    get blocks on var numResults:int = result.data.length, because it contains no records.

    for (var i: int = 0; i < numResults; i ++)

    {

    Object: var line = result.data [i];

    var dataOut:String;

    dataOut = row.lName + ', ' + row.fName;

    myList.addItem({label:dataOut});)

    addChild (myList);

    authorName.text = row.lName;

    }

    }

    function changeHandler(e:Event):void

    {

    If (0 < txtIn.text.length)

    {

    myList.removeAll ();

    txtOut = txtIn.text;

    readFromDatabase (e);

    }

    on the other

    {

    myList.removeAll ();

    }

    }

    function errorHandler(event:SQLErrorEvent):void

    {

    trace ("error message:", event.error.message);

    trace ("details:", event.error.details);

    }

    Response

    Hi Kristin,

    This is normal behavior for a select statement to return 0 rows of data.  This isn't a SQL error, that is why there is no SQLError to catch.

    If you take a look at the documentation for the SQLResult.data property

    The last line of the docs States:

    This property is null if a statement returns no data. This is the case if the statement is not a SELECT statement, or if it is a SELECT statement that returns 0 rows.

    Thus, in order to validate if data has been returned before trying to access real data, you should just check if .data is null.

    in your code:

    var result:SQLResult = event.target.getResult();
    var numResults:int = result.data.length;
    
    //crashes on var numResults:int = result.data.length since it contains no record.
    

    You might want to change to be something like:

    var result:SQLResult = event.target.getResult();
    var numResults:int;
    if (result.data != null)
    {
        numResults = result.data.length;
    }
    else
    {
        numResults = 0;
    }
    
    Thank you
    Chris
  • 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.

Maybe you are looking for