home *** CD-ROM | disk | FTP | other *** search
/ Champak 108 / jogo-disk-108.iso / Games / steppenwolf_1_chapter_4.swf / scripts / DefineSprite_934 / frame_3 / DoAction.as
Text File  |  2010-05-15  |  897b  |  32 lines

  1. if(0 < eval("/Variables:ScrollMail"))
  2. {
  3.    if(getProperty("../MailEnsemble", _Y) < getProperty("../MailHaut", _Y) - eval("/Variables:ScrollMail"))
  4.    {
  5.       setProperty("../MailEnsemble", _Y, getProperty("../MailEnsemble", _Y) + eval("/Variables:ScrollMail"));
  6.    }
  7.    else
  8.    {
  9.       setProperty("../MailEnsemble", _Y, getProperty("../MailHaut", _Y));
  10.       tellTarget("../../RoueScroll")
  11.       {
  12.          gotoAndStop(1);
  13.       }
  14.    }
  15. }
  16. if(eval("/Variables:ScrollMail") < 0)
  17. {
  18.    if(getProperty("../MailBas", _Y) + eval("/Variables:ScrollMail") < getProperty("../MailEnsemble", _Y) + getProperty("../MailEnsemble", _height))
  19.    {
  20.       setProperty("../MailEnsemble", _Y, getProperty("../MailEnsemble", _Y) + eval("/Variables:ScrollMail"));
  21.    }
  22.    else
  23.    {
  24.       tellTarget("../../RoueScroll")
  25.       {
  26.          gotoAndStop(1);
  27.       }
  28.    }
  29. }
  30. prevFrame();
  31. play();
  32.