home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2002 April / maximum-cd-2002-04.iso / Software / Apps / gmax / gmaxinst.exe / gmaxsetup11.cab / gMaterialEDtabs.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2001-09-12  |  1.5 KB  |  73 lines

  1. function fSelectTab(selection)
  2. {
  3.    if(selection == "Diffuse")
  4.    {
  5.       tabs.select(tabs.diffuse);
  6.    }
  7.    else if(selection == "Ambient")
  8.    {
  9.       tabs.select(tabs.ambient);
  10.    }
  11.    else if(selection == "Specular")
  12.    {
  13.       tabs.select(tabs.specularColor);
  14.    }
  15.    else if(selection == "SpecularLevel")
  16.    {
  17.       tabs.select(tabs.specularLevel);
  18.    }
  19.    else if(selection == "Glossiness")
  20.    {
  21.       tabs.select(tabs.glossiness);
  22.    }
  23.    else if(selection == "SelfIllum")
  24.    {
  25.       tabs.select(tabs.selfIllum);
  26.    }
  27.    else if(selection == "Opacity")
  28.    {
  29.       tabs.select(tabs.opacity);
  30.    }
  31.    else if(selection == "Bump")
  32.    {
  33.       tabs.select(tabs.bump);
  34.    }
  35. }
  36. function pos(x, y)
  37. {
  38.    this.x = x;
  39.    this.y = y;
  40. }
  41. distanceDrop = 25;
  42. widthDrop = 8;
  43. heightDrop = 8;
  44. colorDiffuse = null;
  45. mapDiffuse = null;
  46. lockAmbient = null;
  47. colorAmbient = null;
  48. mapAmbient = null;
  49. lockSpecular = null;
  50. colorSpecular = null;
  51. mapSpecular = null;
  52. amountSpecularLevel = null;
  53. mapSpecularLevel = null;
  54. amountGlossiness = null;
  55. mapGlossiness = null;
  56. colorSelfIllum = null;
  57. amountSelfIllum = null;
  58. mapSelfIllum = null;
  59. amountOpacity = null;
  60. mapOpacity = null;
  61. mapBump = null;
  62. tabSelect = null;
  63. enableDrag = null;
  64. colorBackground = null;
  65. colorText = null;
  66. colorSelected = null;
  67. colorUnselected = null;
  68. drag = {enabled:true,tab:null,icon:null,x:0,y:0};
  69. vDrop = new Array(new pos(0,0),new pos(0,0),new pos(0,0),new pos(0,0));
  70. dragColor._visible = false;
  71. dragMap._visible = false;
  72. dragTarget._visible = false;
  73.