home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 October / CHIP102003.ISO / t-pay / t-pay.swf / scripts / DefineSprite_361 / frame_1 / DoAction.as
Encoding:
Text File  |  2002-12-18  |  474 b   |  26 lines

  1. function activateButton()
  2. {
  3.    colorObj = new Color(text);
  4.    colorObj.setRGB(16777215);
  5.    _level0.loadFile(page,file);
  6.    var i = 1;
  7.    while(i <= 6)
  8.    {
  9.       _parent["button_" + i].gotoAndStop(1);
  10.       i++;
  11.    }
  12.    gotoAndStop(2);
  13. }
  14. if(_level0.currentMovie == page + "_" + file)
  15. {
  16.    colorObj = new Color(text);
  17.    colorObj.setRGB(16777215);
  18.    gotoAndStop(2);
  19. }
  20. else
  21. {
  22.    colorObj = new Color(text);
  23.    colorObj.setRGB(4276545);
  24.    stop();
  25. }
  26.