Excuse me everyone for my lack of knowledge.
I am in the process of creating a flash site for friend of mine. He wants to
be able to have a guest list for his events in DC. I have created form boxes
and have given them all "instance names". But I have absoultely NO clue how to
have the text entered by people trying to get on the guest list sent to my
server so we can all read it.
I have a book on Flash but it really doest explain how to do it at all. I'm
guessing I need to do some actionscript?
The instance names for the boxes are:
Name box --------> nameBox
Event box ---------> eventBox
Email box ---------> emailBox
Guest box ---------> guestBox
Submit Button ---------> submitBtn
The website can be viewed at http://www.thedebonairtouch.com/DebonairMain.html
Please, someone help!!! I am very lost! LOL
cinemaguy - 20 Dec 2006 21:03 GMT
Yes some Actionscript and some PHP if that is your preference. I have written
an article for precisely this thing that you can find here:
http://explorinlauren.com/repository/flash/actionscript/sending-and-receiving-va
riables-from-php.html
If you have more questions let me know.
CasmoeDesigns - 20 Dec 2006 21:19 GMT
ok I've read that. Where do I create the PHP file? In Dreamweaver?
Also where is the actionscript going? On the button?
cinemaguy - 20 Dec 2006 21:26 GMT
yes you could put it in an onRelease function. you can use any text editor to create PHP or Dreamweaver will work as well. Just save as .php
CasmoeDesigns - 20 Dec 2006 21:32 GMT
So the code you have wrote is to stay the same?
CasmoeDesigns - 20 Dec 2006 21:39 GMT
This came up when I but the action script on the submit button.
**Error** Scene=Scene 1, layer=Form_block, frame=88:Line 15: Statement must
appear within on/onClipEvent handler
var srLv:LoadVars = new LoadVars();
**Error** Scene=Scene 1, layer=Form_block, frame=88:Line 17: Statement must
appear within on/onClipEvent handler
srLv.onLoad = function() {
**Error** Scene=Scene 1, layer=Form_block, frame=88:Line 25: Statement must
appear within on/onClipEvent handler
srLv.flashCount = 1;
**Error** Scene=Scene 1, layer=Form_block, frame=88:Line 27: Statement must
appear within on/onClipEvent handler
srLv.sendAndLoad("sendandreceive.php", srLv, "POST");
Total ActionScript Errors: 4 Reported Errors: 4
cinemaguy - 20 Dec 2006 21:40 GMT
I'm not sure what you mean. Its just an introduction into how to send and receive data from the server with Flash.
CasmoeDesigns - 20 Dec 2006 21:44 GMT
Oh, well I have no clue still then. I was hoping someone could actually help me with the code to send the form information to the server.
What you gave me is confusing. Sorry.
cinemaguy - 20 Dec 2006 22:19 GMT
All of those errors are telling you is that you tried to on (release) function on a frame and not on a button or movieclip. That has nothing to do with the code I gave you.