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_701 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2004-09-30  |  1.1 KB  |  34 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.back2.plavcik and !_root.vioakci))
  17.       {
  18.          _root.s.Speak(_root.s.hero.hero,"Pro{invalid_utf8=232} bych to d{invalid_utf8=236}lal","F","Why should I do that");
  19.       }
  20.       if(eval(this._droptarget) != undefined and (eval(this._droptarget) == _root.s.back2.plavcik and _root.vioakci))
  21.       {
  22.          _root.s.what = _root.s.hero.name;
  23.          _root.s.cil = "s9_plavcik";
  24.          _root.s.uses = "pozvanka";
  25.          _root.s.HideObj();
  26.          _root.s.hero.gotoAndPlay("navrat");
  27.       }
  28.       this._visible = false;
  29.       origin._visible = true;
  30.       _root.s.ShowSipka();
  31.       _root.s.DObject.removeMovieClip();
  32.    }
  33. }
  34.