Import filesystem not working?

From what I've read, the fileSystem class (which I need to
write a data file to disk from a projector) works in Flash CS4 as
long as you have the AIR runtime (which I do), according to the
documentation.
I found quite a bit of sample code, but I can't even get the
package to load and all of the types and functions and classes are
undefined.
Here's my code:
import flash.filesystem.*;
function writeFile():void {
var file:File = File.documentsDirectory;
file = file.resolvePath("data.txt");
var fileStream:FileStream = new FileStream();
fileStream.open(file, FileMode.WRITE);
// Create string
var cOutStr:String = "This is output data";
fileStream.writeUTF(cOutStr);
fileStream.close();
When I "test movie" in CS4, it doesn't even make it past the
"import" statement, which is strange since that library is included
in the default implicitImports.xml on my installation.
The errors I get start with:
1172: Definition flash.filesystem could not be found.
And continue with expected errors if the library was not
loaded:
1120: Access of undefined property File.
Anyone have any ideas? I can't find filesystem.as in my
install folders. Perhaps it's somewhere else?
Or perhaps I misunderstand the documentation and you can't
use fileSystem in a flash projector with AIR?
Or is there some setting in Flash I need to adjust to work
with the library and AIR?
Please help. I'm on deadline for this project and I don't
have a clue of any other way of writing a text file to the local
hard disk. Any assistance greatly appreciated.

No, I'm not publishing for AIR. I have the AIR runtime and
the free AIR SDK, but the AIR option on the Publish Dialog is
disabled and AIR settings on File Menu do not appear as an option.
I guess I'm pretty lost on this.

Similar Messages

  • Audio CD import is not working the cd is ejected before itunes can read it

    audio CD import is not working the cd is ejected before itunes can read it. Does anyone know how to fix this?
    Lainey

    Does this happen with all cd's or one in particular?
    Reset the SMC http://support.apple.com/kb/HT3964
    Reset the PRAM http://support.apple.com/kb/HT1379
    Try a cleaning disc. You can get them at places like Radio Shack.
    If nothing helps your optical drive has probably failed. You can replace it or purchase an inexpensive external drive. Don't buy the Apple SuperDrive as it won't work with macs that have a built in drive.

  • On iphoto my stop import is not working and the force quit does not work either

    please help - the stop import and force quit on iphoto both not working. thx!

    This happened to me today on the iPad; I put in the password 4 or 5 times. I began to think my account had been hacked. I tried again on my iPhone and it worked first time. Then I tried again on the iPad and same thing—worked first time. Maybe just a temporary glitch in the server?
    Michael

  • Background-color:transparent !important; is not working in IE

    Hi,
    In my sharepoint site i have used "background-color:transparent !important;" css. It is not working in IE but in Mozilla is working fine.
    And I am using IE 11. Please let me know is there any thing wrong in the syntax. If that is the case please provide me correct solution for that.
    Any help would be greatly appreciated. 
    Regards,
    Saya 

    Thank you for your reply.
    I have checked given links. Those are not use for this issue.
    Actually in my sharepoint site the same code "background-color:transparent
    !important;" was working fine before installing sharepoint 2010 service pack 2. After installation we got this issue. And if i change "transparent"
    with any color, it is applying that color. Only "transparent"
    background css is not working in IE.

  • Import statement not working

    i created a package named "pkg1", it contains 4 classes named
    1) Base
    2) Subclass1 (extends Base)
    3) Subclass2 (extends Subclass1)
    4) Subclass3 (extends Subclass2)
    now when i try to use the package using
    import pkg1.*
    and in main method, if i write,
    Subclass3 obj = new Subclass3();
    It does not work, error msg says "makes sure Subclass3 is in the correct sub-directory."
    However, when i tried
    import pkg1.Subclass3;
    It worked fine, Why is then import pkg1.* not working??

    I don't think that's going to help.
    Try and see.
    When the java compiler looks for a class
    pkg1.Subclass1 it looks for pkg1\Subclass1.java
    relative to the current directory and
    pkg1\Subclass1.class relative to each directory on
    the classpath.
    When the javac compiler (at least version 1.4) looks for a dependent class, it looks in the Classpath directories. It only looks relative to the current directory if the current directory is in the Classpath. When it looks for a dependent class, it looks for both .java and .class files. If it only finds a .java file or the .java file is newer than a .class file, it will try to compile the file.
    You need to compile from the directory above
    pkg1, in this case (unfortunately) d:\
    This makes it sound like it is a requirement to compile from the directory. It isn't required.

  • I have iMovie '11, and I am unable to access mpeg HD video files that I want to edit.  The files are fine (I can open and watch them using VLC), but I cannot seem to import the files into iMovie. File Import does not work.  Any suggestions??

    More detail: I have a bunch of mpeg HD video files that were shot on a SONY HDR-HC3 Handycam camcorder.  I would like to edit these into a single video production.  I can access and view the mpeg files using VLC (Quicktime does not work with them).  However, I seem to be unable to get the mpeg files to interface with iMovie '11 -- I cannot use the File --> Import command, nor can I drag-and-drop them into iMovie.
    Is there something anyone might suggest to get this to work?  Or are these files incompatible with iMovie?  If so, I assume I must purchase a different video editing software program (e.g. Adobe Premeir Pro).  Suggestions???
    Many thanks in advance for your time and consideration

      Yes, I tried that.   The files were ordered by their original numbers as imported from the camera, but I batched them through Phocoshop to downsize all of them into a more manageable file size.   I opened that destination folder from quick time  from where it said select image sequence.   I clicked on the first one and opened it.   The result was a large image with an arrow indicating a movie was ready to go.   When I pressed the arrow, though, I realized it had only imported that one frame so there was no movie.   The files are Jpgs and are about 450 KB each. 
        To your knowledge are there any links to iMovie tutorials or quick time tutorials that may address this situation?  Maybe there will be one I haven't looked at yet. 
        Thanks

  • Breeze 5 presenter - Import Audio not working in windows 7

    Hi All,
    We are currently using Breeze 5 presenter, the import audio function not working in the windowns 7 machine. But it works fine in the windows XP machine. Any one can help me on this or any suggesstion?
    Thanks in Advance
    Sajjad.

    Hi Heyward,
    Thanks for your reply. I just want to confirm Are you reffering to Breeze 5 presenter? or the breeze server. I am looking for the breeze 5 presenter where we create some coursewares. if possible could you also please tell us whether any patch release available from adobe to support Breeze 5 presenter on windows 7 operating system. We are getting this problem only in the window 7 machince XP works fine.
    Thank you,
    -Sajjjad.

  • Import button not working - moving shared music to library

    My import button is showing, but I can't click it (it's faded, not as bright as operating buttons). I have shared my old computer's library and am trying to import the shared music to my library. I currently appears on the new computer, but I can't get the import button to work. Yes, I do have both accounts and passwords matched up.

    You can't load shared music into the iPod. You can play the songs on your computer, but you can't copy them to your own personal library nor to the iPod. The only thing I could suggest you do is move all of the shared music to your own computer and/or copy the songs from the original CD's to your computer.

  • Import headers not working

              Hi,
              I just switched to Weblogic from anotehr appserver. I have a JSP page (sample
              given below) and I am trying to import the header for the EJBs that I will be
              using. For a simple thing as this which i have been doing for a while now, it
              did not work. It cannot find the EJB references that I am giving although EJBs
              are deployed and working. I appreciate if you could comment:
              // none of these are recognized...
              <%@ page import="Aggregation.*" %>
              <%@ page import="Aggregation.AggRegisterHome" %>
              <%@ page import="Aggregation.AggRegister" %>
              <%@ page import="javax.naming.Context" %>
              <%@ page import="javax.naming.InitialContext" %>
              <%@ page import="javax.naming.NamingException" %>
              <%@ page import="javax.rmi.PortableRemoteObject" %>
              

    Which WebLogic version are you using? If 6.x then you need to deploy your ejb's and
              web component in a single ear, or copy client classes to WEB-INF/classes or lib.
              Burkan <[email protected]> wrote:
              > Hi,
              > I just switched to Weblogic from anotehr appserver. I have a JSP page (sample
              > given below) and I am trying to import the header for the EJBs that I will be
              > using. For a simple thing as this which i have been doing for a while now, it
              > did not work. It cannot find the EJB references that I am giving although EJBs
              > are deployed and working. I appreciate if you could comment:
              > // none of these are recognized...
              > <%@ page import="Aggregation.*" %>
              > <%@ page import="Aggregation.AggRegisterHome" %>
              > <%@ page import="Aggregation.AggRegister" %>
              > /////////////////////////////////////////////////////
              > <%@ page import="javax.naming.Context" %>
              > <%@ page import="javax.naming.InitialContext" %>
              > <%@ page import="javax.naming.NamingException" %>
              > <%@ page import="javax.rmi.PortableRemoteObject" %>
              >
              Dimitri
              

  • Import Server not working

    Hi ,
    I have a scenario where PI is sending data to MDM inbound port which is automaticaly getting imported to MDM .
    Now problem is PI is succesfully sending data but file is not coming to Inbond port.
    PI side all the configuration is fine .
    Through Import amanger its working fine.
    Kindly help me out .
    Thanks  in advance.
    Regards,
    Neethu Joy

    Hi Neethu,
    it seems problem at PI level because as you said file not coming in MDM inbound port.
    To check MDM import server working or not just put file in MDM inbound port manually and  check wether file processing automatically or not.
    if PI sending file to to inbound port then you need to check port in MDM console and configuration parameter such as remote system, map , file format, processing time, file aggregation count etc.
    Kindly check and revert back.
    Thanks,
    Jignesh Patel

  • Import Project not working... Help?

    I cannot for the life of me figure this out. Running two macs. I have an assistant now who rates/edits photos on one mac running Aperture. When she finished, I exported the project (without checking 'consolidate images') and then imported them on my computer. When I did this, I got the following:
    http://www.redtreedesign.com/other/aperture.png
    So I thought - maybe I should have checked the checkbox on the export. So I went back, checked the box and exported. Sure enough, on the import, I got the same. No files anywhere to be seen, but several folders.
    Any ideas? The files are stored in the aperture library (not referenced).
    Thanks,
    Josh

    I cannot for the life of me figure this out. Running
    two macs. I have an assistant now who rates/edits
    photos on one mac running Aperture. When she
    finished, I exported the project (without checking
    'consolidate images') and then imported them on my
    computer. When I did this, I got the following:
    http://www.redtreedesign.com/other/aperture.png
    How are you transferring the exported project between computers? If you are using the Windows drive sharing feature, that will not work and probably give you what you see. It could be something else as well.
    That would be my best guess as to what is happening. You could double-check the exported project contents when you receive it, use Finder to right-click on the project and select "Show Package Contents" - then you are looking at what files are inside that project. Compare what is in the original exported project on the computer it normally lives on with the copy, and see if there are any differences.

  • Do not import duplicates not working

    How can I import only new photos from memory card? the do not import duplicates checkmark  does not work anymore.

    I reset the import settings to defaults, thinking I might have changed something inadvertently ( I am new at this), and now the checkmark for do not import duplicates cannot be checked ( for the past two weeks it could but it would still import all the duplicates)
    This looks like there may be a problem with broken user preferences in your user account.
    Test, if you can set the "Do not import duplicates" flag, if you sign in as a different user. Enable another user account for testing in the "System Preferences > Users& Groups", e.g. the "Guest" account, if you do not have a test account.  If the "Do not import Duplicates" is working well in this account, we'll know, that broken preferences files or other setings in your current account are probably causing this.
    Then try to remove your user preferences as described in this document :   the Apple Aperture trouble-shooting page.
    You user library may still be hidden, as is the default in Mavericks: To open your hidden user library:
    Select the "Home" folder icon (the little house)  in the Finder's sidebar and press the key combination ⌘J to open the "view options".
    Enable "Show Library Folder".
    Then open the Home folder and open the Library folder inside and navigate to ~/Library/Preferences
    These files and folders need removing:
    ~/Library/Preferences/com.apple.Aperture.plist
    ~/Library/Containers/com.apple.Aperture
    After removing the Preferences files it is essential to log off and on again, or to restart the computer, before you launch Aperture again.  Otherwise it may not take effect.
    -- Léonie

  • OIM Event handler resistered and Imported but not working

    hi,
    I am using OIM 11g in windows 32 bit envoirnment.
    I have registered a pre precess event handle and also imported it into oim but it's not working. pls find below details.
    DB Entry of MDS_PATHS Table
    1     LastNameEventHandlers.xml     197     196     /tiks/LastNameEventHandlers.xml          DOCUMENT     5          143     http://www.oracle.com/schema/oim/platform/kernel     eventhandlers     1          1          UTF-8     3558973303                    0     0
    DB Entry of plugins table
    2 com.holcim.hssa.eventhandler.LastNmPreProcessEventHandlers     oracle.iam.platform.kernel.spi.EventHandler     1.0     LastNamePreProcessEventHandlers     1
    need tio know where does the eventhandlers goes D:\ORCL_HOME\Oracle_IDM1\server\features this path or else,
    but it's not working

    The eventhandler
    <eventhandlers xmlns="http://www.oracle.com/schema/oim/platform/kernel" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.oracle.com/schema/oim/platform/kernel orchestration-handlers.xsd">
    <action-handler class="com.holcim.hssa.eventhandler.LastNmPreProcessEventHandlers" entity-type="User" operation="CREATE" name="LastNmPreProcessEventHandlers" stage="preprocess" order="FIRST" sync="TRUE"/>
    </eventhandlers>
    The Plugin
    <oimplugins>
    <plugins pluginpoint="oracle.iam.platform.kernel.spi.EventHandler">
    <plugin pluginclass="com.holcim.hssa.eventhandler.LastNmPreProcessEventHandlers" version="1.0" name="LastNamePreProcessEventHandlers"/>
    </plugins>
    </oimplugins>
    The handler
    package com.holcim.hssa.eventhandler;
    import java.io.PrintStream;
    import java.util.HashMap;
    import oracle.iam.platform.context.ContextAware;
    import oracle.iam.platform.kernel.spi.PreProcessHandler;
    import oracle.iam.platform.kernel.vo.*;
    public class LastNmPreProcessEventHandlers
    implements PreProcessHandler
    public LastNmPreProcessEventHandlers()
    methodName = "";
    System.out.println("LastNmPreProcessEventHandlers called of NamePreProcessEventHandlers 16 ");
    public boolean cancel(long arg0, long arg1, AbstractGenericOrchestration arg2)
    System.out.println("cancel called");
    return false;
    public void compensate(long arg0, long arg1, AbstractGenericOrchestration arg2)
    System.out.println("getParamaterValue called");
    public EventResult execute(long processId, long eventId, Orchestration orchestration)
    System.out.println("EventResult execute called of LastNmPreProcessEventHandlers 16 ");
    methodName = "execute";
    HashMap parameters = orchestration.getParameters();
    System.out.println((new StringBuilder("Parameters ")).append(parameters).toString());
    String operation = orchestration.getOperation();
    System.out.println((new StringBuilder("Pre Process Operation ")).append(operation).toString());
    if(operation != null && operation.equalsIgnoreCase("create"))
    String firstName = getParamaterValue(parameters, "First Name");
    if(firstName != null && !firstName.trim().isEmpty() && !parameters.containsKey("Middle Name"))
    orchestration.addParameter("Middle Name", firstName.substring(0, 1));
    return new EventResult();
    public BulkEventResult execute(long arg0, long arg1, BulkOrchestration arg2)
    System.out.println("BulkEventResult called of LastNmPreProcessEventHandlers 16 ");
    return null;
    public void initialize(HashMap arg0)
    System.out.println("initialize");
    private String getParamaterValue(HashMap parameters, String key)
    System.out.println((new StringBuilder("getParamaterValue")).append(key).toString());
    String value = (parameters.get(key) instanceof ContextAware) ? (String)((ContextAware)parameters.get(key)).getObjectValue() : (String)parameters.get(key);
    return value;
    private String methodName;
    Also have a question where does it goes after export
    D:\ORCL_HOME\Oracle_IDM1\server\features or elsewhere?

  • DB Adapter Re Import Table Not working (JDev 11.1.1.6.0)

    I am trying to refresh the DB adapter tables after a few columns were added. Here is what I did.
    Adapter configuration wizard --> Import Tables --> Query table --> Move the same table from Available section to Selected Section --> Click OK.
    A message pops up to confirm 'Re-Import Table'. Click Yes.
    At this point it is suppose to refresh the table and add the new columns. But when I click next, it says there are new columns available in the table. The new columns are not added to the DB adapter query.
    Has any one faced this issue? Please suggest any ideas or work around to add the columns.
    Thanks
    Ismail M.

    Re-Import table did not work for me even after lot of struggle. I tried tampering with jca, wsdl etc, re-installed the JDeveloper, tried on multiple machines but nothing worked. I finally gave up and recreated the DB adapter with 'pure sql query' option instead of tables. Re did the mappings etc. It was hard but I seem to have no other options. I will never use the table option again.
    Ismail-m

  • Lucene import statements not working

    I'm new to Tomcat, Lucene, and JSP, so bare with me...
    I just installed all three and Tomcat and JSP are working and Lucene is working. Now I'm trying to get them working together but I don't know where my issue is. I have a sample page I found and it's not working and giving me the following error messages...
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 6 in the generated java file
    Only a type can be imported. com.knowledgebooks.servlet.StartupWorkServlet resolves to a package
    An error occurred at line: 7 in the generated java file
    Only a type can be imported. org.apache.lucene.document.Document resolves to a package
    An error occurred at line: 8 in the generated java file
    Only a type can be imported. org.apache.lucene.search.Searcher resolves to a package
    An error occurred at line: 9 in the generated java file
    Only a type can be imported. org.apache.lucene.search.IndexSearcher resolves to a package
    An error occurred at line: 10 in the generated java file
    Only a type can be imported. org.apache.lucene.analysis.Analyzer resolves to a package
    An error occurred at line: 11 in the generated java file
    Only a type can be imported. org.apache.lucene.analysis.standard.StandardAnalyzer resolves to a package
    An error occurred at line: 14 in the generated java file
    Only a type can be imported. org.apache.lucene.search.Query resolves to a package
    An error occurred at line: 15 in the generated java file
    Only a type can be imported. org.apache.lucene.queryParser.QueryParser resolves to a package
    An error occurred at line: 16 in the generated java file
    Only a type can be imported. org.apache.lucene.search.Hits resolves to a package
    An error occurred at line: 17 in the generated java file
    Only a type can be imported. com.knowledgebooks.API resolves to a packageI'm not even sure where to begin looking. Does anyone have any idea?
    Thanks in advance!

    can you provide me your jsp code? so i can look into and advice you.

