About Adobe Community Experts

Recent Status:

Loading Recent Status
...

Feeds

XML Feed (RSS 1.0) 
XML: Atom Feed 

Calendar

« July 2008
S M T W T F S
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Archives

Friends Flash Blogs
Flash Enabled - Book
Darron Schall
Branden Hall
Scott Janousek
Alessandro Pace
Richard Leggett
Jim Armstrong
Jonathan Kaye
Guy Watson
Marco Casario
Grant Skinner
Veronique Brossier
Marcos Weskamp
Beau Amber
Craig Swann
Natalie Zee
Lord Alex Leon
Jesse Warden
Chafic Kazoun
Brajeshwar Oinam
Matt Voerman
Aral Balkan
Robert Penner
Andreas Heim
Justin Everett-Church
Sam Robbins
Keith Peters
Lee Brimelow
Patrick Minneault
Mario Kilngermann
Peter Joel Hall
Paul Ortchanian
Steve Webster
Colin Moock
Alessandro Crugnola
Josh Dura
Burak Kalyci
Eric Dolecki
Dave Yang

Aggregators
MXNA Aggregator
Adobe Blogs

More Links -->

« FlashForward 2004 NY … | Home | Interactive Music Box… »

Interfacing Flash with the Real World Part 1: Magnetic Stripes and Barcodes - FlashForward 2004 Source Files

I spent the last few days tinkering with my presentation files from my Ask the Experts session on Kiosks and Interactive Exhibits at FlashForward 2004 in New York earlier this month. I'm sorry to have taken so long to post the source files, but hopefully those of you who have been waiting will find them even more useful now.

