Flash form sending data to php (please help!)

flash form not sending data with php

Page 1 of 1

9 Replies - 1467 Views - Last Post: 14 April 2009 - 02:54 AM Rate Topic: -----

#1 xxsassxx31  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 22-October 08

Flash form sending data to php (please help!)

Post icon  Posted 08 April 2009 - 10:18 PM

Hello all...I had someone who had compiled my flash site as I have three forms integrated into my flash website (http://alliancedirect.net) on the left side you see a "Refinance", "Purchase", and "Loss Mitigation" but I had to do some edits on it and someone else had to work on it and the original person I can't get in contact with and I didn't have the original FLA file so something happens when someone fills out any of the forms to the left....no data is sent! I receive the email but it is blank! I have several flash forms I downloaded to see how I would get the script to go but I can't seem to figure it out!

The current script on my flash is super super long...(i'm sure a lot of nonsense coding in it) ....can someone help assist me with this? I am on the computer pretty much all day because of my work so if anyone can assist me, I will check for replies on here regularly and my aim is ** Removed ** and my yahoo is ** Removed ** . Again....i would appreciate any help I can get in regards to this because I truly am stuck with what to do...Thanks again in advance for your help and consideration!

Is This A Good Question/Topic? 0
  • +

Replies To: Flash form sending data to php (please help!)

#2 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5182
  • View blog
  • Posts: 26,886
  • Joined: 10-May 07

Re: Flash form sending data to php (please help!)

Posted 08 April 2009 - 10:47 PM

View Postxxsassxx31, on 8 Apr, 2009 - 11:18 PM, said:

The current script on my flash is super super long...(i'm sure a lot of nonsense coding in it) ....can someone help assist me with this?

I'm curious how you expect anyone to be able to help you when we can't see &/or troubleshoot the code.

View Postxxsassxx31, on 8 Apr, 2009 - 11:18 PM, said:

my aim is ... and my yahoo is ....


Please fill these out on your profile. Don't ask for private help within the forums. We like to help people here so that others can use it as a reference point for their own, similar problems & questions.
Was This Post Helpful? 0
  • +
  • -

#3 xxsassxx31  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 22-October 08

Re: Flash form sending data to php (please help!)

Posted 09 April 2009 - 02:10 AM

Thank you...I will post the long coding tomorrow as I am passing out. Gnite and thx again for your replies :)
Was This Post Helpful? 0
  • +
  • -

#4 xxsassxx31  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 22-October 08

Re: Flash form sending data to php (please help!)

Posted 13 April 2009 - 12:21 PM

Hi you guys! Thanks for the reply back and I apologize for getting back to you late but I would appreciate all the help that I could get.

I am a bit inexperienced with flash (even though I do know the basics) and I am using Flash CS4. Last night I spent 2-3 hours going through all of the flash files along with documention on how to incorporate the flash actionscript within the php correctly but it only let me even more confused...I will provide to you all the information you need (please just ask); but first I have posted the coding below from the "action" from one of the flash forms on my website (the "Refinance" form)....it is extremely long so I have posted it as an image file on my website which is located at http://alliancedirect.net/snagit1.png
The coding below is extremely long and prob. contains a bunch of junk which is not needed and my problem again is not receiving any data and I use GoDaddy so I can use their /gdform.php or another php script if needed

[code]function submitButtonPress(eventObj) {
var _loc5 = false;
for (var _loc2 = 0; _loc2<reqArray.length; ++_loc2) {
var _loc6 = new FormObject();
if (reqArray[_loc2].objectType == "textinput") {
if (reqArray[_loc2].object.text == "") {
_loc5 = true;
}
// end if
}
// end if
if (reqArray[_loc2].objectType == "textarea") {
if (reqArray[_loc2].object.text == "") {
_loc5 = true;
}
// end if
}
// end if
if (_loc5 == true) {

/*var myTW = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, true, {closeButton: true, title: _root.reqmessage, _width: _root.mainwidth, _height: 32, _x: 0, _y: _root.submity, color: 16711680});
windowListener = new Object();
windowListener.click = function (evt)
{
myTW.deletePopUp();
};
myTW.addEventListener("click", windowListener);*/
valid_txt._visible = true;
valid_txt.text = reqmessage;
return;
}
// end if
}// end of for
var _loc15 = new String(_root._url);
var _loc14 = new String();
_loc14 = _loc15.substr(0, 4);
if (_loc14 == "file") {
valid_txt._visible = true;
valid_txt.text = "local.html";
getURL("local.html");
return;
}
// end if
var _loc3 = new LoadVars();
_loc3.xmlfile = file;
if (!registered) {
_loc3.uR = "true";
}
// end if
for (var _loc2 = 0; _loc2<fieldArray.length; ++_loc2) {
_loc6 = new FormObject();
_loc6 = fieldArray[_loc2];
if (fieldArray[_loc2].objectType == "hidden") {
_loc3[fieldArray[_loc2].objectName] = fieldArray[_loc2].objectValue;
continue;
}
// end if
if (fieldArray[_loc2].objectType == "textinput") {
if (_level0.fieldArray[_loc2].object.text == "") {
continue;
}
// end if
if (_level0.fieldArray[_loc2].object.emBx != undefined) {
_loc3.eM = _level0.fieldArray[_loc2].object.text;
}
// end if
_loc3[fieldArray[_loc2].objectName] = fieldArray[_loc2].object.text;

continue;
}
// end if
if (fieldArray[_loc2].objectType == "textarea") {
if (_level0.fieldArray[_loc2].object.text == "") {
continue;
}
// end if
_loc3[fieldArray[_loc2].objectName] = fieldArray[_loc2].object.text;
continue;
}
// end if
if (fieldArray[_loc2].objectType == "checkbox") {
if (fieldArray[_loc2].object.selected == false) {
continue;
}
// end if
_loc3[fieldArray[_loc2].objectName+" - "+fieldArray[_loc2].object.label] = fieldArray[_loc2].objectValue;
continue;
}
// end if
if (fieldArray[_loc2].objectType == "radiobutton") {
if (fieldArray[_loc2].object.selected == false) {
continue;
}
// end if
_loc3[fieldArray[_loc2].objectName+" - "+fieldArray[_loc2].object.label] = "Checked";
continue;
}
// end if
if (fieldArray[_loc2].objectType == "submitbutton") {
fieldArray[_loc2].object.label = "Submitting...";
fieldArray[_loc2].object.enabled = false;
continue;
}
// end if
if (fieldArray[_loc2].objectType == "combobox") {
var _loc4 = fieldArray[_loc2].object.selectedItem;
if (_loc4.label == "") {
continue;
}
// end if
_loc3[fieldArray[_loc2].objectName] = _loc4.label;
continue;
}
// end if
if (fieldArray[_loc2].objectType == "list") {
_loc4 = fieldArray[_loc2].object.selectedItem;
if (_loc4.label == undefined) {
continue;
}
// end if
_loc3[fieldArray[_loc2].objectName] = _loc4.label;
continue;
}
// end if
}// end of for
// _loc3.send(_level0.submitURL, _level0.submitWindow, _level0.submitMethod);
valid_txt._visible = true;
valid_txt.text = "Thank you message";
_loc3.send(submitURL,submitWindow,submitMethod);
}// End of the function
function submitButtonkeypress(eventObj) {
if (Key.getCode() == 13) {
submitButtonPress(eventObj);
}
// end if
}// End of the function
valid_txt._visible = false;
var registered = true;
var submitURL = "";
var submitWindow = "_self";
var submitMethod = "_POST";
var my_xml = new XML();
var fieldArray = new Array();
var reqArray = new Array();
var file;
var mainheight;
var mainwidth;
var reqmessage = "One or More Fields are Required";
var submity = 0;
my_xml.ignoreWhite = true;
my_xml.onload = function(success) {
if (success) {
var _loc4 = 1;
my_xml.parseXML(my_xml.toString());
var _loc8 = my_xml.firstChild;
if (_loc8.attributes.themecolor != undefined) {
_global.style.setStyle(_global.style.setStyle("themeColor", _loc8.attributes.themecolor));
}
// end if
if (_loc8.attributes.bordercapcolor != undefined) {
_global.style.setStyle(_global.style.setStyle("borderCapColor", _loc8.attributes.bordercapcolor));
}
// end if
if (_loc8.attributes.shadowcapcolor != undefined) {
_global.style.setStyle(_global.style.setStyle("shadowCapColor", _loc8.attributes.shadowcapcolor));
}
// end if
if (_loc8.attributes.bordercolor != undefined) {
_global.style.setStyle(_global.style.setStyle("borderColor", _loc8.attributes.bordercolor));
}
// end if
if (_loc8.attributes.shadowcolor != undefined) {
_global.style.setStyle(_global.style.setStyle("shadowColor", _loc8.attributes.shadowcolor));
}
// end if
if (_loc8.attributes.borderstyle != undefined) {
_global.style.setStyle(_global.style.setStyle("borderStyle", _loc8.attributes.borderstyle));
}
// end if
if (_loc8.attributes.highlightcolor != undefined) {
_global.style.setStyle(_global.style.setStyle("highlightColor", _loc8.attributes.highlightcolor));
}
// end if
if (_loc8.attributes.buttoncolor != undefined) {
_global.style.setStyle(_global.style.setStyle("buttonColor", _loc8.attributes.buttoncolor));
}
// end if
if (_loc8.attributes.fontcolor != undefined) {
_global.style.setStyle("color",_loc8.attributes.fontcolor);
}
// end if
if (_loc8.attributes.fontsize != undefined) {
_global.style.setStyle("fontSize",_loc8.attributes.fontsize);
}
// end if
if (_loc8.attributes.fontname != undefined) {
_global.style.setStyle("fontFamily",_loc8.attributes.fontname);
}
// end if
if (_loc8.attributes.url != undefined) {
submitURL = _loc8.attributes.url;

}
// end if
if (_loc8.attributes.method != undefined) {
submitMethod = _loc8.attributes.method;
}
// end if
if (_loc8.attributes.window != undefined) {
submitWindow = _loc8.attributes.window;
}
// end if
if (_loc8.attributes.reqmessage != undefined) {
reqmessage = _loc8.attributes.reqmessage;
}
// end if
if (_loc8.attributes.bkcolor != undefined) {
_root.beginFill(_loc8.attributes.bkcolor,100);
_root.moveTo(0,0);
_root.lineTo(_level0.w,0);
_root.lineTo(_level0.w,_level0.h);
_root.lineTo(0,_level0.h);
_root.lineTo(0,0);
_root.endFill();
}
// end if
if (_loc8.attributes.outlinecolor != undefined) {
_root.lineStyle(2,_loc8.attributes.outlinecolor,100);
_root.moveTo(0,0);
_root.lineTo(_level0.w,0);
_root.lineTo(_level0.w,_level0.h);
_root.lineTo(0,_level0.h);
_root.lineTo(0,0);
}
// end if
if (_loc8.attributes.width != undefined) {
mainwidth = _loc8.attributes.width;
}
// end if
if (_loc8.attributes.height != undefined) {
mainheight = _loc8.attributes.height;
}
// end if
for (var _loc3 = _loc8.firstChild; _loc3 != null; _loc3=_loc3.nextSibling) {
if (_loc3.nodeName == "submitbutton") {

if (_loc3.attributes.image != undefined) {
_root.createEmptyMovieClip("mc",_loc4);
_root.mc.createEmptyMovieClip("mc2",_loc4+1);
_root.image4._visible = true;
_root.mc._visible = true;
_root.mc.onRelease = function() {
submitButtonPress(eventObj);
};
_root.mc.mc2.loadMovie(_loc3.attributes.image);
if (_loc3.attributes.alpha != undefined) {
_root.mc._alpha = _loc3.attributes.alpha;
}
// end if
if (_loc3.attributes.x != undefined) {
_root.mc._x = _loc3.attributes.x;
}
// end if
if (_loc3.attributes.y != undefined) {
_root.mc._y = _loc3.attributes.y;
}
// end if
++_loc4;
++_loc4;
} else {
var _loc29 = new FormObject();
_loc29.objectType = "submitbutton";
_loc29.objectName = _loc3.attributes.name;
_loc29.objectValue = _loc3.attributes.value;
_loc29.object = createClassObject(mx.controls.Button, _loc3.attributes.name, _loc4, {_y:_loc3.attributes.y, _x:_loc3.attributes.x, _width:_loc3.attributes.w, _height:_loc3.attributes.h, password:_loc3.attributes.password, label:_loc3.attributes.label});
_root.submity = _loc3.attributes.y;
trace(_root.submity);

if (_loc3.attributes.fontbold == "bold") {
_loc29.object.fontWeight = "bold";
}
// end if
if (_loc3.attributes.fontbold == "normal") {
_loc29.object.fontWeight = "normal";
}
// end if
if (_loc3.attributes.fontitalic == "italic") {
_loc29.object.fontStyle = "italic";
}
// end if
if (_loc3.attributes.fontitalic == "normal") {
_loc29.object.fontStyle = "normal";
}
// end if
if (_loc3.attributes.fontcolor != undefined) {
_loc29.object.color = _loc3.attributes.fontcolor;
}
// end if
if (_loc3.attributes.fontname != undefined) {
_loc29.object.fontFamily = _loc3.attributes.fontname;
}
// end if
if (_loc3.attributes.fontsize != undefined) {
_loc29.object.fontSize = _loc3.attributes.fontsize;
}
// end if
_loc29.object.keyDown = submitButtonkeypress;
_loc29.object.addEventListener("keyDown",form);
form = new Object();
form.click = submitButtonPress;
_loc29.object.addEventListener("click",form);
fieldArray.push(_loc29);
++_loc4;
}// end else if
continue;
}
// end if
if (_loc3.nodeName == "hidden") {
_loc29 = new FormObject();
_loc29.objectType = "hidden";
_loc29.objectName = _loc3.attributes.name;
_loc29.objectValue = _loc3.attributes.value;
fieldArray.push(_loc29);
++_loc4;
continue;
}
// end if
if (_loc3.nodeName == "textinput") {
if (_loc3.hasChildNodes) {
var _loc6 = _loc3.firstChild;
if (_loc6.nodeName == "label") {
_loc29 = new FormObject();
_loc29.objectType = "label";
_loc29.objectName = _loc6.attributes.name;
_loc29.objectValue = _loc6.attributes.value;
_loc29.object = createClassObject(mx.controls.Label, _loc6.attributes.name, _loc4, {_y:_loc6.attributes.y, _x:_loc6.attributes.x, text:_loc6.attributes.text, autoSize:true});
if (_loc6.attributes.fontbold == "bold") {
_loc29.object.fontWeight = "bold";
}
// end if
if (_loc6.attributes.fontbold == "normal") {
_loc29.object.fontWeight = "normal";
}
// end if
if (_loc6.attributes.fontitalic == "italic") {
_loc29.object.fontStyle = "italic";
}
// end if
if (_loc6.attributes.fontitalic == "normal") {
_loc29.object.fontStyle = "normal";
}
// end if
if (_loc6.attributes.fontcolor != undefined) {
_loc29.object.color = _loc3.attributes.fontcolor;
}
// end if
if (_loc6.attributes.fontname != undefined) {
_loc29.object.fontFamily = _loc3.attributes.fontname;
}
// end if
if (_loc6.attributes.fontsize != undefined) {
_loc29.object.fontSize = _loc6.attributes.fontsize;
}
// end if
if (_loc6.attributes.fontcolor != undefined) {
_loc29.object.color = _loc6.attributes.fontcolor;
}
// end if
++_loc4;
}
// end if
}
// end if
var _loc14 = 0;
if (_loc3.attributes.password == "true") {
_loc14 = 1;
}
// end if
_loc29 = new FormObject();
_loc29.objectType = "textinput";
_loc29.objectName = _loc3.attributes.name;
_loc29.object = createClassObject(mx.controls.TextInput, _loc3.attributes.name, _loc4, {_y:_loc3.attributes.y, _x:_loc3.attributes.x, _width:_loc3.attributes.w, _height:_loc3.attributes.h, password:_loc14, maxChars:_loc3.attributes.maxchars, text:_loc3.attributes.initvalue, color:_loc3.attributes.fontcolor, backgroundColor:_loc3.attributes.bkcolor, emBx:_loc3.attributes.emailbox, editable:true});
if (_loc3.attributes.fontbold == "bold") {
_loc29.object.fontWeight = "bold";
}
// end if
if (_loc3.attributes.fontbold == "normal") {
_loc29.object.fontWeight = "normal";
}
// end if
if (_loc3.attributes.fontitalic == "italic") {
_loc29.object.fontStyle = "italic";
}
// end if
if (_loc3.attributes.fontitalic == "normal") {
_loc29.object.fontStyle = "normal";
}
// end if
if (_loc3.attributes.fontcolor != undefined) {
_loc29.object.color = _loc3.attributes.fontcolor;
}
// end if
if (_loc3.attributes.fontname != undefined) {
_loc29.object.fontFamily = _loc3.attributes.fontname;
}
// end if
if (_loc3.attributes.focused == "true") {
_root.focusManager.setFocus(_loc29.object);
}
// end if
if (_loc3.attributes.required == "true") {
reqArray.push(_loc29);
}
// end if
fieldArray.push(_loc29);
++_loc4;
continue;
}
// end if
if (_loc3.nodeName == "textarea") {
_loc14 = 0;
if (_loc3.attributes.password == "true") {
_loc14 = 1;
}
// end if
_loc29 = new FormObject();
_loc29.objectType = "textarea";
_loc29.objectName = _loc3.attributes.name;
_loc29.object = createClassObject(mx.controls.TextArea, _loc3.attributes.name, _loc4, {_y:_loc3.attributes.y, _x:_loc3.attributes.x, _width:_loc3.attributes.w, _height:_loc3.attributes.h, password:_loc14, maxChars:_loc3.attributes.maxchars, text:_loc3.attributes.initvalue, wordWrap:_loc3.attributes.wordwrap, color:_loc3.attributes.fontcolor, backgroundColor:_loc3.attributes.bkcolor, editable:true});
if (_loc3.attributes.fontbold == "bold") {
_loc29.object.fontWeight = "bold";
}
// end if
if (_loc3.attributes.fontbold == "normal") {
_loc29.object.fontWeight = "normal";
}
// end if
if (_loc3.attributes.fontitalic == "italic") {
_loc29.object.fontStyle = "italic";
}
// end if
if (_loc3.attributes.fontitalic == "normal") {
_loc29.object.fontStyle = "normal";
}
// end if
if (_loc3.attributes.fontcolor != undefined) {
_loc29.object.color = _loc3.attributes.fontcolor;
}
// end if
if (_loc3.attributes.fontname != undefined) {
_loc29.object.fontFamily = _loc3.attributes.fontname;
}
// end if
if (_loc3.attributes.focused == "true") {
_root.focusManager.setFocus(_loc29.object);
}
// end if
if (_loc3.attributes.required == "true") {
reqArray.push(_loc29);
}
// end if
fieldArray.push(_loc29);
++_loc4;
continue;
}
// end if
if (_loc3.nodeName == "checkbox") {
_loc14 = 0;
if (_loc3.attributes.checked == "true") {
_loc14 = 1;
}
// end if
_loc29 = new FormObject();
_loc29.objectType = "checkbox";
_loc29.objectName = _loc3.attributes.name;
_loc29.objectValue = _loc3.attributes.value;
_loc29.object = createClassObject(mx.controls.CheckBox, _loc3.attributes.name, _loc4, {_y:_loc3.attributes.y, _x:_loc3.attributes.x, _width:_loc3.attributes.w, _height:_loc3.attributes.h, label:_loc3.attributes.label, labelPlacement:_loc3.attributes.labelPos, selected:_loc14, color:_loc3.attributes.fontcolor});
if (_loc3.attributes.fontbold == "bold") {
_loc29.object.fontWeight = "bold";
}
// end if
if (_loc3.attributes.fontbold == "normal") {
_loc29.object.fontWeight = "normal";
}
// end if
if (_loc3.attributes.fontitalic == "italic") {
_loc29.object.fontStyle = "italic";
}
// end if
if (_loc3.attributes.fontitalic == "normal") {
_loc29.object.fontStyle = "normal";
}
// end if
if (_loc3.attributes.fontcolor != undefined) {
_loc29.object.color = _loc3.attributes.fontcolor;
}
// end if
if (_loc3.attributes.fontname != undefined) {
_loc29.object.fontFamily = _loc3.attributes.fontname;
}
// end if
if (_loc3.attributes.fontsize != undefined) {
_loc29.object.fontSize = _loc3.attributes.fontsize;
}
// end if
if (_loc3.attributes.focused == "true") {
_root.focusManager.setFocus(_loc29.object);
}
// end if
fieldArray.push(_loc29);
++_loc4;
continue;
}
// end if
if (_loc3.nodeName == "radiobutton")

This post has been edited by xxsassxx31: 13 April 2009 - 12:28 PM

Was This Post Helpful? 0
  • +
  • -

#5 xxsassxx31  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 22-October 08

Re: Flash form sending data to php (please help!)

Posted 13 April 2009 - 12:31 PM

if (_loc3.nodeName == "radiobutton") {
				_loc14 = 0;
				if (_loc3.attributes.checked == "true") {
					_loc14 = 1;
				}
				// end if  
				_loc29 = new FormObject();
				_loc29.objectType = "radiobutton";
				_loc29.objectName = _loc3.attributes.name;
				_loc29.objectValue = _loc3.attributes.value;
				_loc29.object = createClassObject(mx.controls.RadioButton, _loc3.attributes.name, _loc4, {_y:_loc3.attributes.y, _x:_loc3.attributes.x, _width:_loc3.attributes.w, _height:_loc3.attributes.h, label:_loc3.attributes.label, labelPlacement:_loc3.attributes.labelPos, groupName:_loc3.attributes.groupname, selected:_loc14, color:_loc3.attributes.fontcolor});
				if (_loc3.attributes.fontbold == "bold") {
					_loc29.object.fontWeight = "bold";
				}
				// end if  
				if (_loc3.attributes.fontbold == "normal") {
					_loc29.object.fontWeight = "normal";
				}
				// end if  
				if (_loc3.attributes.fontitalic == "italic") {
					_loc29.object.fontStyle = "italic";
				}
				// end if  
				if (_loc3.attributes.fontitalic == "normal") {
					_loc29.object.fontStyle = "normal";
				}
				// end if  
				if (_loc3.attributes.fontcolor != undefined) {
					_loc29.object.color = _loc3.attributes.fontcolor;
				}
				// end if  
				if (_loc3.attributes.fontname != undefined) {
					_loc29.object.fontFamily = _loc3.attributes.fontname;
				}
				// end if  
				if (_loc3.attributes.fontsize != undefined) {
					_loc29.object.fontSize = _loc3.attributes.fontsize;
				}
				// end if  
				if (_loc3.attributes.fontcolor != undefined) {
					_loc29.object.color = _loc3.attributes.fontcolor;
				}
				// end if  
				if (_loc3.attributes.fontname != undefined) {
					_loc29.object.fontFamily = _loc3.attributes.fontname;
				}
				// end if  
				if (_loc3.attributes.focused == "true") {
					_root.focusManager.setFocus(_loc29.object);
				}
				// end if  
				fieldArray.push(_loc29);
				++_loc4;
				continue;
			}
			// end if  
			if (_loc3.nodeName == "combobox") {
				var _loc9 = mx.controls.ComboBox;
				_loc29 = new FormObject();
				_loc29.objectType = "combobox";
				_loc29.objectName = _loc3.attributes.name;
				_loc9 = createClassObject(mx.controls.ComboBox, _loc3.attributes.name, _loc4, {_y:_loc3.attributes.y, _x:_loc3.attributes.x, _width:_loc3.attributes.w, _height:_loc3.attributes.h, editable:false, color:_loc3.attributes.fontcolor, backgroundColor:_loc3.attributes.bkcolor});
				if (_loc3.attributes.fontbold == "bold") {
					_loc29.object.fontWeight = "bold";
				}
				// end if  
				if (_loc3.attributes.fontbold == "normal") {
					_loc29.object.fontWeight = "normal";
				}
				// end if  
				if (_loc3.attributes.fontitalic == "italic") {
					_loc29.object.fontStyle = "italic";
				}
				// end if  
				if (_loc3.attributes.fontitalic == "normal") {
					_loc29.object.fontStyle = "normal";
				}
				// end if  
				if (_loc3.attributes.fontcolor != undefined) {
					_loc29.object.color = _loc3.attributes.fontcolor;
				}
				// end if  
				if (_loc3.attributes.fontname != undefined) {
					_loc29.object.fontFamily = _loc3.attributes.fontname;
				}
				// end if  
				if (_loc3.hasChildNodes=true) {
					for (var _loc6 = _loc3.firstChild; _loc6 != null; _loc6=_loc6.nextSibling) {
						_loc9.addItem(_loc6.attributes.name);
					}// end of for
				}
				// end if  
				_loc9.openDuration = 50;
				_loc29.object = _loc9;
				if (_loc3.attributes.focused == "true") {
					_root.focusManager.setFocus(_loc29.object);
				}
				// end if  
				fieldArray.push(_loc29);
				++_loc4;
				continue;
			}
			// end if  
			if (_loc3.nodeName == "list") {
				_loc29 = new FormObject();
				_loc29.objectType = "list";
				_loc29.objectName = _loc3.attributes.name;
				var _loc11 = mx.controls.List;
				_loc11 = createClassObject(mx.controls.List, _loc3.attributes.name, _loc4, {_y:_loc3.attributes.y, _x:_loc3.attributes.x, _width:_loc3.attributes.w, _height:_loc3.attributes.h, backgroundColor:_loc3.attributes.bkcolor, color:_loc3.attributes.fontcolor});
				if (_loc3.attributes.fontbold == "bold") {
					_loc29.object.fontWeight = "bold";
				}
				// end if  
				if (_loc3.attributes.fontbold == "normal") {
					_loc29.object.fontWeight = "normal";
				}
				// end if  
				if (_loc3.attributes.fontitalic == "italic") {
					_loc29.object.fontStyle = "italic";
				}
				// end if  
				if (_loc3.attributes.fontitalic == "normal") {
					_loc29.object.fontStyle = "normal";
				}
				// end if  
				if (_loc3.attributes.fontcolor != undefined) {
					_loc29.object.color = _loc3.attributes.fontcolor;
				}
				// end if  
				if (_loc3.attributes.fontname != undefined) {
					_loc29.object.fontFamily = _loc3.attributes.fontname;
				}
				// end if  
				if (_loc3.hasChildNodes) {
					for (var _loc6 = _loc3.firstChild; _loc6 != null; _loc6=_loc6.nextSibling) {
						_loc11.addItem(_loc6.attributes.name);
					}// end of for
				}
				// end if  
				_loc29.object = _loc11;
				if (_loc3.attributes.focused == "true") {
					_root.focusManager.setFocus(_loc29.object);
				}
				// end if  
				fieldArray.push(_loc29);
				++_loc4;
				continue;
			}
			// end if  
			if (_loc3.nodeName == "label") {
				_loc29 = new FormObject();
				_loc29.objectType = "label";
				_loc29.objectName = _loc3.attributes.name;
				_loc29.objectValue = _loc3.attributes.value;
				_loc29.object = createClassObject(mx.controls.Label, _loc3.attributes.name, _loc4, {_y:_loc3.attributes.y, _x:_loc3.attributes.x, text:_loc3.attributes.text, autoSize:true});
				if (_loc3.attributes.fontbold == "bold") {
					_loc29.object.fontWeight = "bold";
				}
				// end if  
				if (_loc3.attributes.fontbold == "normal") {
					_loc29.object.fontWeight = "normal";
				}
				// end if  
				if (_loc3.attributes.fontitalic == "italic") {
					_loc29.object.fontStyle = "italic";
				}
				// end if  
				if (_loc3.attributes.fontitalic == "normal") {
					_loc29.object.fontStyle = "normal";
				}
				// end if  
				if (_loc3.attributes.fontcolor != undefined) {
					_loc29.object.color = _loc3.attributes.fontcolor;
				}
				// end if  
				if (_loc3.attributes.fontname != undefined) {
					_loc29.object.fontFamily = _loc3.attributes.fontname;
				}
				// end if  
				if (_loc3.attributes.fontsize != undefined) {
					_loc29.object.fontSize = _loc3.attributes.fontsize;
				}
				// end if  
				if (_loc3.attributes.fontcolor != undefined) {
					_loc29.object.color = _loc3.attributes.fontcolor;
				}
				// end if  
				if (_loc3.attributes.fontname != undefined) {
					_loc29.object.fontFamily = _loc3.attributes.fontname;
				}
				// end if  
				fieldArray.push(_loc29);
				++_loc4;
				continue;
			}
			// end if  
			if (_loc3.nodeName == "image") {
				if (_loc3.attributes.image != undefined) {
					ww = "image"+_loc4;
					var _loc10 = MovieClip;
					_loc10 = _root.createEmptyMovieClip(ww, _loc4);
					++_loc4;
					_loc10.loadMovie(_loc3.attributes.image);
					if (_loc3.attributes.alpha != undefined) {
						_loc10._alpha = _loc3.attributes.alpha;
					}
					// end if  
					if (_loc3.attributes.x != undefined) {
						_loc10._x = _loc3.attributes.x;
					}
					// end if  
					if (_loc3.attributes.y != undefined) {
						_loc10._y = _loc3.attributes.y;
					}
					// end if  
				}
				// end if  
			}
			// end if  
			if (_loc3.nodeName == "bkimage") {
				if (_loc3.attributes.image != undefined) {
					var _loc12 = 100;
					var _loc13 = 100;
					var _loc15 = "image"+_loc4;
					_loc10 = MovieClip;
					_loc10 = _root.createEmptyMovieClip(_loc15, _loc4);
					_loc10.loadMovie(_loc3.attributes.image);
					++_loc4;
					if (_loc3.attributes.x != undefined) {
						_loc10._x = _loc3.attributes.x;
					}
					// end if  
					if (_loc3.attributes.y != undefined) {
						_loc10._y = _loc3.attributes.y;
					}
					// end if  
					if (_loc3.attributes.width != undefined) {
						_loc12 = Number(_loc3.attributes.width);
					}
					// end if  
					if (_loc3.attributes.height != undefined) {
						_loc13 = Number(_loc3.attributes.height);
					}
					// end if  
					for (y=0; y<_level0.h; y=y+_loc13) {
						for (x=0; x<_level0.w; x=x+_loc12) {
							var _loc7 = "image"+_loc4;
							var _loc5 = MovieClip;
							_loc5 = _root.createEmptyMovieClip(_loc7, _loc4);
							_loc5.loadMovie(_loc3.attributes.image);
							++_loc4;
							_loc5._x = x;
							_loc5._y = y;
						}// end of for
					}// end of for
				}
				// end if  
			}
			// end if  
		}// end of for
	} else {
		_loc29 = new FormObject();
		_loc29.objectType = "label";
		_loc29.objectName = _loc3.attributes.name;
		_loc29.objectValue = _loc3.attributes.value;
		_loc29.object = createClassObject(mx.controls.Label, "broke", 1, {_y:0, _x:0, text:"Cannot find your XML file.\nYou need to upload it for\nthis form to work.", autoSize:true});
	}// end else if
	if (!registered) {
		duplicateMovieClip(yellowbx1, "yellowbx2", _loc4);
		yellowbx2._x = 0;
		yellowbx2._y = mainheight-15;
		++_loc4;
		yellowbx2.onRelease = function() {
			getURL("http://www.coffeecup.com");
		};
		duplicateMovieClip(CCUNREGBTN1, "CCUNREGBTN2", _loc4);
		++_loc4;
		CCUNREGBTN2._y = mainheight-17;
		var _loc30 = (mainheight-CCUNREGBTN2._width)/2;
		if (_loc30<0) {
			_loc30 = 0;
		}
// end if  
		CCUNREGBTN2._x = _loc30;
		CCUNREGBTN2.onRelease = function() {
			getURL("http://www.coffeecup.com");
		};
	}
	// end if  
	yellowbx1.swapDepths(1000);
	yellowbx1.removeMovieClip();
	CCUNREGBTN1.swapDepths(1000);
	CCUNREGBTN1.removeMovieClip();
};
if (_level0.xmlfile != undefined) {
	file = _level0.xmlfile;
} else {
	file = "refinance.xml";
}// end else if
my_xml.load(file);

This post has been edited by xxsassxx31: 13 April 2009 - 12:33 PM

Was This Post Helpful? 0
  • +
  • -

#6 xxsassxx31  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 22-October 08

Re: Flash form sending data to php (please help!)

Posted 13 April 2009 - 02:25 PM

Thanks you guys....hopefully what I have posted below will make it easier as it seems like it is the "core" of what I need and hopefully to which contains the error...thanks again !

function submitButtonPress(eventObj) {
	var _loc5 = false;
	for (var _loc2 = 0; _loc2<reqArray.length; ++_loc2) {
		var _loc6 = new FormObject();
		if (reqArray[_loc2].objectType == "textinput") {
			if (reqArray[_loc2].object.text == "") {
				_loc5 = true;
			}
			// end if  
		}
		// end if  
		if (reqArray[_loc2].objectType == "textarea") {
			if (reqArray[_loc2].object.text == "") {
				_loc5 = true;
			}
			// end if  
		}
		// end if  
		if (_loc5 == true) {

			/*var myTW = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, true, {closeButton: true, title: _root.reqmessage, _width: _root.mainwidth, _height: 32, _x: 0, _y: _root.submity, color: 16711680});
						windowListener = new Object();
						windowListener.click = function (evt)
						{
							myTW.deletePopUp();
						};
						myTW.addEventListener("click", windowListener);*/
			valid_txt._visible = true;
			valid_txt.text = reqmessage;
			return;
		}
		// end if  
	}// end of for
	var _loc15 = new String(_root._url);
	var _loc14 = new String();
	_loc14 = _loc15.substr(0, 4);
	if (_loc14 == "file") {
		valid_txt._visible = true;
		valid_txt.text = "local.html";
		getURL("local.html");
		return;
	}
	// end if  
	var _loc3 = new LoadVars();
	_loc3.xmlfile = file;
	if (!registered) {
		_loc3.uR = "true";
	}
	// end if  
	for (var _loc2 = 0; _loc2<fieldArray.length; ++_loc2) {
		_loc6 = new FormObject();
		_loc6 = fieldArray[_loc2];
		if (fieldArray[_loc2].objectType == "hidden") {
			_loc3[fieldArray[_loc2].objectName] = fieldArray[_loc2].objectValue;
			continue;
		}
		// end if  
		if (fieldArray[_loc2].objectType == "textinput") {
			if (_level0.fieldArray[_loc2].object.text == "") {
				continue;
			}
			// end if  
			if (_level0.fieldArray[_loc2].object.emBx != undefined) {
				_loc3.eM = _level0.fieldArray[_loc2].object.text;
			}
			// end if  
			_loc3[fieldArray[_loc2].objectName] = fieldArray[_loc2].object.text;

			continue;
		}
		// end if  
		if (fieldArray[_loc2].objectType == "textarea") {
			if (_level0.fieldArray[_loc2].object.text == "") {
				continue;
			}
			// end if  
			_loc3[fieldArray[_loc2].objectName] = fieldArray[_loc2].object.text;
			continue;
		}
		// end if  
		if (fieldArray[_loc2].objectType == "checkbox") {
			if (fieldArray[_loc2].object.selected == false) {
				continue;
			}
			// end if  
			_loc3[fieldArray[_loc2].objectName+" - "+fieldArray[_loc2].object.label] = fieldArray[_loc2].objectValue;
			continue;
		}
		// end if  
		if (fieldArray[_loc2].objectType == "radiobutton") {
			if (fieldArray[_loc2].object.selected == false) {
				continue;
			}
			// end if  
			_loc3[fieldArray[_loc2].objectName+" - "+fieldArray[_loc2].object.label] = "Checked";
			continue;
		}
		// end if  
		if (fieldArray[_loc2].objectType == "submitbutton") {
			fieldArray[_loc2].object.label = "Submitting...";
			fieldArray[_loc2].object.enabled = false;
			continue;
		}
		// end if  
		if (fieldArray[_loc2].objectType == "combobox") {
			var _loc4 = fieldArray[_loc2].object.selectedItem;
			if (_loc4.label == "") {
				continue;
			}
			// end if  
			_loc3[fieldArray[_loc2].objectName] = _loc4.label;
			continue;
		}
		// end if  
		if (fieldArray[_loc2].objectType == "list") {
			_loc4 = fieldArray[_loc2].object.selectedItem;
			if (_loc4.label == undefined) {
				continue;
			}
			// end if  
			_loc3[fieldArray[_loc2].objectName] = _loc4.label;
			continue;
		}
		// end if  
	}// end of for
	// _loc3.send(_level0.submitURL, _level0.submitWindow, _level0.submitMethod);
	valid_txt._visible = true;
	valid_txt.text = "Thank you message";
	_loc3.send(submitURL,submitWindow,submitMethod);
}// End of the function 

Was This Post Helpful? 0
  • +
  • -

#7 Hary  Icon User is offline

  • D.I.C Regular

Reputation: 44
  • View blog
  • Posts: 427
  • Joined: 23-September 08

Re: Flash form sending data to php (please help!)

Posted 13 April 2009 - 02:31 PM

Pffffff

How should we know what
 var _loc5 = false;

is supposed to do? If the only comments in a file are "End if"... My crystal bowl is out of service tonight, I cannot make any sense of this **** piece of code, sorry...
Was This Post Helpful? 0
  • +
  • -

#8 xxsassxx31  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 22-October 08

Re: Flash form sending data to php (please help!)

Posted 13 April 2009 - 02:45 PM

It's ok....I understand the frustration believe me. Let me know what other coding you need in my fla file and i will provide it for you....thanks again for your reply and consideration!
Was This Post Helpful? 0
  • +
  • -

#9 Carbonphyber  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 13-April 09

Re: Flash form sending data to php (please help!)

Posted 14 April 2009 - 02:21 AM

I give props to you. It sounds like you're a Mortgage broker learning to program to keep your business going.
With any luck, I'm not too far off helping you get started debugging your website/form issues...

I determined the following:
This is your main website: http://alliancedirect.net/
This is the refinance HTML page with Flash form in question: http://www.alliancedirect.net/form1
This is the XML file that feeds your Flash form processing: http://alliancedirec...t/refinance.xml
This is the script the form posts to (for server-side processing): http://alliancedirec...t/refinance.php

The Flash/Actionscript code you pasted appears to be rudimentary data validation, so I'm guessing the refinance.php file is where the guts of the processing is at.

I would ignore the Actionscript for the moment and focus on making sure that the form works if data is submitted correctly.
You can always rebuild the Flash form in HTML if you can't figure that part out.

Refinance.php
The error/feedback at that page (with no data/parameters sent) is this:
No <xml> data file found
Please upload the data xml file
Either sendmail or smtp is not properly configured on your system.
Please contact your hosting provider to correct this problem.

This suggests to me
  • Your form requires the XML file sent by the form for processing (ugh)
  • Your server's email configuration is wrong

Fake Post form
You may try and post test data to that script. You can use a static HTML file from your browser (you don't need to host this on a server). I created a test HTML form for you:
<html>
<head>
	<title>Reverse Engineered HTML form</title>
</head>
<body>
	<form action="http://alliancedirect.net/refinance.php" method="post" enctype="multipart/form-data" name="test">
		<fieldset>
			<legend>Test Upload Form for refinacne.php</legend>
			<p><label for="test_Refinance">Refinance: <input type="text" id="test_Refinance" name="Refinance" value="Refi current loan (no cash out)" /></label></p>
			<p><label for="test_typeofloan1">Type of loan: <input type="text" id="test_typeofloan1" name="typeofloan1" value="radiobutton1" /></label></p>
			<p><label for="test_currentrate">Current Rate: <input type="text" id="test_currentrate" name="currentrate" value="5.5%" /></label></p>
			<p><label for="test_yearsremaining">Years remaining: <input type="text" id="test_yearsremaining" name="yearsremaining" value="30" /></label></p>
			<p><label for="test_currentmortgagepayment">Current Mortgage Payment: <input type="text" id="test_currentmortgagepayment" name="currentmortgagepayment" value="4000" /></label></p>
			<p><label for="test_unpaidbalance">Unpaid Balance: <input type="text" id="test_unpaidbalance" name="unpaidbalance" value="2000000" /></label></p>
			<p><label for="test_creditinfo">Credit Info<input type="text" id="test_creditinfo" name="creditinfo" value="Unsure" /></label></p>
			<p><label for="test_mortgagelates1"><input type="text" id="test_mortgagelates1" name="mortgagelates1" value="radiobutton1" /></label></p>
			<p><label for="test_name"><input type="text" id="test_name" name="name" value="Joe Schmoe" /></label></p>
			<p><label for="test_email"><input type="text" id="test_email" name="email" value="alliancedirect@spam.la" /></label></p>
			<p><label for="test_contactnumber"><input type="text" id="test_contactnumber" name="contactnumber" value="(800) 555-1212" /></label></p>
			<p><label for="test_additionalcomments"><input type="text" id="test_additionalcomments" name="additionalcomments" value="JUST A TEST.  Testing the server PHP script" /></label></p>
			<p><label for="test_file"><input type="file" id="test_file" name="file" value="" /></label></p>
			<p><label for="test_SubmitButton1"><input type="submit" id="test_SubmitButton1" name="SubmitButton1" value="submit" /></label></p>
		</fieldset>
	</form>
</body>
</html>


I prefilled the "email" field with a "spam.la" address. If you visit the website http://spam.la/ you will see that it's a publicly usable disposable email system. Hopefully that's self explanatory.

I'm unsure of the "name" attribute for the file that your PHP script expects to be uploaded. That should be decipherable via your refinance.php file.

This page is a good resource:
http://us2.php.net/m...file-upload.php

Baby steps
You should start by printing the POSTED data by adding the following PHP to the top of your refinance.php script:
<?
echo '<h3>posted data</h3><pre>' . print_r(array($_REQUEST, $_FILES), true) . '</pre>';
?>


This might mess up some other processing that comes after, but we can deal with that later.

More baby steps
Next, try and create a very simple script that does little more than calls a "mail(...)" function. This will help you determine if your server can send email correctly.

Possible Server PHP configuration file
Also, if the coders were smart, they probably made a server-side configuration file that contains the email address your form data should "mail()" to. That file might contain other configuration setup details which are important for debugging.

Also helpful in debugging email issues is the exact full text of the email. If you received anything in your email inbox, then the headers were at least partially correct. If you use a native client like Outlook or a webclient like Yahoo/GMail/Hotmail, they almost always allow you to view the raw message (or at least the raw headers) if you know where to look.


Also, if any of the other forms still work correctly, that would prove very useful to anyone who wants to help resolve your problem.
Was This Post Helpful? 0
  • +
  • -

#10 xxsassxx31  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 22-October 08

Re: Flash form sending data to php (please help!)

Posted 14 April 2009 - 02:54 AM

hiiii buddy. thanks so much for your reply. I will try to get back to you asap about your input which I again appreciate your help and time...your private messages are disabled, I was going to ask u something...can u pm me? thx man...!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1