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.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

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!

[flash 8]one tricky array for me

I am needing to take a flash form and mirror it over to an HTML form... take all the UI components and take the values/strings, what have you, and full the corisponding text fields in the HTML form via JS... needless to say Im having a hell of a time...

As of yet my course at this point is to
1.)make each of four component types an array
(PG_1.APP_Email.text <TextInput
PG_1.APP_title.selectedIndex<ComboBox?NotSure
PG_1.APP_SSNoptOUT.Boolean <CheckBox?NS
PG_1.APP_workHis_dg.selectedIndex <dataGrid?NS
PG_1.APP_workdate.selectedIndex <DatePicker?NS all Ive gotten was true false so far)

2.)put arrays in to one long string
      Thinking it should look like(in correspondence to type example above) :
|fid1,email@address.com||fid2,Mr||fid3,Yes||fid4,Job1[name|[Employer1]|Title|[Peed-on]|Wage|[0.99]|]Job2[name|[Employer2]|Title|[Peeing-on]|Wage|[999999999.1]|]||fid5,01/08/2208|

**notes: if skiped
|fid1,null|

3.)out string to js
4.)js split string & outputs to fields
5-8.)reverse for back to flash...

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

Im not even sure if the things Im aiming at is the best way to do this& so Im open to ideas.. what is for sure is that I need to have a flash form be mirrored over to a HTML form when onRelease of btn and  HTML form to Flash onload.  Let me know thanks&
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
/////////////////////////
Start your free trial to view this solution
Question Stats
Zone: Software
Question Asked By: jeremyBass26
Solution Provided By: Roonaan
Participating Experts: 1
Solution Grade: A
Views: 0
Translate:
Loading Advertisement...
05.04.2008 at 10:25PM PDT, ID: 21498255

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.05.2008 at 06:49AM PDT, ID: 21499983

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.05.2008 at 07:04AM PDT, ID: 21500099

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.05.2008 at 10:41PM PDT, ID: 21504972

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.05.2008 at 11:23PM PDT, ID: 21505091

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.05.2008 at 11:29PM PDT, ID: 21505119

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 07:19AM PDT, ID: 21507467

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 01:14PM PDT, ID: 21510634

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 10:13PM PDT, ID: 21513316

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.07.2008 at 03:00PM PDT, ID: 21520721

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.07.2008 at 09:14PM PDT, ID: 21522308

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.07.2008 at 11:48PM PDT, ID: 21522747

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.08.2008 at 08:37AM PDT, ID: 21525652

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 08:01PM PDT, ID: 21537679

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 08:03PM PDT, ID: 21537686

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.10.2008 at 12:16PM PDT, ID: 21540218

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.10.2008 at 02:07PM PDT, ID: 21540481

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.11.2008 at 04:24AM PDT, ID: 21542124

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.11.2008 at 08:56AM PDT, ID: 21542736

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.11.2008 at 10:34AM PDT, ID: 21543012

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.11.2008 at 01:24PM PDT, ID: 21543383

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.11.2008 at 02:26PM PDT, ID: 21543550

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.11.2008 at 07:38PM PDT, ID: 21544393

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.12.2008 at 02:20AM PDT, ID: 21545480

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.12.2008 at 07:07AM PDT, ID: 21547078

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628