home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / FishyHop.swf / scripts / DefineSprite_5 / frame_1 / DoAction.as
Encoding:
Text File  |  2008-09-05  |  507 b   |  32 lines

  1. function Replace()
  2. {
  3.    if(sVariable.length == 0)
  4.    {
  5.       tTxt.text = sTxt;
  6.    }
  7.    else
  8.    {
  9.       tTxt.variable = sVariable;
  10.    }
  11.    tTxt.autoSize = autoSize;
  12.    if(autoSize == "right")
  13.    {
  14.       tTxt._x = - Math.floor(tTxt._width);
  15.    }
  16.    else if(autoSize == "center")
  17.    {
  18.       tTxt._x = - Math.floor(tTxt._width / 2);
  19.    }
  20.    else
  21.    {
  22.       tTxt._x = 0;
  23.    }
  24. }
  25. var sTxt;
  26. var bBmp;
  27. var bMultiline;
  28. var autoSize;
  29. var sVariable;
  30. Replace();
  31. this.cacheAsBitmap = bBmp;
  32.