home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / bigtruckadventures2.swf / scripts / DefineSprite_332 / frame_1 / DoAction.as
Encoding:
Text File  |  2008-09-04  |  828 b   |  35 lines

  1. _global.graphicsOptSet = [false,true,true,true,true,true];
  2. graphicsOptName = ["Smooth Edges","Parallax BG","","Hill Shading","Dust","Ground Covering"];
  3. this.onEnterFrame = function()
  4. {
  5.    n = 0;
  6.    i = 0;
  7.    while(i < graphicsOptName.length)
  8.    {
  9.       if(graphicsOptName[i] != "")
  10.       {
  11.          _global.graphicsOptSet[i] = this["opt" + n].optCB.checked;
  12.          n++;
  13.       }
  14.       i++;
  15.    }
  16. };
  17. n = 0;
  18. i = 0;
  19. while(i < graphicsOptName.length)
  20. {
  21.    if(graphicsOptName[i] != "")
  22.    {
  23.       if(n > 0)
  24.       {
  25.          opt0.duplicateMovieClip("opt" + n,n + 1);
  26.          this["opt" + n]._y = opt0._y + n * 36;
  27.       }
  28.       this["opt" + n].n = n;
  29.       this["opt" + n].optText.text = graphicsOptName[i];
  30.       this["opt" + n].optCB.checked = _global.graphicsOptSet[i];
  31.       n++;
  32.    }
  33.    i++;
  34. }
  35.