home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / rooftopmadness.swf / scripts / DefineSprite_162 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-05-23  |  606 b   |  29 lines

  1. hKidsScale = _level0.happyKids / 40 * 100;
  2. vKidsScale = _level0.unhappyKids / 40 * 100;
  3. setProperty("hScale", _xscale, hKidsScale);
  4. setProperty("uScale", _xscale, vKidsScale);
  5. if(_level0.happyKids >= 40 && _level0.santaLevel == 1)
  6. {
  7.    tellTarget("_level0")
  8.    {
  9.       gotoAndStop("startlevB");
  10.       play();
  11.    }
  12. }
  13. else if(_level0.happyKids >= 40 && _level0.santaLevel == 2)
  14. {
  15.    tellTarget("_level0")
  16.    {
  17.       gotoAndStop("checkscore");
  18.       play();
  19.    }
  20. }
  21. if(_level0.unhappyKids >= 40)
  22. {
  23.    tellTarget("_level0")
  24.    {
  25.       gotoAndStop("checkscore");
  26.       play();
  27.    }
  28. }
  29.