home *** CD-ROM | disk | FTP | other *** search
/ Dragon Blade - Wrath of Fire (USA) (Press Kit) / Dragon Blade - Wrath of Fire (USA) (Press Kit).bin / pc / main.swf / scripts / DefineSprite_115_buttonP / frame_1 / DoAction.as
Encoding:
Text File  |  2007-01-01  |  1.0 KB  |  39 lines

  1. overSound = new Sound(this);
  2. overSound.attachSound("btnOver");
  3. loadBar_mc._width = 0;
  4. hitVal = 0;
  5. var Plink;
  6. hit_mc.onRollOver = function()
  7. {
  8.    this.colorTo(16770048,0,"easeOutSine");
  9.    name_txt.colorTo(0,0,"easeOutSine");
  10.    arrow_txt.colorTo(16711680,0,"easeOutSine");
  11.    overSound.start();
  12.    _root.rollOver_txt.html = true;
  13.    _root.rollOver_txt.autoSize = "left";
  14.    _root.rollOver_txt.wordWrap = true;
  15.    _root.rollOver_txt.htmlText = HRLink;
  16. };
  17. hit_mc.onRollOut = function()
  18. {
  19.    if(hitVal == 0)
  20.    {
  21.       this.colorTo(0,0.4,"easeOutSine");
  22.       name_txt.colorTo(16777215,0.4,"easeOutSine");
  23.    }
  24.    else
  25.    {
  26.       this.colorTo(0,0.4,"easeOutSine");
  27.       name_txt.colorTo(16770048,0.4,"easeOutSine");
  28.    }
  29.    arrow_txt.colorTo(16777215,0.4,"easeOutSine");
  30.    _root.rollOver_txt.htmlText = "";
  31. };
  32. hit_mc.onRelease = hit_mc.onReleaseOutside = function()
  33. {
  34.    _root.downloadCount_var = PNum;
  35.    _root.brandEnabler("button" + PNum + "_mc");
  36.    _root.movieText_mc.alphaTo(0,0.3,"easeOutQuad");
  37.    getURL(PLink,"");
  38. };
  39.