home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / miffyrecipe.swf / scripts / DefineSprite_287 / frame_72 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  760 b   |  33 lines

  1. if(payoff_index < 4)
  2. {
  3.    if(num_fruits == 1)
  4.    {
  5.       payoff_index++;
  6.       if(0 < _root.salad_got[payoff_index])
  7.       {
  8.          num_fruits = _root.salad_got[payoff_index];
  9.          _root.salad_menu.got_fruit = num_fruits;
  10.          _root.salad_menu.which_fruit = _root.salad_things[payoff_index];
  11.          var menu_label = num_fruits + _root.salad_things[payoff_index];
  12.          _root.salad_menu.gotoAndStop(menu_label);
  13.          _root.salad_menu.minus_one();
  14.       }
  15.       else
  16.       {
  17.          payoff_index = 99;
  18.          _parent.audioSalad.play();
  19.       }
  20.    }
  21.    else
  22.    {
  23.       _parent.salad_menu.minus_one();
  24.       num_fruits -= 1;
  25.    }
  26.    gotoAndPlay(12);
  27. }
  28. else
  29. {
  30.    payoff_index++;
  31.    _parent.audioSalad.play();
  32. }
  33.