Import and read a file in AS3

Using AS3, I want to extracte data from a file to fill in my arrays.
I would like to do this without using php and server side coding
all done in AS3
the file can be a spread sheet
thx in advance

It works vey well for text files. I tried it with the code below
Now to read excel spread instead of text, what it the easiest way or fastet way?
Thanks in advance
package{
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.display.MovieClip;
    import flash.events.Event;
    public class ReadFile extends MovieClip {
            var urlLDR:URLLoader;
            var urlR:URLRequest;
        public function ReadFile ():void
        { init();}
        public function init ():void {
            urlLDR = new URLLoader();
            urlR = new URLRequest("Test.txt");
//urlR = new URLRequest("Test.xls");
            urlLDR.addEventListener(Event.COMPLETE,f);
            urlLDR.load(urlR);
        function f(e:Event){
            trace(e.target.data);
    }//class
}//package

Similar Messages

  • How to import and read .lmx files into 2710 Nav.?

    All,
    is there a way to import a route (lmx file) and use it with the 2710?
    I can't find the way to open such a file...
    Thanks a lot for any help, Benoit.

    There is a way (not very comfortable but working) how to import POIs in Nokia 2710.
    Create a set of LMX files, __each containing just one POI__.
    Store those files somewhere on the SD card.
    When you need to reach a POI, select the particular file (Menu / Gallery / All content / Memory card / (the particular directory) / (the particular file)) and select Open.
    The POI will open in the Ovi Maps. Now you can navigate to it (Options / Navigate to) or save it (by Options / Use location / Save location). When saving, you will need to insert the name (the name is NOT copied from the .LMX file).
    Make sure that you have a map covering the area of POIs (if you do NOT have it, upon opening the POI file, you will just get yellow background).
    Examples of LMX files are attached. Examples are located in the Czech republic so make sure that you have the map of the Czech republic.
    PS: Maybe someone would be interested to write a J2ME application which
    1) would parse .GPX file with a lot of POIs
    2) show the POIs to the user (including all the details of POI)
    3) when user selects a POI, generate an LMX file and invoke system to show it (using platformRequest J2ME API).
    4) alternatively, user could insert the GPS coordinates directly.
    Attachments:
    lm.zip ‏1 KB

  • Can I import and open raw files on the new photo app?

    Hi,
    Can I import and open raw files on the new photos app on my ipad?  Does it convert it to jpeg automatically when you want to share them?
    Thanks.

    Clem is telling you to click on the View menu, move the pointer down to the item "Metadata," & from its choices make sure "Show Titles" is selected. Do this, then make sure you are in a view in the main window that shows one or more videos (or whatever) that you want to title. Click once on one of them, & if the separate Info window is not open, open that (on the Windows menu or command + i as a keyboard shortcut). In the Info window the top line will be "Add a Title."
    Click once on that & type your title.
    This works for any item, video or photo.

  • Can i conect my external storage device using the adaptor for a USB conection to my I-Pad 2 and read my files on the I-pad

    Can I conect and read my files form an external storage device, using the USB conection, on an I-pad2

    The camera connection kit USB connector can only be used for import of photos & videos. Can't be used for export of any files.
     Cheers, Tom

  • HT4641 , I'm currently using apach, open office on my laptop, will I be able to import and edit these files using Pages??? Thanks in advance.

    , I'm currently using apach, open office on my laptop, will I be able to import and edit these files using Pages??? Thanks in advance.

    Yes, as long as you save them in .doc format.

  • I am getting messages that I can't download and read .pdf files since I have the wrong Adobe reader. I know about their security disasters of course, but I downloaded the latest version of Adobe Reader from the Adobe web site and I have other ,pdf file re

    I am getting messages that I can't download and read .pdf files since I have the wrong Adobe reader. I know about their security disasters of course, but I downloaded the latest version of Adobe Reader from the Adobe web site and I have other ,pdf file readers as well, and for some reason they won't work either. I have 5 computers running top end processors and RAM. By this I mean I have one, this one which I am using that has an AMD Phenom Black 3.2 Quad-core with 8 GBs of Corsair top DDR2 RAM, my other two AMD have either an Athlon II triple core with 4 GBs of DDR2 Corsair RAM, one with the Phenom X4 965 3.4 GHz Quad-core with 8 GBs of their best DDR2 RAM, and two Intels with the i7 920 Processors using the triple channel 1366 socket processors and one with 8 GBs of low latency DDR3 RAM and the other with 4 GBs of the same RAM. I am getting the message on this one, which has a fresh install of XP Pro X64 operating system, as do the other 4 as well. I have run Avast Business Pro Anti-virus on this one, which I am getting the message on with a single result which I deleted, and also both Spybot Search and Destroy, which came back clean as well as Malwarebytes Antimalware, which got a lot of tracing cookies now removed, and SuperAntiSpware which also found a few cookies also now deleted. Can you tell me what I need to do to get these files to show as .pdf files rather than as a clean blank page. One other issue is that I wish to know how to turn off my downloads so they are saved and Mozilla will give me the option of returning them instead of me losing them all together as it does now. Thanks for your assistance. If there is another Adobe reader I should download and install, could you provide me with the link to it? I appreciate your assistance here
    == When I download and try to read a .pdf file and when I am asked to turn off all Firefox files and if I do, I lose them since I need to know how to save them without rebooting my computer.

    Brilliant! Problem solved! Thanks so much.

  • How to open and read binary files?

    How do I open and read Binary files?

    Did you  look on The Unarchiver's web site where it has a link to older versions? http://theunarchiver.googlecode.com/files/TheUnarchiver3.2_legacy.zip
    The best thing to do is ask your friends what programs they used to produce these files, or at least what format files they are producing.  Otherwise it's like being shown a car and given a bundle of 200 keys with no idea to which one to use, or even if any of them work with that car.
    Using The Unarchiver will likely not do anything because it too will not know what format files are involved, and they may not even been in an archived format.  If they sent you a Word file without telling you (a favorite of Windows users to do  -- it drives me crazy when they could have just sent them in plain text), The Unarchiver won't open them.  If it's a picture file then using Hexedit will just show you a bunch of unintelligible stuff as shown in an earlier post, though you may see a line of text providing a hint.
    As I said earlier, often .bin may be an executable program which needs another program to actually interpret it.  That's what Java is trying to do.  Still, it may think it can execute the file, but it is highly unlikely somebody would send you an executable program (and if they did I would not trust it).  For all you know it may be a Windows virus.

  • Crashes and read-only file systems

    Notice: I apolgize for the long post, I've tried to be as thorough as possible.  I have searched everywhere for possible solutions, but things I've found end up being temporary workarounds or don't apply to my situation.  Any help, even as simple as, "have you checked out XYZ log, it's hidden here", would be greatly appreciated.  Thanks
    I'm not sure what exactly caused the issues below, but they did start to happen within a day of running pacman -Syu.  I hadn't run that since I first installed Arch on December 2nd of this year.
    Setup:
    Thinkpad 2436CTO
    UEFI/GPT
    SSD drive
    Partitions: UEFISYS, Boot, LVM
    The LVM is encrypted and is broken up as: /root, /var, /usr, /tmp, /home
    All LVM file systems are EXT4 (used to have /var and /tmp as ReiserFS)
    The first sign that something was wrong was gnome freezing.  Gnome would then crash and I'd get booted back to the shell with all filesystems mounted as read-only.  I started having the same issues as this OP:
    https://bbs.archlinux.org/viewtopic.php?id=150704
    At the time, I had /var and /tmp as ReiserFS, and would also get reiserfs_read_locked_inode errors.
    When shutting down (even during non-crashed sessions) I would notice this during shutdown:
    Failed unmounting /var
    Failed unmounting /usr
    Followed by a ton of these:
    device-mapper: remove ioctl on <my LVM group> failed: Device or resource busy
    Nother of these errors had ever appeared before.
    After hours of looking for solutions (and not finding any that worked) I was convinced (without any proof) that my Reiser file systems were corrupt and so I reformatted my entire SSD and started anew - not the Arch way, I know   I set all logical volumes as EXT4.
    After started anew, I noticed
    device-mapper: remove ioctl on LVM_SysGroup failed: Device or resource busy
    was still showing up, even with just a stock Arch setup (maybe even when powering off via Arch install ISO, don't remember).  After a lot of searching, I found that most people judged it a harmless error, so I ignored it and continued setting up Arch.
    I set up Gnome and a basic LAMP server, and everything seemed to work for a couple of hours.  Soon after, I got the same old issues back.  The System-journald issue came back and per the workaround on https://bbs.archlinux.org/viewtopic.php?id=150704 and a couple other places, I rotated the journals and stopped journald from saving to storage.  That seemed to stop THOSE errors from at least overwhelming the shell, but I would still get screen freezes, crashes, and read-only file systems.
    I had to force the laptop to power off, since poweroff/reboot/halt commands weren't working (would get errors regarding the filesystems mounted as read-only).
    I utilized all disk checking functions possible.  From running the tests (SMART test included) that came as part of my laptop's BIOS to full blown fsck.  All tests showed the drive was working fine, and Fsck would show everything was either clean, or
    Clearing orphaned inode ## (uid=89, gid=89, mode=0100600, size=###
    Free blocks count wrong (###, counted=###)
    Which I would opt to fix.  Nothing serious, though.
    I could safely boot back into Arch and use the system fine until the system decides to freeze/crash and do the above all over again.
    The sure way of recreating this for me is to run a cron job on a local site I'm developing. After a brief screen freeze (mouse still moveable but everything is otherwise unreponsive) I'll systemctl status mysqld.service and notice that mysqld went down.
    It seems that it's at this point my file systems are mounted as read only, as trying to do virtually anything results in:
    unable to open /var/db/sudo/...: Read-only file system
    After some time, X/Gnome crashes and I get sent back to shell with
    ERROR: file_stream_metrics.cc(37)
    RecordFileError() err = 30 source = 1 record = 0
    Server terminated successfully (0)
    Closing log file.or_delegate.h(30)] sqlite erro1, errno 0: SQL logic error or missing database[1157:1179
    rm: cannot remove '/tmp/serverauth.teuroEBhtl': Read-only file system
    Before all this happened, I was using Arch just fine for a few weeks.  I wiped the drives and started anew, and this still happens with just the minimal number of packages installed.
    I've searched for solutions to each individual problem, but come across a hack that doesn't solve anything (like turning off storing logs for journal), or the solution doesn't apply to my case.
    At this point, I'm so overwhelmed I'm not even sure where exactly to pick up figuring this issue out.
    Thanks in advance for any help

    Did this occur when you booted from the live/install media?
    What is your current set up? That is, partitions, filesystems etc. I take it you have not yet reinstalled X but are in the default CLI following installation?
    If turning off log storage didn't help, reenable it so that you may at least stand a chance of finding something useful.
    What services, if any, are you running? What non-default daemons etc.?
    Does it happen if you keep the machine off line?
    Have you done pacman -Syu since installation and dealt with any *.pacnew files?
    Last edited by cfr (2012-12-26 22:17:57)

  • Why can I no longer download and read .pdf files

    I have never had any problems downloading and reading .pdf files until I 'upgraded' the Adobe reader to version 11. Now all attempted downloads fail because "I don't have the necessary helper application or even C:\DOCUME~1\Will-o\LOCALS~1\Temp\Back Channel II - The Vietnam Betrayal - Chaps 1&2.pdf could not be opened, because the associated helper application does not exist. Change the association in your preferences. What in the world is going on and how do I fix it?
    Under 'Tools - Applications - Adobe Acrobat Document, the I've selected 'Use Adobe Reader.' However since I also have Adobe Acrobat 8.3, I've tried substituting that for the Reader, but that doesn't work either. Please help.

    Brilliant! Problem solved! Thanks so much.

  • Can I save and read text files on a server that I host?

    Hello everyone,
    I am a java hobbiest. I was wondering if I set up my own server, running out of my house, could I have my applets save to my computer and read from my computer without having to learn JDBC and a DATABASE language. In other words could i just have my applet save and read text files from and to my server?
    I'm trying to set up a sight for my 5th grade class where parents can log into. Thanks for your time.
    Oh yeah, which is easier, learning how to set up a server or learning JDBC and a DATABASE language?
    If you have any other good idease please tell me them
    Thank you, Bryan

    Short answer: This isn't gonna work
    Long answer: For this to work, the first thing you're going to need is a static IP address and a DNS name registered -actually you don't necessarily need #2 but you're probably gonna want it and it's by far the easier of the steps.
    As far as I know to get a fixed IP address you've either gotta be directly attached to a larger network (ie university network) or get a leased line from an ISP.
    Once you've got that done come back to us.

  • How to create and read text file using LabVIEW 7.1 PDA module?

    How to create and read text file using LabVIEW 7.1 PDA module? I can not create a text file and read it.
    I attach my code here.
    Attachments:
    File_IO.vi ‏82 KB

    Well my acquisition code runs perfect. The problem is reading it. I can't seem to read my data no matter what I do. My data gets saved as a string using the array to string vi but I've read that the string to array vi (which I need to convert back to array to read my data) does not work on the pda. I'm using version 8.0. So I was trying to modify the program posted in this discussion so that it would save data from my DAQ. I did that but I still can't read the data after its saved. I really don't know what else to do. All I need to do is read the data on the pda itself. I can't understand why I'm having such a hard time doing that. I found a possible solution on another discussion that talks about parsing the strings because of the bug in the "string to array" vi. However, that lead me to another problem because for some reason, the array indicators or graphs don't function on the pda. When i build the program to the pda or emulator, the array indicators are faded out on the front panel as if the function is not valid. Does this kind of help give a better picture of what I'm trying to do. Simply read data back. Thanks.

  • Can you use PDF Pack to open and read PDF files?

    Can you use PDF Pack to open and read PDF files?

    Hi Keith,
    PDF Pack is a conversion tool which would convert PDF to different formats and vice versa. It cannot be used for reading PDFs.
    If you want to open and read PDF file you can use Adobe Reader.
    You can download Adobe Reader from below mentioned link.
    Adobe Reader
    let me know if you have any other questions.
    Regards,
    ~Pranav

  • Is there an app that allows you to download and read pdf files on your ipod touch?

    Is there an app that allows you to download and read pdf file on your ipod touch (5G)?

    There are many apps that allow reading PDFs. GoodReader allows downloading some items. It all depends upon how the site handles the download. It also uses file sharing in iTunes.
    iBooks also reads and had file sharing.

  • How to get and read a file from META-INF directory

    how to get and read a file from META-INF directory in a EJB project

    Use this.getClass().getResourceAsStream("/META-INF/filename");This should work. Probably, you would need to set the Manifest Class-Path attribute.

  • Trying to import and rename Raw files in an automated process

    I have been managing for quite a while with Bridge and ACR but recently started playing with the demo of Lightroom and bought the software yesterday. There have been no problems key wording or processing existing Raw files etc. but I have become a bit unstuck on the process of importing new Raw files to the catalogue and I wondered if anybody can offer some advice on best practices. I am trying to maintain the formula I adopted after reading the DAM book.
    My plan was to have Lightroom see the raw files as the card is mounted on my desktop and add them to the catalogue in a predesignated place, while automatically renaming them according to my standard file name format e.g Karyl_Raw_090402_V5F8581.dng, then adding copyright data and converting to DNG all at the same time.
    I just ran a test with a small number of files and Lightroom was able to import the files complete with the copyright data stored in the IPTC section, which I had previously edited as a metadata preset, but it didn't rename them apart from adding the .dng suffix and they were all dumped in a subfolder within my user's picture folder on the Mac. In ACR I used to import the original .CR2 files, make any adjustments and then do a batch rename before copying to the final folder, which all worked. Obviously the hope is to make this all very automated and efficient so I'd be grateful for any pointers and good advice.
    Thanks
    Ashley

    I seem to be getting there now and have discovered the renaming presets on the right hand side of the import panel. It's actually all working rather well but I'd like to find out more about the various IPTC fields to see if there is more information I should be adding.

Maybe you are looking for