First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Jeffrey F. Hill | Website: http://www.flash-db.com


This tutorial shows you how to create a simple Guest book in Flash.  This Guest book is simple, efficient, fast, and easy to implement. Their are no complicated database or xml issues to worry about.  One swf, one script, and one text file. Put it together and you'll have a great Guest book for your site.  In this example we use a PHP script but after you understand how it works it should be fairly easy to write the same script in Perl, ASP, or Cold Fusion.  With a couple of modifications and some additions to the non-existent administration side you'll be able to create almost anything you want out of it.  For a working example of this please visit: http://www.flash-db.com/GuestBookTut/

Included Files:

  • GuestBook.fla - Source code for the Flash file
  • GuestBook.php - The PHP script that we will be using  
  • GuestBook.txt - an empty text file that you will be using to store and organize the user entries


This Guest Book works by storing user entered information in a text file.  The script that is used organizes the data according to when it was entered, in a way that the newest entries are always first.  All of the entries are separated by a pattern that the script later splits into an array.  The array is then manipulated according to commands sent from the Flash movie.  In this way we can organize the data that is returned to the flash movie.  The script returns a fixed amount of data back to the flash movie at one time (default is 10 entries), making the time it takes to view the entries minimal.  Their are quite a few modifications that can be added by further manipulating these array's.  Using this technique our simple Text file becomes a database that we can organize, sort, and filter.  Best of all it will work on any server as long as you can run some type of server side script and can change the permissions of a text file.

» Level Advanced

Added: 2001-12-21
Rating: 8.92 Votes: 200
(10 being the highest)
» Author
Jeffrey Hill is a freelance web developer from Boulder, Colorado. He specializes in creating and developing dynamic database driven Flash content and applications. Specialty's include SQL, PHP, Perl, and XML.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.