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";
}