home *** CD-ROM | disk | FTP | other *** search
/ Champak 54 / Vol 54.iso / games / turttleo.swf / scripts / DefineSprite_130_ButtonStartGame / frame_1 / DoAction.as
Encoding:
Text File  |  2007-10-01  |  394 b   |  26 lines

  1. var buttonText;
  2. var OnClick;
  3. this.hitArea = mcHint;
  4. mcHint._visible = false;
  5. this.onRollOver = function()
  6. {
  7.    gotoAndStop(3);
  8. };
  9. this.onRollOut = function()
  10. {
  11.    gotoAndStop(2);
  12. };
  13. this.onPress = function()
  14. {
  15.    Helper.PlaySound("soundMenuHit");
  16.    gotoAndStop(4);
  17. };
  18. this.onRelease = function()
  19. {
  20.    if(OnClick != undefined)
  21.    {
  22.       OnClick(this);
  23.    }
  24. };
  25. stop();
  26.