payday loan credit check free lead loan mortgage quickest payday loan
payday loan arkansas free lead loan mortgage account loan payday savings
irving payday loan conforming limit loan mortgage borrow loan money now payday preferred simplepaydayloan.com
guaranteed payday loans conforming limit loan mortgage cash net payday loan
faxing loan no online payday required advance cash loan payday universal cash check credit loan no no payday payday loan store
bounced check payday loan advance cash loan payday universal installment payday loan advance cash loan payday software
payday loan in georgia bad credit loan mortgage tx bad credit fast loan payday people advance cash cashadvancesusa.com loan online payday
account bad checking credit loan no payday bad credit loan mortgage tx cash back payday loan
hour loan one payday interest mortgage only paydayloan2
checking account payday loans interest mortgage only defaulting loan payday consolidating payday loan
account advance from loan payday savings home loan refinance advance blogspot.com cash loan payday site
defaulting loan payday home loan refinance payday loan no fax no faxing low cost payday loan
fast loan money personal simplepaydayloan.com beach cash instant loan long lead generation payday loan
payday loan collection agency beach cash instant loan long www no faxing payday loan com check credit faxing loan no payday
faxing hassle loan no no payday commercial loan mortgage scottsdale convenient high loan money payday priced trap payday loan durham
payday loan no fax commercial loan mortgage scottsdale payday loan for georgia resident
advance advance cash loan payday check credit fax loan no no no payday teletrack car loan payday title
advance check credit loan no payday check credit fax loan no no no payday teletrack canada faxing loan no payday ferris baker watts payday loansmall loan conference
fast payday advance loan home loan mortgage nationwide instantcashloantillpayday.com
document faxing loan no payday home loan mortgage nationwide emergency faxing loan no payday
account advance loan payday savings mortgage loan refinance fsm payday loan
check credit loan no no payday mortgage loan refinance advance cash check loan payday
cash fash loan payday cheap choosing loan payday fast payday advance loan
1500dollarstoday.com advance advance cash cash loan online payday cheap choosing loan payday cash express loan payday
payday loan affiliate program cash advance loan texas bankruptcy debt including loan payday
no bank statement payday loan cash advance loan texas payday loan no fax no credit check
sonic payday loan payday loan service advance army cash loan payday
payday loan direct payday loan service payday money loan
check advance payday loan calculator car cheap insurance loan mortgage 1000 faxing loan no payday
instant loan online payday calculator car cheap insurance loan mortgage payday loan in kansas
faxless loan payday savings simple interest mortgage loan loans till payday
payday loan and 100 approval simple interest mortgage loan instantcashloantillpayday.com
online no fax payday loan loan mortgage refinance advance payday hold personal check cash loan
faxless and paperless payday loan loan mortgage refinance fax free payday loan
2006 3 cash january loan mt payday tb tracked credit equity florida loan 1500dollarstoday.com advance advance cash cash loan payday service service advanced payday loans
no teletrack payday loans credit equity florida loan low interest payday loans allowed href html loan payday
payday loan in ga cash fast loan wisconsin income loan low payday
payday loan arkansas cash fast loan wisconsin cash emergency fast loan loan loan payday quick
faxless payday loan with instant approval bad credit illinois loan mortgage bounced check payday loan
1500dollarstoday.com advance cash loan loan online payday personal bad credit illinois loan mortgage online payday loan instant approval
Psalter Ego » Parsing Excel Files with ActionScript 3.0

Parsing Excel Files with ActionScript 3.0

Back in January, I had started learning ActionScript 3.0 by picking a particularly interesting problem that had been dogging me since I first started building web-based applications in the late 1990s. That problem is, how to build client-side programs that can parse and render binary file formats within a browser without the need to download separate plugins or ActiveX controls for each one. To do that, you need to able to parse binary data on the client. And when I saw the ByteArray class in Flex 2.0, I smiled.

I decided to go after Excel files. Yes, many machines have Excel or comparable spreadsheet application already installed on them. And Microsoft does offer a free downloadable viewer for Excel files. But wouldn’t it be just neat-o to be able to view Excel documents directly in the browser without needing anything but the Flash Player? Or even better yet, import data straight from .xls files into a Flash RIA?

After a few nights of work, I managed to import some basic .xls files and correctly parse out column and row data for strings and numbers. That was January, and then a maelstrom of client work happened (including a particularly painful stretch of 12 consecutive 16-hour workdays at a remote site). And the Flex 2.0 APIs changed. And changed again with each new beta. Not that I blame Adobe–each time it’s been for the better. Seriously, does anyone like having to import trace in every single class that you’re debugging? It was just that I hardly had time to sleep, let alone code anything fun. Thankfully, my good friend Darron Schall had been keeping my code updated to the latest versions of the Flex 2.0 beta in preparation for his recent presentation at Flash in the Can.

However, I’ve finally managed to get back to working on it, updating it yet again to Beta 3, adding a couple new features, and preparing it for public consumption. Next up is allowing for the file path to the .xls file to be specified programmatically (it’s currently hard-coded), and exposing the parser as a library that can be used by other projects.

So, without further ado, here’s a couple of demos: A very basic test, as both the Excel file and loaded into my Flash-based viewer. And a slightly more complex example, with the data available as the Excel file and loaded into the viewer (requires Flash Player 9).

4 Comments »

  1. Andre Charland said,

    May 18, 2006 @ 3:09 pm

    hey that’s pretty cool! we’re working on something related in AJAX. Don’t have any of the parsing stuff though. Mostly the eidtable AJAX Spreadsheet. Check it out here: http://labs.ebusiness-apps.com/technologies/spreadsheet/default.asp Would love to chat with you about your project and collaborate is possible.

  2. herve de CHAVIGNY said,

    July 3, 2006 @ 7:48 pm

    can you send me the sources code of your excel parser or a part of this because I want read a xls file to manage data in a flash apps!

    soory for my english language , but i’m a french people!

  3. Lance said,

    July 6, 2006 @ 8:21 am

    Very cool! If possible is there a chance to get the source code for this? Even a basic example would help to understand enough to get started on my own.

    Thx!

  4. Firdosh Tangri said,

    September 18, 2006 @ 5:38 pm

    Yes would it be possible to post the source code up for the project. I dont know if your still developing the project but it would be very helpfull to a lot of people and could probably help with the project :)

    thanks
    cheers :)
    firdosh

RSS feed for comments on this post · TrackBack URI

Leave a Comment