Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Making Guestbook In Flash?



I want to know how guestbooks can be made out of flash.
or anything in which the user can input text and that text remains in the flash movie forever. Is that hard to do?
thank you guys...



FlashKit > Flash Help > Flash Newbies
Posted on: 06-02-2003, 12:30 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Making A Flash Guestbook
Is there an easy way to make a guestbook? I have used Flash and CGI, I made a FormMail thing. But getting the guestbook is a little more difficult. Can anyone help me out? *please dont just link me to the guestbook tutorial on flashkit, ive seen it*

thanks

Making A Guestbook With Flash
Hey all!

I am making a guestbook with flash. So integration of Flash with ASP, access database, XML...

I don't know if this is a good idea, but this is what i'm doing:
User uses flash interface to enter fields such as name and comments.
The flash then does loadvars.send() to an ASP page.
The ASP page adds the name and comments to an Access Database.
The ASP page then queries with SQL all the entries in the database, and responds by writing on the screen the entries in XML format.
Flash then uses xml load() to format how the entries are shown in flash.

Now, most of it works fine with my newbie actionscripting
Just one problem though...
If the ASP prints onto the browser screen something like <gb>...<entry><name>somename</name><body>somecomment</body></entry>...........[repeat]...</gb>
(so via using ">" and "<" when using Response.Write), the Flash doesn't recognise the "<" and ">" so it doesn't work.
If the ASP Response.Write doesn't use the ">" but uses ">" instead, then those < and > signs don't pring onto the browser, but it's present if you do View Source. In this case, the Flash seems to recognise the "<" and ">" but only ONE 'entry' is fed into the swf......
so even tho there are many <entry>.....</entry>, it only sees one of them, then the </gb> tag.....
Am I meant to use ">" of ">"?How do i make it see all of them? ??

