home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Puzzle / Easter_Eggs.swf / scripts / __Packages / com / novelgames / flashgames / commonAS2 / NewTextField.as < prev    next >
Text File  |  2008-09-04  |  2KB  |  91 lines

  1. class com.novelgames.flashgames.commonAS2.NewTextField extends TextField
  2. {
  3.    function NewTextField()
  4.    {
  5.       super();
  6.    }
  7.    function set x(x)
  8.    {
  9.       this._x = x;
  10.    }
  11.    function get x()
  12.    {
  13.       return this._x;
  14.    }
  15.    function set y(y)
  16.    {
  17.       this._y = y;
  18.    }
  19.    function get y()
  20.    {
  21.       return this._y;
  22.    }
  23.    function set rotation(rotation)
  24.    {
  25.       this._rotation = rotation;
  26.    }
  27.    function get rotation()
  28.    {
  29.       return this._rotation;
  30.    }
  31.    function set visible(visible)
  32.    {
  33.       this._visible = visible;
  34.    }
  35.    function get visible()
  36.    {
  37.       return this._visible;
  38.    }
  39.    function set alpha(alpha)
  40.    {
  41.       this._alpha = alpha * 100;
  42.    }
  43.    function get alpha()
  44.    {
  45.       return this._alpha / 100;
  46.    }
  47.    function get width()
  48.    {
  49.       return this._width;
  50.    }
  51.    function set width(width)
  52.    {
  53.       this._width = width;
  54.    }
  55.    function get height()
  56.    {
  57.       return this._height;
  58.    }
  59.    function set height(height)
  60.    {
  61.       this._height = height;
  62.    }
  63.    function set scrollV(scrollV)
  64.    {
  65.       this.scroll = scrollV;
  66.    }
  67.    function get scrollV()
  68.    {
  69.       return this.scroll;
  70.    }
  71.    function set maxScrollV(maxScrollV)
  72.    {
  73.       this.maxscroll = maxScrollV;
  74.    }
  75.    function get maxScrollV()
  76.    {
  77.       return this.maxscroll;
  78.    }
  79.    function setTextFormat(textFormat, beginIndex, endIndex)
  80.    {
  81.       if(beginIndex == undefined || endIndex == undefined)
  82.       {
  83.          super.setTextFormat(textFormat);
  84.       }
  85.       else
  86.       {
  87.          super.setTextFormat(beginIndex,endIndex,textFormat);
  88.       }
  89.    }
  90. }
  91.