Hello, so i'm back...
I am needing to take a flash form and mirror it ove to a HTML form... take all the UI componets and take the values/strings what have you and place them in to text fields in the HTML form via JS... needless to say i'm having a hell of a time...

My course at this point is to
1.)make each type an array
2.)put arrays in to one long string
3.)out string to js
4.)js split string & outputs to fields
reverse for back to flash...

were one of the big hang ups is at the checkboxes... more to the point the yes no checkboxes... any ideas would be great...

this is what i have...

this puts/removes the checkboxes in an array
Code:
   onEnterFrame(load)
   {
      _global.checkboxArray = new Array();
   
      _global.testIfSelected = function (t) 
      {
         for(i=0;i<checkboxArray.length;i++)
         {
            if(checkboxArray[i]==t)
            {
               return i;
            }
         }
         return -1;
      }
   }
   function postGlobalCbArray():Void {
      var pos=testIfSelected(this.label,this.selected);
   
      if(this.selected == true)
      {      
         if(pos == -1) checkboxArray.push(this.label,this.selected);
      } 
      else 
      {
         if(pos >=0) checkboxArray.splice(pos,1);
      }
      
}
/////////////////////////
//////this is were i think one of the issues is<<<<<<<<<<<<<<<<
//////////////////////////
   function RemoveGlobalCbArray():Void {
      var pos=testIfSelected(this.label,this.selected,this.value);
   
      if(this.selected == true)
      {      
         if(pos == -1) checkboxArray.clear(this.label,this.selected,this.value);
      } 
      else 
      {
         if(pos >=0) checkboxArray.clear(this.label,this.selected,this.value);
      }
      
}
sets the click functions for the array
Code:
   for(j = 0; j < CBtypeArray.length; j++)
   {
      CBtypeArray[j].addEventListener("click",postGlobalCbArray);
   }
function postGlobalCbArrayList():Void {
      for(j = 0; j < CBtypeArray.length; j++)
   {
      CBtypeArray[j].addEventListener("click",postGlobalCbArray);
   }
}
 
function RemoveGlobalCbArrayList():Void {
      for(j = 0; j < CBtypeArray.length; j++)
   {
      CBtypeArray[j].addEventListener("click",RemoveGlobalCbArray);
   }
}
here is the yes no part
Code:
PG_2.prevWork._x = 2000;
function onSelectPerv_EmploYes(checkbox) {
    if(PG_2.Perv_EmploY.selected == true) {
        PG_2.Perv_EmploY.selected = true;
        PG_2.Perv_EmploN.selected = false;
        postGlobalCbArrayList;
        PG_2.prevWork._x = 327.6;
    } else if (PG_2.Perv_EmploN.selected == true){
        PG_2.Perv_EmploN.selected = true;
        PG_2.Perv_EmploY.selected = false;
        RemoveGlobalCbArrayList;
        PG_2.prevWork._x = 2000;
    } else {
        PG_2.Perv_EmploN.selected = false;
        PG_2.Perv_EmploY.selected = false;
        RemoveGlobalCbArrayList;
        PG_2.prevWork._x = 2000;
    }
}
function onSelectPerv_EmploNo(checkbox) {
    if(PG_2.Perv_EmploN.selected == true) {
        PG_2.Perv_EmploY.selected = false;
        PG_2.Perv_EmploN.selected = true;
        RemoveGlobalCbArrayList;
        PG_2.prevWork._x = 2000;
    } else if (PG_2.Perv_EmploY.selected == true){
        PG_2.Perv_EmploN.selected = true;
        PG_2.Perv_EmploY.selected = false;
        PG_2.prevWork._x = 327.6;
        postGlobalCbArrayList;
    } else {
        PG_2.Perv_EmploN.selected = false;
        PG_2.Perv_EmploY.selected = false;
        RemoveGlobalCbArrayList;
        PG_2.prevWork._x = 2000;
    }
}
 
PG_2.Perv_EmploY.addEventListener("click",onSelectPerv_EmploYes);
PG_2.Perv_EmploN.addEventListener("click",onSelectPerv_EmploNo);
so continuing on my train of thought... I figured that it'd be best to try to make the yes no functions into the array style so that I could sort them and keep them in line to make it better to export... well as it goes Iím still having some fundamental problems with arrays... I'm trying to find the reasons why this won't work... and how to fix it... but i just keep coming up dry.... ideas..???

Code:
var YES:Array = [{fId:Number(1), name:PG_2.Perv_EmploY.selected},
                {fId:Number(2), name:PG_2.RelativeEMPLO_Y.selected},
                {fId:Number(3), name:PG_2.EMPLO_Y.selected}];
var NO:Array = [{fId:Number(1), name:PG_2.Perv_EmploN.selected},
                {fId:Number(2), name:PG_2.RelativeEMPLO_N.selected},
                {fId:Number(3), name:PG_2.EMPLO_N.selected}];
var YNobj:Array = [{fId:Number(1), name:PG_2.prevWork.selected},
                    {fId:Number(2), name:null},
                    {fId:Number(3), name:null}];
var YNobjVAL:Array = [{fId:Number(1), "327.6"},
                    {fId:Number(2), "450"},
                    {fId:Number(3), "250"];
 
YES.sortOn("fId", Array.NUMERIC);
NO.sortOn("fId", Array.NUMERIC);
YNobj.sortOn("fId", Array.NUMERIC);
YNobjVAL.sortOn("fId", Array.NUMERIC);
//var YNarray:Array = [{name:YES}, {name:NO}, {name:YNobj}];
trace("And the winners in descending order are: "); 
for(var i:Number=0; i<winOrder.length; i++){ 
trace("name: " + YES[i]); 
trace("name: " + NO[i]);
trace("name: " + YNobj[i]); 
trace("name: " + YNobjVAL[i]);
trace("-----------------------------"); 
}
 
for (var {i:Number=0, j:Number=0, k:Number=0, l:Number=0}; {i<YES.length, j<NO.length, k<YNobj.length, l<YNobjVAL.length}; {i, j, k, l)++){ 
YNobj[k]._x = 2000;
function YES[i](checkbox) {
    if(YES[i].selected == true) {
        YES[i].selected = true;
        NO[j].selected = false;
        postGlobalCbArrayList;
        YNobj[k]._x = YNobjVAL[l];
    } else if (NO[j].selected == true){
        NO[j].selected = true;
        YES[i].selected = false;
        RemoveGlobalCbArrayList;
        YNobj[k]._x = 2000;
    } else {
        NO[j].selected = false;
        YES[i].selected = false;
        RemoveGlobalCbArrayList;
        YNobj[k]._x = 2000;
    }
}
function NO[j](checkbox) {
    if(NO[j].selected == true) {
        YES[i].selected = false;
        NO[j].selected = true;
        RemoveGlobalCbArrayList;
        YNobj[k]._x = 2000;
    } else if (YES[i].selected == true){
        NO[j].selected = true;
        YES[i].selected = false;
        YNobj[k]._x = YNobjVAL[l];
        postGlobalCbArrayList;
    } else {
        NO[j].selected = false;
        YES[i].selected = false;
        RemoveGlobalCbArrayList;
        YNobj[k]._x = 2000;
    }
}
}
YES[i].addEventListener("click",YES[i]);
NO[j].addEventListener("click",NO[j]);

Ideas... could use a little help... i have this form to make and it's coming up soon... i really don't want to do this lol... it's not even my job lol... well thanks again for the help...