home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší České Hry / Nej české hry.iso / hry / vesmirna becherovka / 2004 Vesmírná Becherovka / Becherovka.exe / scripts / DefineButton2_862 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2004-09-30  |  1.5 KB  |  46 lines

  1. on(release){
  2.    if(_root.s.Control and !copy)
  3.    {
  4.       _root.s.HideSipka();
  5.       this._visible = false;
  6.       this.duplicateMovieClip("DObject",13300);
  7.       _root.s.DObject.swapDepths(0);
  8.       _root.s.DObject.gotoAndStop("pick");
  9.       _root.s.DObject.copy = true;
  10.       _root.s.DObject.origin = this;
  11.       startDrag(_root.s.DObject,0);
  12.    }
  13.    if(copy)
  14.    {
  15.       stopDrag();
  16.       if(eval(this._droptarget) != undefined and eval(this._droptarget) == _root.s.PPytlik)
  17.       {
  18.          s = new Sound(this);
  19.          s.attachSound("SPytlik");
  20.          s.start(0,1);
  21.          _root.s.PPrsten.gotoAndStop("pick");
  22.          _root.s.PPytlik.gotoAndStop("pick2");
  23.          _root.s.Speak(_root.s.hero,"N{invalid_utf8=236}kdo vys{invalid_utf8=225}l prsten!","F","There was ring inside");
  24.       }
  25.       if(eval(this._droptarget) != undefined and eval(this._droptarget) == _root.s.back1.panel and _root.zahral)
  26.       {
  27.          _root.s.what = _root.s.hero.name;
  28.          _root.s.cil = "s5_panel";
  29.          _root.s.HideObj();
  30.          _root.s.hero.gotoAndPlay("navrat");
  31.       }
  32.       if(eval(this._droptarget) != undefined and eval(this._droptarget) == _root.s.back5.chram and !_root.propadl)
  33.       {
  34.          _root.s.what = _root.s.hero.name;
  35.          _root.s.cil = "s7_chram";
  36.          _root.s.uses = "nuz";
  37.          _root.s.HideObj();
  38.          _root.s.hero.gotoAndPlay("navrat");
  39.       }
  40.       this._visible = false;
  41.       origin._visible = true;
  42.       _root.s.ShowSipka();
  43.       _root.s.DObject.removeMovieClip();
  44.    }
  45. }
  46.