Library tutorials & articles
Classic Guestbook made with Flash and ASP/PHP
- Introduction
- More Flash Code
- The PHP Code
- The ASP Code
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.
Related articles
Related discussion
-
Flash Developer/Software Developer
by gvillanueva (0 replies)
-
Beginning from scratch
by Slicksim (1 replies)
-
Flash Flash Revolution All Time Low, Macromedia Flash Mx 2004 Professional Serial Number
by Alexjj (0 replies)
-
Flash Flash Revolution All Time Low | Compact Flash Card On Sale
by StevenJ (0 replies)
-
Update Shockwave Flash - Update Oracle Table
by StevenJ (0 replies)
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
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
Can anyone tell me what I am doing wrong??
I'd appreciate it if you emailed me
Thanks..
This thread is for discussions of Classic Guestbook made with Flash and ASP/PHP.