all groups > flash data integration > march 2006 >
You're in the

flash data integration

group:

PHP/Flash Email, NOT A COMMENT FORM


PHP/Flash Email, NOT A COMMENT FORM THE DVH
3/20/2006 4:03:36 AM
flash data integration:
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
Re: PHP/Flash Email, NOT A COMMENT FORM san_sasuke
3/20/2006 11:56:34 AM
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


Re: PHP/Flash Email, NOT A COMMENT FORM gravideo
3/31/2006 4:23:18 PM
AddThis Social Bookmark Button