Maybe you are looking for

  • Deregister mbean MessageBrokerServlet error in WAS 6.1.0.17

    I installed LCDS 2.6 (lcds_war.war) in WAS 6.1.0.17. I am getting the following error when i start lcds_war, Deregister the mbean because of uncaught init() exception thrown by servlet MessageBrokerServlet: javax.servlet.UnavailableException: org/apa

  • Configuating 11.1.2.1 on window r2 SQL database Schema

    I am install 11.1.2.1 using SQL for my Database My question is if I drop and recreate the table for shared service will this be a issue for the HSS_Component Table well as I continued with the install the database failed again what logs can view i re

  • SCS-2U01 Web Page Issue

    What do I need to do to access the SCS-2U01 device web page?  I would like to check settings but the page doesn't load and times out in Firefox and IE.  Also, no ping response from the unit. The mac address on the bottom matches the address found in

  • GridView in MVC-2 onwards

    Do we need to use JScript, Jquery or some other extenstions to implement the Gridview functionality in the MVC architecture. Dont we have the option to straight away bind the dataset to the asp.net grid view control just like we do in asp.net webform

  • Problem building matrix

    Hello, I create a crosstab with Jdeveloper. My dimensions and my cube are valid. I can select my measures, my dimensions but at the end screen, i have this error message on the console : BIB-9509 Oracle DPR : CrÚation impossible du curseur de serveur