(Please tell me if I haven't explained this problem well enuff...)

Making A Guestbook With Flash
i have made a working guestbook, but one problem remains. Im trying to load the variables into the movie with loadVariablsNum and it works when the textfield which i want to load it into is located on level 0. But when i put it in a movieclip the variables wont load onto it.

So the question is: If my textfield is located in _root.mc1.mc2.textfield what level is it in?

Thx in advance //gustaf

Flash-cfm Guestbook.
hi all..
can one trythis.

I did one flash guestbook..using.coldfusion and MS access as a database
I don't know about CF but i can do programming things

In flash i have name, email and comments text field.
and add entries button.

In frame 1--the text fields names are
Name = new_name
Email = new_email
Comments = new_comments
and on click of the add entries i have the following action

on (release) {
if (new_name eq "" || new_email eq "" or new_comments eq "") {
// do nothing
} else {
loadVariablesNum ("insert.cfm", 0, "POST");
gotoAndPlay (2); }
}


//when i reaches 10frame.

I have
Your record is added
and Your id is:<textfield>-named--record_id

****Here is the problem****
the record id is refusing to show.on flash file.
but the records are adding on the database.
can anyone tell me what is the problem in this.
************************

=========
In Insert.cfm
=========

<cfsetting enablecfoutputonly="Yes">

<cfquery datasource="#dsn#" name="insert">
insert into flashcfm_guestbook(name,email,comments) values('#form.new_name#','#form.new_email#','#form .new_comments#')
</cfquery>

<cfquery datasource="#dsn#" name="get_id">
select id from flashcfm_guestbook where email='#form.new_email#'
</cfquery>

<cfoutput>&record_exists=no&record_id=#get_id.id #</cfoutput>


thankx in advance.
victor.A

Guestbook In Flash?
anyone know how to make a guestbokk in flash?
all tips would be helpful(tutorials, demos, etc...)!!

Flash Guestbook Anyone?
Does anyone know how to make a guestbook in flash that doesn't require a bunch of CGI scripting on my behalf???

Flash Guestbook
I tried to follow the tutorial to make a guestbook in flash 5 from Jeff at flash-db, you can see it at http://www.guestbook.steveguberman.com it isnt pretty yet, I am trying to concentrate on learnign the scripts... so maybe from looking at it someone can tell em the problems i am having with the scripting or the php or something...
I dont' know any of the languages, just tried to do waht it said...
any theories or advice for the newbie in programming would be great!
thnaks!!!
steve

Flash Guestbook
Hi All,
Im in search of finding an easy to follow tutorial for completing a Flash guestbook. I found a few but they havent been what im looking for... I need a flash gusetbook that allows users to post their comments and also as soon as they hit submit the message will appear and they can view other entries also.
Any help??

Thanks so much.

Flash Guestbook... Is It Possible?
hi all, i was thinking of putting a guestbook in my website but i'm not quite sure whether it can be done or how to do it... can anyone help pls

Lots of thks

Guestbook In Flash MX
Hi! I am looking for a way to integrate a guestbook in the flash-site i am designing now, and it's driving me crazy!!
I don't know anything about Perl and stuff like that. Isn't there a way to do it all in flash? Drag and drop components or something?? Thanx a lot!!

Flash MX And ASP/SQL Guestbook...
Hi, all...!

This is just to announce that I managed to make my own guestbook, from scratch. Doh, big deal! LOL...

Well, it is for me, and I want to thank to all the ones who let me learn enough Actionscript and ASP until I could deal with this...

If you want to see a live preview of the guestbook, click here: http://www.worldkit.com.

And if you would like to have the code on how I did it, no problem. Just send me a line or sing the guestbook. I am more than glad to give away, as now it's my turn to give...

Flash Guestbook
I have downloaded a simple flash guestbook which has both the view and sign windows on the same movie.

I am having difficulty seperating the two. I would like to call them seperately using the buttons 'view guestbook' and 'sign guestbook'.

I have used the loadMovie command to load the 2 swf files i created but unfortunately the functionality has been lost in the process. Any ideas? Hope someone can help. Thnaks

Guestbook In Flash
I've created a Sign Guestbook movieclip and a View Guestbook movieclip. The whole idea is to work with a .txt file that would be written with php code. I know this is possible so no problem there.
The problem is to get this into the View movie. Because when I load the variables from the text file it would overwrite the previous guestbookentry.
Is there some code that would create a new movieclip (a copy of the first 'Entree movieclip') and place this under the previous 'Entree movieclip' ?
The Entree movieclip's will be placed inside another movieclip which is placed inside a Scrollpane.
Otherwise I'd have to get this one in html code and it would ruin the entire id of my website.

Hope I gave a good explanation of the problem...

Thx in advance.

greetz AvaDewd

Guestbook In Flash With Php
i have a problem with this flash actionscript :
loadVariablesNum ("GuestBook.php?NumLow="+NumLow+"&NumHigh="+NumHig h+"&R="+random(999), 0);

when i run this script i got an error message like this :
error opening URL "file:///C|/path/GuestBook.php?NumLow=0&NumHigh=10&R=470"

n.b.: i already made the GuestBook.php. and the script is fine. i think it's not a link error.

does anyone know what is the problem with this script?
thnx

Flash Guestbook
i should know this by now but i don't...but how do i create a flash guestbook?

Flash Guestbook HELP
I have done a lot of research, and downloaded many examples. All of which I have been unsuccessful with.

I am looking for a guestbook application that's compatible with a Unix environment using PHP.

Don't need bells and whistles, just need the basic's so I can dissect it and learn from it. That seem's to be the best way that I catch on, edit the PHP to conform to my server, get it online, get it working ... then re-design, add, remove, whatever.

I am just looking for an application that will work with the above OS requirements, and is very simple to understand. Can anyone provide a movie and some assistance?!?

Flash Guestbook
hows it going? I want to make my own guestbook from flash, but i have been unsuccessful. I have attempted to adapt the one ine the tutorials, but it doesn;t seem to work. On my computer, the clip with the guest book comes up, but none of the scripting seems to work. When i tested it, and i imput all the stuff, it just said processing. But, when i loaded it over the WS_ftp, once i accessed my site via the internet, the guestbook clip didn't even load. My client (i believe its called that) accepts cgi's, but i am not really well versed in this stuff (although i would like to better at it). It uses a php and a text file, and from what i have read on the forums, since my movie is loading its differnt links as clips, the variables of the guest book aren't being written to the correct layers. Whew! I hope i got all this straight. Any help is greatly appreciated! Its nice having all these people around to help know-nothings such as myself.

Flash Guestbook
does anybody know where i can find a flash guestbook? i cant get the ones to work that i found on flashkit. i just dont know how to use php&asp properly. xml seems easier.

if anyone could help me asap that would be very kind. thanks a lot in advance

Flash Guestbook
I have a php script that imports variables from flash text boxes and then writes these variables to a text file that flash then reimports.

However when someone posts an entry containing foreign characters, the guestbook errors.

someone told me that i have to utf8_encode the php code (text below) in order for it to save foreign characters in the txt file that flash can then reimport.

Does anyone know where i insert the utf8_encode statement into the text below

fputs($file, "<font color="#FFFFFF">Name:</font>$name
<font color="#FFFFFF">Email:</font> <font color="#990000"><u><A href="mailto:$email">$email</A></u></font><br>
<font color="#FFFFFF">Posted:</font> $posted
<font color="#FFFFFF">Message:</font> $message

");

Guestbook In Flash Mx
How can I make A guestbook in flash mx???

Thanks....

Guestbook In Flash Mx
How can I make A guestbook in flash mx???

Thanks....

Flash Guestbook
Could someone point me in the direction of a nice flash guestbook?
Basically I want visitors to my website to be able leave some info, a message, post it and then see all of the messages that have been left there. I'm using Flash MX...I'm looking for one that doesn't require php.

Thanks

Foochuck

Flash Guestbook Help.
I found this guestbook for download and I am having a few problems installing it:

1. it is in simplified chinese, and I can't read it.

2. It has a microsoft access file, and I know nothing about this.

3. I know very litle about it anyways.


anyones help on how to install this, and what I need on my server in order to install it would be greatly appreciated.

here is a zip file containing all of the files for the book:

http://www.divinechaos.net/guestbook.zip

Flash Guestbook
Alright, I'm wanting to make a flash guestbook. I know how to make all the textfields and the submit button, but what should I use to make it post? (EX. PHP, PERL etc.) If anyone could tell me I'd appreciate it. thanks.

Flash/php Guestbook Help.
I am using a free guestbook script as a guestbook for my site, but The script will not recognise new lines, if the enter button is used. Does anyone know how this can be done?
Also, I would like the script to recognise links in the comment field, and display them as a functioning link with a different font color. is this possible? if so how?

you can check out the guestbook here and download the source files:
http://www.flash-db.com/GuestBookTut


thanks

Flash Guestbook
How can I create a guestbook or feedback form with flash? (wherein the data will be automatically forwarded to my email) I'm currently using Flash MX.

Flash MX Guestbook
hi Ive downloaded the guestbook from Flashkit, from this Link;
http://www.flashkit.com/search.php?t...&submit=Submit

Flash MX Guestbook,

this guestbook works with php and a Text file, doesn't reuire mysql,

the problem is , its not working, !

My question is;

is there anyone out there who has used the same or similar guestbook and succesfuly got it working ?

Ive been at it for a few hours now but with no success,

can anyone help ?

Thanks...

[F8] Guestbook In Flash
I would like to know if there are any GOOD guestbook in flash tutorials. I have a mysql table in my database called GuestBook.php here is the code:

$DBhost = "localhost"; // Database Server
$DBuser = ""; // Database User
$DBpass = ""; // Database Pass
$DBName = ""; // Database Name
$table = "guestbook"; // Database Table
$numComments = 10; // Number of Comments per page

// Connect to mySQL Server
$DBConn = mysql_connect($DBhost,$DBuser,$DBpass) or die("Error in GuestBook Application: " . mysql_error());
// Select mySQL Database
mysql_select_db($DBName, $DBConn) or die("Error in GuestBook Application: " . mysql_error());

// Part Two - Choose what action to perform
$action = $_GET['action'];

switch($action) {
case 'read' :
// Fetch all comments from database table
$sql = 'SELECT * FROM `' . $table . '`';
$allComments = mysql_query($sql, $DBConn) or die("Error in GuestBook Application: " . mysql_error());
$numallComments = mysql_num_rows($allComments);
// Fetch page-wise comments from database table
$sql .= ' ORDER BY `time` DESC LIMIT ' . $_GET['NumLow'] . ', ' . $numComments;
$fewComments = mysql_query($sql, $DBConn) or die("Error in GuestBook Application: " . mysql_error());
$numfewComments = mysql_num_rows($fewComments);
// Generate Output for Flash to Read
print '&totalEntries=' . $numallComments . '&';
print "<br>&entries=";

if($numallComments == 0) {
print "No entries in the guestbook, as yet..";
} else {
while ($array = mysql_fetch_array($fewComments)) {
$name = mysql_result($fewComments, $i, 'name');
$email = mysql_result($fewComments, $i, 'email');
$comments = mysql_result($fewComments, $i, 'comments');
$time = mysql_result($fewComments, $i, 'time');

print '<b>Name: </b>' . $name . '<br><b>Email: </b>' . $email . '<br><b>Comments: </b>' . $comments . '<br><i>Date: ' . $time . '</i><br><br>';
$i++;
}
}
// Print this only when there aren't any more entries..
if($_GET['NumLow'] > $numallComments) {
print 'No More Entries!&';
}
break;

case 'write' :
// Recieve Variables From Flash
$name = ereg_replace("&", "%26", $_POST['yourname']);
$email = ereg_replace("&", "%26", $_POST['youremail']);
$comments = ereg_replace("&", "%26", $_POST['yourcomments']);
$submit = $_POST['submit'];

// Current system date in yyyy-mm-dd format
$submitted_on = date ("Y-m-d H:i:s",time());

// Check if its submitted from Flash
if($submit == 'Yes'){
// Insert the data into the mysql table
$sql = 'INSERT INTO ' . $table .
' (`ID`,
`name`,
`email`,
`comments`,
`time`
)
VALUES
('','
. ''' . $name . '','
. ''' . $email . '','
. ''' . $comments . '','
. ''' . $submitted_on . ''
)';
$insert = mysql_query($sql, $DBConn) or die("Error in GuestBook Application: " . mysql_error());

// If you want your script to send email to both you and the guest, uncomment the following lines of code
// Email Script Begin
$MyName = "Myname";
$MyEmail = "myemail.com";
$Subject = "$name has just signed your guestbook.";
$EmailBody = "Hello Name,
$name has just signed your guestbook available at http://www.myweb.com. THe following were the details submitted into your guestbook:

Name: $name
Email: $email
Comment:
$comments
";

$EmailFooter = "~~~~~~~~~~~~~~~
The guestbook was signed by $name and thus this email got activated by $name from $REMOTE_ADDR from http://www.myweb.com
~~~~~~~~~~~~~~~
Thanking you,
My namer";

$Message = $EmailBody.$EmailFooter;

mail($MyName." <".$MyEmail.">",$Subject, $Message, "From: ".$name." <".$email.">");


// Email Script End

print "&gb_status=Thank you for signing my guestbook.&done=yes&";
return;
}
print "&_root.write.gb_status=Error!&";
break;
}
?>

Flash Guestbook
what is the way to make flash guestbook ?
because flash can read information from external text file is there a way something like guestbook without all php and mysql. i mean is there a way to store an information written in some dinamic text in a external file and then a just to read the information there
or just explain me pls how must i make GB
ty

Flash Guestbook
I could not find any good tutorials about this... could someone help me out? I'm looking for a good way to make an all flash guestbook... thanks

-Jeff

Flash MX And ASP/SQL Guestbook...
Hi, all...!

This is just to announce that I managed to make my own guestbook, from scratch. Doh, big deal! LOL...

Well, it is for me, and I want to thank to all the ones who let me learn enough Actionscript and ASP until I could deal with this...

If you want to see a live preview of the guestbook, click here: http://www.worldkit.com.

And if you would like to have the code on how I did it, no problem. Just send me a line or sing the guestbook. I am more than glad to give away, as now it's my turn to give...

Flash Guestbook
hey i am just mucking around with FCS and especially the video/audio guestbook, the only thing that i find a bit crappy is the fact that they did not include a button to delete an entry si if you make a mistake or if you simply want to erase an existing message, you simply cant.
I am trying to find a way of including one but i am finding it difficult.
Has someone allready modified the guestbook or does sommone knoow how i could make this button?

Flash Guestbook Help
Hi
I need help with a flash guestbook from the beginning to the end,I've searched the web and can't find that much.
A good tutorial would be great.
Thanks Stew

Guestbook In Flash
where can i get a flash guest book?

Guestbook In Flash
Does anobody have a link to a tutorial on how to design/create your own guestbook in flash?

Guestbook In Flash?
I have seen some really cool sites that is make in Flash. And they have a guestbook. I dont understand how you make a guestbook in flash. How to make it save after you have posted a post. All help are welcome!

Thanks in advance

//RyxiaN

Guestbook - Flash/PHP/XML
Hi All,

please I am looking at the Flash Guestbook sample file (Flash MX 2004>Samples>HelpExamples>guestbook)

And it didn't know how the swf connects with the xml thru php.

so I have the ActionScript:


Code:
//****************************************************************************
//Copyright (C) 2004 Macromedia, Inc. All Rights Reserved.
//The following is Sample Code and is subject to all restrictions on
//such code as contained in the End User License Agreement accompanying
//this product.
//****************************************************************************

/*
PHP and Flash example
This example shows you how to create a guestbook using Flash and PHP integration.
*/

stop();

// import the required component classes.
import mx.controls.*;

// define the component instances on the Stage.
var name_ti:TextInput;
var email_ti:TextInput;
var url_ti:TextInput;
var comments_ta:TextArea;
var clear_button:Button;
var submit_button:Button;
var name_label:Label;
var email_label:Label;
var url_label:Label;
var comments_label:Label;

//set color of labels
name_label.setStyle("color", "0xFFFFFF");
email_label.setStyle("color", "0xFFFFFF");
url_label.setStyle("color", "0xFFFFFF");
comments_label.setStyle("color", "0xFFFFFF");

// set the tabbing order for the components
this.name_ti.tabIndex = 1;
this.email_ti.tabIndex = 2;
this.url_ti.tabIndex = 3;
this.comments_ta.tabIndex = 4;
this.clear_button.tabIndex = 5;
this.submit_button.tabIndex = 6;

// set the default form focus to the name_ti TextInput instance, and set the default button to the submit button.
Selection.setFocus(name_ti);
focusManager.defaultPushButton = submit_button;

// when the post_mc or view_mc movie clip's are clicked and released, goto the appropriate named frame label.
post_mc.onRelease = function() {
this._parent.gotoAndStop("post");
};
view_mc.onRelease = function() {
this._parent.gotoAndStop("view");
};

// when the clear button is clicked, set the form fields to empty strings.
var clearBtnListener:Object = new Object();
clearBtnListener.click = function(evt:Object) {
name_ti.text = "";
email_ti.text = "";
url_ti.text = "";
comments_ta.text = "";
};
this.clear_button.addEventListener("click", clearBtnListener);

// when the submit button is clicked, send the form values to the server using a LoadVars object.
var postBtnListener:Object = new Object();
postBtnListener.click = function(evt:Object) {
// if the name is blank, display an error message using the Alert component.
if (name_ti.text.length == 0) {
Selection.setFocus(name_ti);
Alert.show("Please enter your Name.", "Error", Alert.OK);
return false;
}
// make sure the user has filled in either the email_ti or url_ti TextInput instances.
if ((email_ti.text.length == 0) && (url_ti.text.length == 0)) {
Selection.setFocus(email_ti);
Alert.show("Please enter your Email Address or URL.", "Error", Alert.OK);
return false;
}
// make sure the comments_ta TextArea instance isn't blank.
if (comments_ta.text.length == 0) {
Selection.setFocus(comments_ta);
Alert.show("Please enter your Comments.", "Error", Alert.OK);
return false;
}

// if all the required fields have been filled in, create a LoadVars object instance and populate it.
var send_lv:LoadVars = new LoadVars();
send_lv.name = name_ti.text;
send_lv.email = email_ti.text;
send_lv.url = url_ti.text;
send_lv.comments = comments_ta.text;
send_lv.onLoad = function(success:Boolean) {
// if the comments were sent to the server and you received a response, clear the form fields and display an Alert message.
if (success) {
name_ti.text = "";
email_ti.text = "";
url_ti.text = "";
comments_ta.text = "";
Alert.show("Thank you for your comments.", "Success", Alert.OK);
} else {
// else you encountered an error while submitting to the server.
Alert.show("Unable to process your comments at this time.", "Server Error", Alert.OK);
}
};
// send the variables from Flash to the remote PHP template.
send_lv.sendAndLoad("http://www.flash2004.com/dev/guestbook/gb_insert.php", send_lv, "POST");
};
this.submit_button.addEventListener("click", postBtnListener);

The Code From the View Page:


Code:
//****************************************************************************
//Copyright (C) 2004 Macromedia, Inc. All Rights Reserved.
//The following is Sample Code and is subject to all restrictions on
//such code as contained in the End User License Agreement accompanying
//this product.
//****************************************************************************

stop();

var guestbook_ta:mx.controls.TextArea;

// create an XML object instance which is used to load comments from a remote server.
var guestbook_xml:XML = new XML();
guestbook_xml.ignoreWhite = true;
guestbook_xml.onLoad = function(success:Boolean) {
if (success) {
var numEntries = this.firstChild.childNodes.length;
// loop through each of the entries from the XML packet...
for (var i = 0; i<numEntries; i++) {
// create a shortcut to the current child node
var entry_xml:XMLNode = this.firstChild.childNodes[i].childNodes;

/* set local variables for the name, email address, url, comments and timestamp.
Since you know the structure of the XML packet, you know the index of each of these child nodes. */
var name_string:String = entry_xml[1].firstChild.nodeValue;
var emailaddress_string:String = entry_xml[2].firstChild.nodeValue;
var url_string:String = entry_xml[3].firstChild.nodeValue;
var comments_string:String = entry_xml[4].firstChild.nodeValue;
var datetime_string:String = entry_xml[6].firstChild.nodeValue;

// the "entry_string" variable is used to hold the HTML formatted contents of the current guestbook entry
var entry_string:String = "<p>";
entry_string += "<span>"+name_string+"</span><br>";

// if the email address isn't blank, append it to the current entry_string variable.
if ((emailaddress_string != undefined) && (emailaddress_string.length>0)) {
entry_string += "<a href="mailto:"+emailaddress_string+"" target="_blank">email</a><br>";
}
// if the url isn't blank, append it to the current entry_string variable.
if ((url_string != undefined) && (url_string.length>0)) {
// if the first five characters of the URL aren't "http:", set the prefix to "http://".
var prefix_string:String = (url_string.substr(0, 5) != "http:") ? "http://" : "";
entry_string += "<a href=""+prefix_string+url_string+"" target="_blank">url</a><br>";
}
entry_string += comments_string+"<br>";
entry_string += "<i>"+datetime_string+"</i><br>";
entry_string += "</p>";
// draw a horizontal line after each guestbook entry.
entry_string += "<img src="line_gr"><br>";
// append each current entry to the current value of guestbook_ta
guestbook_ta.text += entry_string+"<br>";
}
} else {
trace("error loading XML");
}
};

// load the guestbook XML entries from the remote server.
guestbook_xml.load("http://www.flash2004.com/dev/guestbook/gb_select.php");

// create a new instance of the TextField.StyleSheet object.
var styleObj = new TextField.StyleSheet();
styleObj.onLoad = function(success:Boolean) {
if (success) {
guestbook_ta.styleSheet = styleObj;
}
};

// load the external style sheet
styleObj.load("styles.css");
And the XML :


Code:
<?xml version="1.0" encoding="iso-8859-1" ?>

<guestbook entries="1">
<entry>
<id></id>
<name></name>
<emailaddress></emailaddress>
<url></url>
<comments></comments>
<ipaddress></ipaddress>
<datetime></datetime>
</entry>
</guestbook>
Please how the PHP file might be?!

Thanks u very much

Greetings

Flash Guestbook: What Do I Need?
Hi there,

I'm building a full flash website and I will be adding a guestbook along with it. I've never done this before (the flash guestbook) so I need a little guiding.

First off, are PHP and MySQL the only programs I need to create and edit the database for my guestbook? Do I need another program/s to go along with it and if so, any suggestions please?

And what exactly does ColdFusion do? Is it a PHP or MySQL base program?

I want to start off with what programs I need for my Flash Guestbook before I even ask any more questions, so please give feedback when you can.

Thanks....

Flash + PHP + SQL = Guestbook
Here's my first experimental guestbook using flash, php & sql.
fell free to use it. enjoy.....

// sorry no preview for this. thanks

Flash Mx Guestbook
any sugestions on how to display my entrys in flash using asp and access database? I want to show them all at the same page so some kind of loop would be nice

do I have to use arrays

very thankfull for help from you smart guys

CGI Guestbook For Flash
Hi - does anyone know of, or can anyone recommend a good CGI guestbook for Flash, if such a thing exists and is possible.... The server for the site I am working on does not support PHP X(

Thanks!

Guestbook In Flash
Does anobody have a link to a tutorial on how to design/create your own guestbook in flash?

Guestbook In Flash?
I have seen some really cool sites that is make in Flash. And they have a guestbook. I dont understand how you make a guestbook in flash. How to make it save after you have posted a post. All help are welcome!

Thanks in advance

//RyxiaN

Best Flash Guestbook
What is the best guestbook made up with Macromedia Flash (and not only) you have ever seen??? Please place some links!

Guestbook In Flash?
I am developing a Flash site and need to include a guestbook. What is the best way to go - a Flash guestbook or HTML. Ive never done one before so I dont really know where to start. Ive seen guestbooks that I can download - does anybody recommend any?

Thanks

Flash Guestbook
is there anyone here who knows how to make a guest book using flash passing data to an asp(using vbscript)? any help would be great!

Guestbook Only With Flash ?
Well ... i'm making a web site for a pub, and i want to insert a simple guestbook, so that the visitors can leave a message what they think about the pub. Can i make it only with flash without php or something else ??

if somewhere is a tutorial please give me the adress

Flash Guestbook
hi everyone. i need some help please! i'm trying to create a guestbook in flash but i'm having trouble sending the data to my asp file.

explanation:
i have 2 textfields in flash. txtName and txtEmail.
on the submit button i placed the code





on (release) {
loadvariablesnum("add.asp","post",0);
gotoURL("add.asp");
}

then on my asp file i placed the codes




dim Name, Email
Name = request.form.item("txtName");
EMail = request.form.item("txtEmail");
and so on...

here's the problem, i think the data is not being passed on to the asp file. does anyone have a suggestion?

Flash/PHP/XML Guestbook HELP
I created a guestbook without using mySQL by following the tutorial on this site: http://www.kirupa.com/web/xml_guestbook.htm

This is the action I gave to the first frame of the movie created to send the message:

var currPage = 0;
var showAmount = 10;
previous._visible = false;
createMessage._visible = false;
createButton.onRelease = function(){
this._visible = false;
this._parent.createMessage._visible = true;
if (createMessage.nameField.text == ""){
Selection.setFocus(createMessage.nameField);
}
else if (createMessage.messageField.text == ""){
Selection.setFocus(createMessage.messageField);
}
}

Then, I opened a XML file in Dreamweaver and used this:

myXML = new XML();
myXML.ignoreWhite = true;
receiverXML = new XML();

myXML.onLoad = function(success){
myXML.contentType = "text/xml";
if (success){
this.showXML();
}
else{
trace("Error loading XML file");
}
}
myIdentifier=Math.round(Math.random()*10000);
myXML.load("guestbook.xml?uniq="+myIdentifier);

receiverXML.onLoad = function(){
this.contentType = "text/xml";
_root.currPage = 0;
this.showXML();
}
createMessage.closeButton.onRelease = function(){
this._parent._visible = false;
createButton._visible = true;
}
createMessage.sendButton.onRelease = function(){
var myName = this._parent.nameField.text;
var myMessage = this._parent.messageField.text;
if (myName == ""){
this._parent.errorField.text = "please fill out your name";
Selection.setFocus(this._parent.nameField);
}
else if (myMessage == ""){
this._parent.errorField.text = "please leave a message";
Selection.setFocus(this._parent.messageField);
}
else {
myXML.firstChild.appendChild(myXML.createElement("entry"));
myXML.firstChild.lastChild.attributes.myName = myName;
myXML.firstChild.lastChild.appendChild(myXML.createElement("myText"));
myXML.firstChild.lastChild.lastChild.appendChild(myXML.createTextNode(myMessage));
myXML.sendAndLoad("processXML.php", receiverXML);
this._parent._visible = false;
createButton._visible = true;
}
}
XML.prototype.showXML = function(){
myGuestbook.scroll = 1;
myGuestbook.htmlText = "";
var numItems = this.firstChild.childNodes.length;
var firstItem = numItems - (currPage*showAmount);
if (currPage == 0) previous._visible = false;
var lastItem = firstItem - showAmount ;
if (lastItem<=0) {
lastItem = 0;
next._visible = false;
}
myCount.text = "Total messages: " + numItems;
if (firstItem == lastItem+1) nowShowing.text = "Showing message " + firstItem;
else nowShowing.text = "Showing message " + firstItem + " to " + (lastItem + 1);
for (i=(firstItem-1); i>= lastItem; i--){
myGuestbook.htmlText += "<B>" + this.firstChild.childNodes[i].attributes.myName + "</B> wrote:
";
myGuestbook.htmlText += this.firstChild.childNodes[i].firstChild.firstChild.nodeValue + "

";
}
}
previous.onRelease = function(){
currPage--;
myXML.showXML();
next._visible = true;
}
next.onRelease = function(){
currPage++;
myXML.showXML();
previous._visible = true;
}

**I saved it as guestbook.xml**

Last, I opened a PHP file, cleared it and used this:

<?php
$xmlString = $HTTP_RAW_POST_DATA;
if (is_null($xmlString)) {
print "No data was sent";
}
else {
$file = fopen("guestbook.xml", "w+") or die("Can't open XML file");
if(!fwrite($file, $xmlString)){
print "Error writing to XML-file";
}
print $xmlString."
";
fclose($file);
}
?>

**I saved it as processXML.php**

I go to the page on my server - http://www.russellandjenna.com/Guestbook.html, and hit the "Add New Message" button (which has createButton' instance name) and nothing happens...any suggestions??? Thanks!

It says to put an instance name of createMessage for the movieclip, but where do I add an instance name for that if it's not on the main stage? Could this be the problem?

Copyright © 2005-08 www.BigResource.com, All rights reserved