home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / Beteroid.swf / scripts / DefineSprite_60 / frame_2 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  1.0 KB  |  40 lines

  1. function actu_d(desp, o_select)
  2. {
  3.    if(desp == 3)
  4.    {
  5.       if(o_select == 1)
  6.       {
  7.          _root.s_null = new Sound();
  8.          _root.s_null.setVolume(100);
  9.       }
  10.       if(o_select == 2)
  11.       {
  12.          _root.s_null = new Sound();
  13.          _root.s_null.setVolume(0);
  14.       }
  15.    }
  16.    set("_root.config" + desp,o_select);
  17. }
  18. function cierra_desplegables(id)
  19. {
  20.    cd = 1;
  21.    while(n_desp >= cd)
  22.    {
  23.       if(cd != id)
  24.       {
  25.          with(eval("despliega" + cd))
  26.          {
  27.             gotoAndStop(1);
  28.          }
  29.       }
  30.       cd++;
  31.    }
  32. }
  33. n_desp = 6;
  34. despliega1.contenido = new Array("Q u a l i t y","3","3","L o w","M e d i u m","H i g h");
  35. despliega2.contenido = new Array("G a m e","2","1","N o r m a l","P r a c t i c e");
  36. despliega3.contenido = new Array("S o u n d s","2","1","O n","O f f");
  37. despliega4.contenido = new Array("L o o p","2","1","O n","O f f");
  38. despliega5.contenido = new Array("f p s","2","2","View","Hide");
  39. despliega6.contenido = new Array("Auto Quality","2","1","O n","O f f");
  40.