Advertisement
Advertisement
| 05.03.2008 at 08:27PM PDT, ID: 23374496 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: |
////this puts/removes the checkboxes in an array
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
///////////////////////////////////
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
//////////////////////////////////////
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..???*////////////////////////////////////////////////////////////////////////////////////
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);
//older thought on array//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]);
/////////////////////////////////////the js so far///
function formSend() {
var textArr = new Array();
for (var i=0; i < fields.length; i++) {
textArr[i] = document.htmlForm.elements["m7feu_input_" + fields[i]].value;
}
getFlashMovie("v2.d").sendTextToFlash(textArr.join"||");
}
////////////////////////////////
haven't got that far yet as I'v not traced off the right thing yet, but it's a start
/////////////////////////
|