http://www.derekvanhorne.com/phptest/clothing.html
This is an extremely simple version of what I will be creating in Flash, where
users will cycle through clothing options and then click "Submit" to submit
their choices. Then, in theory, an email will be sent, via PHP, to me with the
Shirt, Pants, and Shoes selections. For example the email would read: "Shirt:
Green Pants: Black Shoes: Blue"
Right now the text for the Shirt, Pants, and Shoes are all Labels from the
Components and I've then applied the following ActionScript to get them to
change (this is on each frame of the 3 movieclips that contain the Shirt,
Pants, and Shoes, as well as the left and right buttons, and the Label)
stop();
var pants:String;
pants = myPants_txt.text;
myPants_txt.text = "blue";
pantsleft_mc.onRelease = function(){
gotoAndStop("3");
}
pantsright_mc.onRelease = function(){
gotoAndStop("2");
}
From there can anyone give me an idea of how I might start to pull that
content out of Flash and into an email using PHP, when the user clicks the
"SUBMIT" button (right now it's just going to the frame "end" on release)
Any help at all would be great, I've been killing myself with this for an
entire weekend, and I'm getting nowhere.
Thanks
san_sasuke - 20 Mar 2006 12:56 GMT
Look in the helpfile for the LoadVars class...
Example in the help file:
var my_lv:LoadVars = new LoadVars();
my_lv.playerName = playerName_txt.text;
my_lv.playerScore = playerScore_txt.text;
my_lv.send("setscore.cfm", "_blank", "POST");
Peace.
sasuke
gravideo - 31 Mar 2006 17:23 GMT
try www.gotoandlearn.com
There is an excellent video tutorial on Flash and PHP