Library tutorials & articles

Classic Guestbook made with Flash and ASP/PHP

Introduction

This article demonstrates how to create a classic guest book made with Flash and either ASP or PHP (the source code for both of these are included). The data is saved and retrieved through PHP/ASP and displayed in Flash movie in HTML format.

Creating the Flash Movie

Start a new flash movie. Insert a new Dynamic text box and give it name txtmain and don't forget to check the HTML option. Insert a dynamic text fields status which will be used for displaying messages. Insert a new layer, name it action and place following code in action window.


lowlimit = 0;
highlimit = 10;
loadVariablesNum ("guestbook.php?lowlimit="+lowlimit+"&highlimit="+highlimit, 0);
stop();


lowlimit and highlimit are the flash variables that would be send to PHP script. First time data range from record 1 to record 10 will be displayed in HTML enabled text box.

Insert two new button instances for up and down scrolling

For Up Button
on (release) {
   txtmain.scroll--;
}

For Down Button
on (release) {
   txtmain.scroll++;
}


Above code is self-explanatory.

I am not giving details for SCROLLING the movie. I will add a new tutorial in the flash section.

Comments

  1. 12 Apr 2004 at 19:50
    I've managed to get PHP working on my site and the PHP version seems to be working ok
  2. 12 Apr 2004 at 19:35
    Hi there

    I've created a new directory on my site called guestbook and in it have placed the files:

    guestbook.swf
    guestbook.html [containing the swf file above]
    asguest.asp
    guestbook.txt
    guestbook.mdm

    I have created a new ODBC  on my server and this is the path to the database:

    htdocs\guestbook\guestbook.mdb

    the link to the guestbook is http://www.eskymo.co.uk/guestbook/guestbook.html and is in it's original state as I wanted to test it worked before re-designing the interface. When checking the swf file online and entering my details and message it does the following:

    says thankyou for signing up in the right hand panel and in the left panel reads 'wait ::: posting new entry' but nothing else happens even when refreshing the page.

    Am I doing something wrong - do i need to alter the path to the databse in the script at all even though all the files are sitting in the same directory. As there is no working demo accompanying the tutorial I have no idea what it is supposed to do, even though i presume the data i've inputted should appear int he left panel.

    Can anyone help me with this - i feel like such a numpty - It's the first time i'm dealing with databases and not sure if i'm missing something.

    cheers

    e

  3. 21 Dec 2002 at 15:08
    I have had a problem running the guestbook. Whenever I try to add an entry, I get error messages pointing to the highlimit, lowlimit and in variables, saying they are undefined.
    Can anyone tell me what I am doing wrong??
    I'd appreciate it if you emailed me
    Thanks..
  4. 01 Jan 1999 at 00:00

    This thread is for discussions of Classic Guestbook made with Flash and ASP/PHP.

Leave a comment

Sign in or Join us (it's free).

Pradeep Mamgain Woking as a VB programmer. Use my free type in writing code and maintaining my site. I have an exclusive collection of PHP stuff for windows at my site.

Related podcasts

  • Crawlable Flash, Concurrent Python, Smart Robots.txt and more

    Mixed topics today Adobe works with Google, Yahoo and others to make Flash apps crawlable. Reddit.com open sources their codebase "Smart" robots.txt files - do you use them? Bruce Eckel article on concurrent Python with Twisted Railo - open source ColdFusion Cognifty - new PHP framework...

Events coming up

  • Apr 17

    WebTech Conference 2010 - Bulgaria

    Veliko Turnovo, Bulgaria

    6th edition of WebTech conference will be held. A 2 day conference about : - Web Technologies - Blogs and blogging - Web 3.0 - Open Web - Mobile technologies - Internet Business

We'd love to hear what you think! Submit ideas or give us feedback