home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 January / CHIP012004.ISO / misc / tonline / Animation / swf / anmelden2_0.swf / scripts / frame_14 / DoAction.as < prev   
Encoding:
Text File  |  2003-05-08  |  1.6 KB  |  49 lines

  1. _level0.Sterntexte = _root.var_box.Sterntext;
  2. var i = 1;
  3. while(i <= 6)
  4. {
  5.    this["kom" + i]._visible = false;
  6.    i++;
  7. }
  8. s = 1;
  9. var i = 1;
  10. while(i <= 6)
  11. {
  12.    if(_root.var_box["tarif" + i] == "true")
  13.    {
  14.       this["tarifcontainer" + i + "_on"].loadMovie(picpath + "tarif_on.jpg");
  15.       this["tarifcontainer" + i + "_off"].loadMovie(picpath + "tarif_off.jpg");
  16.       var j = 1;
  17.       while(j <= 12)
  18.       {
  19.          if(_root.var_box["tarif" + i + "z"] == _root.var_box["Tarif" + j + "_B"])
  20.          {
  21.             this["txTarif" + i + ".Tarif" + i + "_K"] = _root.var_box["Tarif" + j + "_K"];
  22.             this["txTarif" + i + ".Tarif" + i + "_B"] = _root.var_box["Tarif" + j + "_B"];
  23.             this["txTarif" + i + ".Tarif" + i + "_P"] = _root.var_box["Tarif" + j + "_P"];
  24.             if(this["txTarif" + i + ".Tarif" + i + "_B"] != "by call")
  25.             {
  26.                _level0.Sterntexte = _level0.Sterntexte add s add ") " add _root.var_box["Tarif" + j + "_S"];
  27.                this["txTarif" + i + ".Stern"] = "*" add s add ")";
  28.                s += 1;
  29.             }
  30.             else
  31.             {
  32.                this["txTarif" + i + ".Stern"] = "";
  33.             }
  34.             this["kom" + i + ".TarifBez"] = _root.var_box["Tarif" + j + "_B"];
  35.             this["kom" + i + ".TarifInfo"] = _root.var_box["Tarif" + j + "_I"];
  36.          }
  37.          j++;
  38.       }
  39.    }
  40.    else
  41.    {
  42.       this["tarifcontainer" + i + "_on"]._visible = false;
  43.       this["tarifcontainer" + i + "_off"]._visible = false;
  44.       this["button" + i].enabled = false;
  45.       this["txTarif" + i]._visible = false;
  46.    }
  47.    i++;
  48. }
  49.