Accessing the filesystem

Is it possible to acces the real filesystem (not a vfs) through libc with abode air? Even if this do not work for a release build that would be nice. I am trying to setup a dev environement with Lua, but each time I change my assets I have to compile a vfs and my as3 project. It would be really nice to be able to add assets without compiling each time, since as3 compilation (when linking with a flascc swc) is a bit long.
Also, at the moment I am loading my lua files with an URLLoader, but then I need to execute the file as a string (doString in lua), but a lua doString is a bit harder to debug than a real file. So I'd prefer to do it with a doFile call (which need to do it through libc).

We do provide a VFS based on URLLoader; you can see an example in the filesystem sample (samples/07_FileSystem). While I haven't tried it, I believe that Air will alow you to access local files via URLLoader. That said, the current implementation of the URLLoader VFS does some processing on the files that would need to be performed each time they change, so it may not speed up your development cycle much. If that's the case, you could try writing a custom VFS by implementing the IBackingStore interface. Note that the VFS system assumes that once your program is running, all changes to the filesystem are performed either via libc or the VFS ActionScript interface. In other words, if you make any changes to the files on your native filesystem, you'll need to relaunch your SWF or Air program before you'll see the changes.

Similar Messages

  • When using Java Wizard with Firefox 3.6.23 on a Mac OS X 10.6.8 it keep getting an error message: "The Java Wizard cannot run. Please configure your browser to allow Java applets to access the filesystem." Have NO idea how to fix this problem.

    When trying to upload files I received the following error: "The Java Wizard cannot run. Please configure your browser to allow Java applets to access the filesystem."

    If the problem is with a site that is hosted using MOVEit DMZ by Ipswitch, please notify the site owner of the issue and ask them to apply the patch that is available on the support site to resolve the issue.
    This is a better resolution than downgrading your version of Java that was updated due to security issues.

  • After downloadeding the latest Java plugin, I start to receive "Please configure your browser to allow Java applets to access the filesystem" message when I try to run a download wizard. What do I need to do? BTW, IE does not have this problem.

    I had no problem using a download wizard Java applet to download file to my computer from an SFTP site using Firefox. When I tried to do the same thing with Chrome, I was told to download the latest plugin. Once I did that, I receive the following message when I run the downlaod wizard:
    The Java Wizard cannot run.
    Please configure your browser to allow Java applets to access the filesystem.
    I got the same message using Firefox and Chrome. However, I have no problem using IE to run the same download wizzard. Please help.

    If the problem is with a site that is hosted using MOVEit DMZ by Ipswitch, please notify the site owner of the issue and ask them to apply the patch that is available on the support site to resolve the issue.
    This is a better resolution than downgrading your version of Java that was updated due to security issues.

  • How to use PDA module to access the database of PDA?

    I want to develop a program which  can access the database of PDA by the pda module. give me some advice!
      thanks!

    It may help you to know how I add JARs
    1. I open my Project (myProject)
    2. I Mount the JAR to the FileSystem (like mypackages.jar = which includes com.mus.de.myClass.java)
    3. I Mount the File to the FileSystem (like c:\..myfiles..\myProject)
    3.1 I add the File to my Project
    4. I select File | New -> Classes | Main
    4.1 I typed "import com.mus.de.myClass.java" to refer to this package.
    4.2 I called some of the public methods
    thats it
    Andreas

  • File IO: waiting for changes to be actually made to the filesystem

    Hello.
    I' ve multiple threads that access concurrently to a file.
    The operations are:
    -open the file file1
    -copy some lines to a new file file2
    -delete the old file file1
    -rename file2 into file1
    the method is synchronized.
    The problem is that, even after I close the files and return from the method, changes are not still propagated to file system.
    So, if the threads are fast, even if the second thread enter the method after the first has terminated, the old file has not yet been deleted and the second not yet renamed, or anyway "handles" to such files not yet been relased at file system level.
    I don't have to guarantee high concurrency..so it would be just good for me to be sure that every thread will wait until all changes are made to the filesystem and all the handles have been released correctly.
    How can I do that?
    thank you very much.
    PA
    Edited by: Paranoid_Fabio on Sep 16, 2008 1:40 AM

    My code is:
    private synchronized void updateCodes(String path,User u,String code) throws IOException{
                    //open the file
              File dumpfile=new File(path);
              if(!dumpfile.exists())
                   dumpfile.createNewFile();
              RandomAccessFile rep=new RandomAccessFile(dumpfile,"r");
              //create the temp file
              File temp=new File(path+".tmp");
              temp.createNewFile();
              PrintWriter out=new PrintWriter(new FileWriter(temp));
              long pointer=rep.getFilePointer();
              while(pointer<rep.length()){
                   //do some line copies from the first file to the temp one               
              out.flush();
              out.close();
              rep.close();
              //delete the first file and rename the second
              dumpfile.delete();
              temp.renameTo(dumpfile);
         }

  • How do I access the web utility with model cisco sf302-08p ?

    Hi,i have a problem with the model Cisco SB SF302-08PP Switch , i connect a cable rj45 to my pc and configure the adapter local area connection (ip address:192.168.1.252), the LEDs blink green, and go to the address bar and get the IP by default, which according to the manual is 192.168.1.254 and the result is: page not found. Is there any way to change the web utility? How do I access the web utility?

    restore  the switch by holding more than 30 seconds and try accessing with ip 192.168.1.254. username and password is "cisco". before change your base ip to 192.168.1.2-253.try to ping and check the connectivity

  • Delete file from the filesystem?

    Hello,
    I have an easy question. But I don´t find the right oracle packages.
    I want to delete a file from the filesystem. How can I do this?
    Thanks for your help!

    Paul,
    If connecting to the Web server on East-Coast USA is not optimal for you, or if you aren't using Oracle 10g Release 2, try this URL instead:
    http://www.oracle.com/technology/documentation/index.html
    You need to look for the PL/SQL Packages and Types Reference document, the section detailing the UTL_FILE package.
    Good Luck,
    Avi.
    Message was edited by:
    Avi Abrami

  • Prevent multiple users accessing the same form

    hi,
    i am working in forms
    i have a requirement like this
    if more than one user are using the same form and try to access the same record then the second user should not be able to do transaction
    he should be popped up with a msg saying that other user is working on it
    can any one suggest how to do this in my form
    thanks in advance
    selvaraj s

    That is pretty much exactly the way Forms works automatically.
    Two users can use the same form, and can even display the same data record. One of the users can make changes to the record -- Forms locks the row upon the FIRST keystroke in the first field the user begins to change.
    Once the row is locked, the second user is free to look at the record, and won't even know if another user has begun making changes. However, if second user tries to change even one field in the record, Forms pops up the message, "Could not reserve record (2 tries). Keep trying? Yes / No"
    There are also protections so if the first user actually changes the row and commits, then the second user tries to make a change. Forms will automatically detect whether changes were made, and if so, will undo the change and issue the message, "FRM-40654: Record has been updated by another user. Re-query to see change."
    The above automatic processing works very nicely. If it will not work for you, then what is it you need?

  • Multiple users accessing the same data in a global temp table

    I have a global temp table (GTT) defined with 'on commit preserve rows'. This table is accessed via a web page using ASP.NET. The application was designed so that every one that accessed the web page could only see their data in the GTT.
    We have just realized that the GTT doesn't appear to be empty as new web users use the application. I believe it has something to do with how ASP is connecting to the database. I only see one entry in the V$SESSION view even when multiple users are using the web page. I believe this single V$SESSION entry is causing only one GTT to be available at a time. Each user is inserting into / selecting out of the same GTT and their results are wrong.
    I'm the back end Oracle developer at this place and I'm having difficulty translating this issue to the front end ASP team. When this web page is accessed, I need it to start a new session, not reuse an existing session. I want to keep the same connection, but just start a new session... Now I'm losing it.. Like I said, I'm the back end guy and all this web/connection/pooling front end stuff is magic to me.
    The GTT isn't going to work unless we get new sessions. How do we do this?
    Thanks!

    DGS wrote:
    I have a global temp table (GTT) defined with 'on commit preserve rows'. This table is accessed via a web page using ASP.NET. The application was designed so that every one that accessed the web page could only see their data in the GTT.
    We have just realized that the GTT doesn't appear to be empty as new web users use the application. I believe it has something to do with how ASP is connecting to the database. I only see one entry in the V$SESSION view even when multiple users are using the web page. I believe this single V$SESSION entry is causing only one GTT to be available at a time. Each user is inserting into / selecting out of the same GTT and their results are wrong.
    I'm the back end Oracle developer at this place and I'm having difficulty translating this issue to the front end ASP team. When this web page is accessed, I need it to start a new session, not reuse an existing session. I want to keep the same connection, but just start a new session... Now I'm losing it.. Like I said, I'm the back end guy and all this web/connection/pooling front end stuff is magic to me.
    The GTT isn't going to work unless we get new sessions. How do we do this?
    Thanks!You may want to try changing your GTT to 'ON COMMIT DELETE ROWS' and have the .Net app use a transaction object.
    We had a similar problem and I found help in the following thread:
    Re: Global temp table problem w/ODP?
    All the best.

  • How can I use the old Apple TV with new iTunes?  It tells me to input a code in iTunes but iTunes no longer has a spot to input this code to allow sync.  I can access the iTunes Store fine, just none of my Library

    How can I use the old Apple TV with new iTunes?  It tells me to input a code in iTunes but iTunes no longer has a spot to input this code to allow sync.  I can access the iTunes Store fine, just none of my Library

    read this
    https://discussions.apple.com/message/20429789#20429789

  • I downloaded 11.1 but now can't access the store, can only view my library. I've reinstalled but still get a blank, white screen when I try to go to the itunes store. How can I get to the store for purchases?

    I downloaded 11.1 but now can't access the store, can only view my library. I've reinstalled but still get a blank, white screen when I try to go to the itunes store. How can I get to the store for purchases?

    In iTunes prefs>Store - is the Store check box unchecked?
    Did you repair pemissions with Disk Utility?
    MJ

  • How can I verify my iCloud account if I can not access the primary email account associated with my Apple ID?

    The email address I had set for my Apple ID when I had originally signed up was through my college.  I have been out of college now for a few years and the email account has been deleted. I was trying to set up iCloud on my iPad and iPhone but it says I need to access the account to verify through email.  I have tried to change my Apple ID email to my current email address but it tells me I can not do this either because that email is set up as my rescue email.  How can I change my primary email address for my Apple ID or get my iCloud verified in this situation I'm in?

    Go to http://appleid.apple.com and click 'Manage your account'. You will be able to change the non-Apple email address you use as a login. You will then need to log out and in again on all your devices.

  • How do I enable multiple profiles to access the same itunes library?

    Family of 4; with 4 different user profiles/log ins.  One family iTunes library; how can I allow all profiles to access the one master iTunes library?

    annafromsalt lake city wrote:
    how can I allow all profiles to access the one master iTunes library?
    move the entire iTunes folder to <MacintoshHD>/users/shared. on each user account, launch iTunes while holding the option(⌥) key, click on choose library when prompted, and select the iTunes folder you moved to the share folder.
    be aware only one iTunes at a time can access the library !

  • Access the Name and Value of a StationGlo​bals container programati​cally

    Hello,
    I am having some trouble trying to programmatically write the contents of a container into my HTML report header. The container contains a series of strings and numbers. These are saved into StaionGlobals.
    Note that I am performing all of these operations in a statment step inside the sequence editor of TestStand
    I used the following method to access the correct property, which sits inside a for loop. Now this seems to work fine as Locals.PropertyObj contains the element which I wish to access. In the following Locals.PropertyObj is an object. TestSetup is the name of my setup information container
    Locals.PropertyObj = StationGlobals.GetNthSubProperty("TestSetup", StationGlobals.ForIterator, 0)
    I can access the Name of the parameter simply by using the following code (where Locals.Name is a string):
    Locals.Name = StationGlobals.GetNthSubPropertyName("TestSetup", StationGlobals.ForIterator, 0)
    However when I try to access the actual value of the parameter I get an error or the wrong information. The following line gives me back the value "PropertyObject, IID = {8D87....}" which is not the value I am trying to get to.
    Locals.Val = StationGlobals.GetNthSubProperty("TestSetup", StationGlobals.ForIterator, 0)
    I must be doing something wrong, and have tried various methods to do this but cannot get my head around the problem. I tried to use the following also, but it resulted in an error:
    Locals.PropertyObj.AsPropertyObject.GetFormattedValue((Locals.PropertyObj.AsPropertyObject).Name, 0, "", False, "")
    Note that the following line works fine:
    (Locals.PropertyObj.AsPropertyObject).Name
    Also can you tell me why the lookup string needs to be defined in Locals.PropertyObj.AsPropertyObject.GetValueString​(), is there a way to not require the lookup string as you are already have the correct property, and just the value is needed to be gotten.
    One last thing, in Evaluate() how do I make it work with dots, for example the following line  (another attempt to get the value) did not work due to the presence of the . character 
    Evaluate("StationGlobals.TestSetup." + (Locals.PropertyObj.AsPropertyObject).Name)
    Many thanks in advance of your response,
    Ben Lawler
    ps. hope that I am not being stupid and missed something very obvious

    Ben,
    Just a few comments;
    [Locals.PropertyObj = StationGlobals.GetNthSubProperty("TestSetup", StationGlobals.ForIterator, 0)]
    This should give you a PropertyObject for the 1st subproperty of StationGlobals.TestSetup if StationGlobals.ForIterator = 0
    [Locals.Name = StationGlobals.GetNthSubPropertyName("TestSetup", StationGlobals.ForIterator, 0)]
    This should give you the name of the 1st subProperty of StationGlobals.TestSetup if StationGlobals.ForIterator = 0
    [Locals.Val = StationGlobals.GetNthSubProperty("TestSetup", StationGlobals.ForIterator, 0)]
    This is going to return the 1st subproperty of StationGlobals.TestSetup if StationGlobals.ForIterator = 0 as a PropertyObject reference
    and Locals.Val should be an ActiveX Reference type which I am guessing it isn't.
    [Locals.PropertyObj.AsPropertyObject.GetFormattedV​alue((Locals.PropertyObj.AsPropertyObject).Name, 0, "", False, "")]
    I think this should be Locals.PropertyObj.GetFormattedValue("", 0, "", False, ""), you dont need to specify the lookup string because you have obtained a reference to the actual sub-PropertyObject.
    and therefore
    Locals.Val = Locals.PropertyObj.GetFormattedValue("", 0, "", False, "")
    should give you the value of the 1st subproperty of StationGlobals.TestSetup if Locals.PropertyObj was obtained as above.
    I will try to check out your sequencefile later when I have access to TestStand 4.x.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Not able to access the Oracle I/PM web client.

    I have started the Administration server and the Oracle I/PM Managed Server. Now I'm trying to access the Oracle I/PM web client at this URL: http://hostname:16000/imaging. But when I hit this URL, the following error comes up:
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    I'm also posting a part of the logs from the IPM_server log file:
    ####<May 20, 2013 10:32:52 AM IST> <Notice> <WebLogicServer> <01hw311161> <IPM_server1> <main> <<WLS Kernel>> <> <> <1369026172860> <BEA-000360> <Server started in RUNNING mode>
    ####<May 20, 2013 10:32:53 AM IST> <Info> <J2EE> <01hw311161> <IPM_server1> <[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1369026173516> <BEA-160151> <Registered library Extension-Name: bea_wls_async_response (JAR).>
    ####<May 20, 2013 10:32:53 AM IST> <Info> <WebService> <01hw311161> <IPM_server1> <[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1369026173641> <BEA-220103> <Async web service support is not fully configured. The async response web service /AsyncResponseServiceHttps for this server was not fully deployed because the JMS reliability queue was not defined/deployed: weblogic.wsee.DefaultQueue. The server will periodically retry completing the deploy for the service. This message can usually be ignored unless there are async web service applications. To completely disable async web service support, thus avoiding this message, set -Dweblogic.wsee.skip.async.response=true.>
    ####<May 20, 2013 10:32:53 AM IST> <Info> <WebService> <01hw311161> <IPM_server1> <[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1369026173735> <BEA-220103> <Async web service support is not fully configured. The async response web service /AsyncResponseServiceJms for this server was not fully deployed because the JMS reliability queue was not defined/deployed: weblogic.wsee.DefaultQueue. The server will periodically retry completing the deploy for the service. This message can usually be ignored unless there are async web service applications. To completely disable async web service support, thus avoiding this message, set -Dweblogic.wsee.skip.async.response=true.>
    ####<May 20, 2013 10:32:53 AM IST> <Info> <WebService> <01hw311161> <IPM_server1> <[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1369026173735> <BEA-220103> <Async web service support is not fully configured. The async response web service /AsyncResponseService for this server was not fully deployed because the JMS reliability queue was not defined/deployed: weblogic.wsee.DefaultQueue. The server will periodically retry completing the deploy for the service. This message can usually be ignored unless there are async web service applications. To completely disable async web service support, thus avoiding this message, set -Dweblogic.wsee.skip.async.response=true.>
    ####<May 20, 2013 10:32:53 AM IST> <Info> <WebService> <01hw311161> <IPM_server1> <[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1369026173750> <BEA-220103> <Async web service support is not fully configured. The async response web service /AsyncResponseServiceSoap12Jms for this server was not fully deployed because the JMS reliability queue was not defined/deployed: weblogic.wsee.DefaultQueue. The server will periodically retry completing the deploy for the service. This message can usually be ignored unless there are async web service applications. To completely disable async web service support, thus avoiding this message, set -Dweblogic.wsee.skip.async.response=true.>
    ####<May 20, 2013 10:32:53 AM IST> <Info> <WebService> <01hw311161> <IPM_server1> <[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1369026173766> <BEA-220103> <Async web service support is not fully configured. The async response web service /AsyncResponseServiceSoap12 for this server was not fully deployed because the JMS reliability queue was not defined/deployed: weblogic.wsee.DefaultQueue. The server will periodically retry completing the deploy for the service. This message can usually be ignored unless there are async web service applications. To completely disable async web service support, thus avoiding this message, set -Dweblogic.wsee.skip.async.response=true.>
    ####<May 20, 2013 10:32:53 AM IST> <Info> <WebService> <01hw311161> <IPM_server1> <[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1369026173782> <BEA-220103> <Async web service support is not fully configured. The async response web service /AsyncResponseServiceSoap12Https for this server was not fully deployed because the JMS reliability queue was not defined/deployed: weblogic.wsee.DefaultQueue. The server will periodically retry completing the deploy for the service. This message can usually be ignored unless there are async web service applications. To completely disable async web service support, thus avoiding this message, set -Dweblogic.wsee.skip.async.response=true.>
    ####<May 20, 2013 10:33:51 AM IST> <Info> <Health> <01hw311161> <IPM_server1> <weblogic.GCMonitor> <<anonymous>> <> <> <1369026231604> <BEA-310002> <85% of the total memory in the server is free>
    What configuration am I missing?
    Thanks in advance
    Pradeep

    Hi Srinath,
    I have checked that as well, it is showing the IPM_server in running mode.
    Also it doesn't show any deployment failure in the command line. Here is what it shows:
    <May 20, 2013 10:32:51 AM IST> <Notice> <WebLogicServer> <BEA-000332> <Started W
    ebLogic Managed Server "IPM_server1" for domain "base_domain123" running in Deve
    lopment Mode>
    <May 20, 2013 10:32:52 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server st
    ate changed to RUNNING>
    <May 20, 2013 10:32:52 AM IST> <Notice> <WebLogicServer> <BEA-000360> <Server st
    arted in RUNNING mode>
    I feel there is some issue as this log is suggesting:
    ####<May 20, 2013 10:32:53 AM IST> <Info> <WebService> <01hw311161> <IPM_server1> <[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1369026173782> <BEA-220103> <Async web service support is not fully configured. The async response web service /AsyncResponseServiceSoap12Https for this server was not fully deployed because the JMS reliability queue was not defined/deployed: weblogic.wsee.DefaultQueue. The server will periodically retry completing the deploy for the service. This message can usually be ignored unless there are async web service applications. To completely disable async web service support, thus avoiding this message, set -Dweblogic.wsee.skip.async.response=true.>
    But I don't know how to resolve it.
    Thanks
    Pradeep

Maybe you are looking for