home *** CD-ROM | disk | FTP | other *** search
Text File | 2003-12-22 | 2.6 KB | 159 lines | [TEXT/ttxt] |
- on (release) {
-
- _root.guessCount+=1;
-
- _root.thisGuess=false;
-
- _root.nameSelected = _root.namelist.getSelectedItem().label;
-
- for (i=0; i<=8; i++) {
-
- if(_root.currentGuess[i] == _root.nameSelected){
-
- _root.nextFrame();
-
- _root.thisGuess=true;
-
- }
-
- }
-
- if(_root.thisGuess == false){
-
- _root.message="No, not "+_root.nameSelected;
-
- for (k=0; k<=8; k++) {
-
- if (myArraya[k] == _root.nameSelected && _root.head1._visible==true) {
-
- _root.head1._visible=false;
-
- _root.head1InPlay=false;
-
- }
-
- if (myArrayb[k] == _root.nameSelected && _root.head2._visible==true) {
-
- _root.head2._visible=false;
-
- _root.head2InPlay=false;
-
- }
-
- if (myArrayc[k] == _root.nameSelected && _root.head3._visible==true) {
-
- _root.head3._visible=false;
-
- _root.head3InPlay=false;
-
- }
-
- if (myArrayd[k] == _root.nameSelected && _root.head4._visible==true) {
-
- _root.head4._visible=false;
-
- _root.head4InPlay=false;
-
- }
-
- if (myArraye[k] == _root.nameSelected && _root.head5._visible==true) {
-
- _root.head5._visible=false;
-
- _root.head5InPlay=false;
-
- }
-
- if (myArrayf[k] == _root.nameSelected && _root.head6._visible==true) {
-
- _root.head6._visible=false;
-
- _root.head6InPlay=false;
-
- }
-
- if (myArrayg[k] == _root.nameSelected && _root.head7._visible==true) {
-
- _root.head7._visible=false;
-
- _root.head7InPlay=false;
-
- }
-
- if (myArrayh[k] == _root.nameSelected && _root.head8._visible==true) {
-
- _root.head8._visible=false;
-
- _root.head8InPlay=false;
-
- }
-
- if (myArrayi[k] == _root.nameSelected && _root.head9._visible==true) {
-
- _root.head9._visible=false;
-
- _root.head9InPlay=false;
-
- }
-
- if (myArrayj[k] == _root.nameSelected && _root.head10._visible==true) {
-
- _root.head10._visible=false;
-
- _root.head10InPlay=false;
-
- }
-
- if (myArrayk[k] == _root.nameSelected && _root.head11._visible==true) {
-
- _root.head11._visible=false;
-
- _root.head11InPlay=false;
-
- }
-
- if (myArrayl[k] == _root.nameSelected && _root.head12._visible==true) {
-
- _root.head12._visible=false;
-
- _root.head12InPlay=false;
-
- }
-
- if (myArraym[k] == _root.nameSelected && _root.head13._visible==true) {
-
- _root.head13._visible=false;
-
- _root.head13InPlay=false;
-
- }
-
- if (myArrayn[k] == _root.nameSelected && _root.head14._visible==true) {
-
- _root.head14._visible=false;
-
- _root.head14InPlay=false;
-
- }
-
- if (myArrayo[k] == _root.nameSelected && _root.head15._visible==true) {
-
- _root.head15._visible=false;
-
- _root.head15InPlay=false;
-
- }
-
- if (myArrayp[k] == _root.nameSelected && _root.head16._visible==true) {
-
- _root.head16._visible=false;
-
- _root.head16InPlay=false;
-
- }
-
- }
-
- }
-
- }