Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 81,541 times

Contents

Downloads

Related Categories

Classic Guestbook made with Flash and ASP/PHP - Introduction

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.

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.

Comments

  • ignore the previous post

    Posted by eskymo on 12 Apr 2004

    I've managed to get PHP working on my site and the PHP version seems to be working ok

  • Can' get ASP version of guestbook to work

    Posted by eskymo on 12 Apr 2004

    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
    gues...

  • guestbook

    Posted by matt budd on 21 Dec 2002

    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 wh...