home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Interface / it.dig / scripts / DefineSprite_364 / frame_3 / DoAction.as
Encoding:
Text File  |  2008-08-19  |  1.2 KB  |  39 lines

  1. stop();
  2. executar_btn.setStyle("fontFamily","Verdana");
  3. executar_btn.setStyle("fontWeight","bold");
  4. executar_btn.setStyle("color","#FFFFFF");
  5. executar_btn.enabled = true;
  6. onEnterFrame = function()
  7. {
  8.    var _loc3_ = _root.descri.caminho.text;
  9.    _loc3_ = _loc3_.substring(_loc3_.length - 3,_loc3_.length);
  10.    if(this.comando.text == "shellopen" and _loc3_ != "msi")
  11.    {
  12.       _root.descri.executar_btn.label = "ABRIR";
  13.    }
  14.    else if(this.comando.text == "LINK" or this.comando.text == "link")
  15.    {
  16.       _root.descri.executar_btn.label = "ABRIR URL";
  17.    }
  18.    else if(this.comando.text == "PDF" or this.comando.text == "pdf")
  19.    {
  20.       _root.descri.executar_btn.label = "ABRIR PDF";
  21.    }
  22.    else if(this.comando.text == "DESCOMPACTAR")
  23.    {
  24.       _root.descri.executar_btn.label = "DESCOMPACTAR";
  25.    }
  26.    else if(this.comando.text == "EXECUTAR")
  27.    {
  28.       _root.descri.executar_btn.label = "EXECUTAR";
  29.    }
  30.    else if(this.comando.text == "INSTALAR")
  31.    {
  32.       _root.descri.executar_btn.label = "INSTALAR";
  33.    }
  34.    else if(this.comando.text == "run.app" or _loc3_ == "msi")
  35.    {
  36.       _root.descri.executar_btn.label = "INSTALAR";
  37.    }
  38. };
  39.