I decided to greatly enhance all the files I demonstrated for several reasons, the three most important being:

  • I won't be in the room walking you through them and explaining them.
  • I wanted the files to be more accessible to those who weren't able to attend my session but wanted to play with the files.
  • Not everyone has barcode scanners and magnetic stripe readers laying around at their disposal, so I needed to add simulation modes, both code-wise and visually.

    So, I set about sprucing up all the files with those goals in mind. To maximize my time, I have decided to focus on enhancing and distributing the files in a specific order, based on emails and feedback I have received thus far. As such, I'll be releasing all the files over time in a series with the expanded and enhanced features and information. The first set of files I'm releasing deal specifically with two examples I showed where I utilized "keyboard wedge interface" devices to transfer real-world, tangible data to Flash. In this case the two examples were an ID Tech Omni Slot Reader (Magnetic Stripe and Barcode) for reading in drivers license information from drivers license ID cards that conform to the AAMVA Standard, and a UPC / ISBN barcode lookup that obtains the UPC / ISBN number data via a Symbol LS2208 handheld barcode scanner.

    As I mentioned I have enhanced the files a great deal. For those of you in attendance at my session you will remember that the sample files I showed were quite bare bones - no interface to speak of really - just plain white screens with some simple component buttons and input fields, and a datagrid or two. (We will address the datagrid redistribution issue shortly) In the session the intent was to focus on the code, and the concept of utilizing the devices, and to inspire and inform those in attendance of new and alternative ways to provide/get data into Flash that might lend to the creation of Kiosks and Interactive Exhibits. Hence, the lack of interface or focus on the creation of the interface in my session. Well, now its got a fairly decent interface, some informative information, and simulation modes, complete with visual simulations of the actual devices operating. I have also included some extra notes, information and attributions in the form of comments in the ActionScript source. So without further ado - please find the first set of files at the following URLs:

    PC USERS: RHALL_FF2004NY_PART01.zip - ZIP File - 723k

    MAC USERS: RHALL_FF2004NY_PART01.dmg.gz - GZipped Mac OS X Disk Image - 757k

    Also please find this "resources" list (plain text file) that I compiled and mentioned during my presentation - this has some names, and handy URL's for equipment manufacturers and sources I use a great deal.

    UPDATE - 08/04/04: I failed to include a tiny class file I use all the time called StringExtras that is referenced in the example files. You will need it for some of the string manipulation done with the track data from the magnetic stripes. Download StringExtras.as

    NOTE: Due to licensing restrictions, I am unable to redistribute the DataGrid component used in the drivers license DLScan example application included in the above archives. I have however made it very simple to use without, and very simple to add it back in if you have your own licensed copy of Flash MX 2004 Professional. Read the comments in the ActionScript for more info - but basicaly it entails a simple drag and drop to your library and you are good to go. If you don't own professional - you can still see the results via the trace window or by looking at the properties of an object I return after a drivers license has been scanned.

    I have begun to utilize the Creative Commons Attribution-NonCommercial-ShareAlike 2.0 License for some of my published work including the source files found here. See the notes in the comments of the ActionScript for more info.

    Here is a list of the next few sets of files I'll be sprucing up and releasing:

  • Examples of using the .ini file reader method I discussed and demonstrated that streamlines and enhances the configuration of large Flash applications

  • A proximity sensor system that can be used to trigger and control "attract" or "loop" screens on a Kiosk or Interactive Exhibit - the electronics and input built with MakingThings.com's Teleo Introductory kit and some infrared triangulation sensors (as well as a passive infrared sensor model I did not have time to demonstrate)

  • A fleshed out presentation stack with audio enhancements - the presentation stack I used was primarily an outline to guide me that I filled on off the cuff. I'll be enhancing this so that its much more useful without me jabbering away. :)

  • Sample Visual Basic, Visual Basic .NET, and C# (including 2005 beta) stub source code to create "wrapper applications" or "Operating System Supplements" (OSS) applications to embed the Flash ActiveX control to allow programmatical extension of the built in capabilities of the Flash Player to communicate with the host operating system, external devices and external applications.

  • A revised and updated Acrobat PDF of the Appendix that I wrote on the topic of touch-screens and kiosks for Flash for the book Flash Enabled: Flash Design and Development for Devices, that was published back in 2002 just about the time the original Flash MX came out.

  • And a few other goodies that I didn't get a chance to show during the session.


  • I'll probably also release the original stripped down versions of a few of the more code intensive files so that the "extra" interface goodies and AS don't get in the way of things for those of you who attended the session and want to focus directly on the core ideas. If there is anything else I covered in the session that you don't see here that I promised I would put online, please post a comment and let me now. Thanks! -Rob

    - 07.27.2004 02:26am - del.icio.us - Digg It - four comments - - - - -


    four comments:

    Hi. I am new to the Flash environment, but have been currently working on a project that also requires the use of a barcode scanner to interface with a Flash application. The .fla and .swf files you have provided have been very helpful. Will you also be providing the VB/C# source code for the “wrapper application”? Also could you suggest where I could get more info on developing these type of app’s. Thanks.

    Rhonda B. () - 03.22.2005 - 10:44am

    hi i am plannin to use the magnetic stripe card reader for my project application but, i am unable to get a circuit diagram for the same
    can u provide me with a swipe through card reader

    parag () - 03.31.2006 - 1:52pm

    Hi, It is interesting to see how these environments can be interfaced to the outside world. Blue Melon has been busy developing interface modules for all sorts of sensor and actuator interfacing.

    We have just released Flash MX objects for our BlueSense range of products. BlueSense allows you to (wirelessly) connect sensor and actuator modules. Currently we have modules available for analog inputs (infrared distance sensors, force sensors,...), digital inputs (counters, rotary encoders), digital outputs (including PWM) and servo motor control.

    In a few weeks additional modules will be available for analog output (digital pot meters), dc motor control and do-it-yourself module kits. Please have a look at our website:
    http://www.bluemelon.org/index.php/Produ..

    We are very interested in working together with artists, If you want to realize an interesting project entailing public exposure we can arrange sponsorship

    greetings,

    Dinne Bosman

    Dinne Bosman () (URL) - 04.28.2006 - 4:20pm

    sir,
    i am studying final year BE student.i want any circuit diagram in my project.please send my mail id.
    thank u

    senthil kumar () - 07.21.2006 - 04:50am


    No trackback:

    Please enable javascript to generate a trackback url


      
    Remember personal info?

    Emoticons / Textile

    To prevent automated somment spam we require you to answer this to prove you are a human.
     

      ( Register your username / Log in )

    Notify:
    Hide email:

    Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.