/flas/src/Fl_Button14.as

https://bitbucket.org/HopeSky/mars_nd2d · ActionScript · 26 lines · 14 code · 8 blank · 4 comment · 0 complexity · b28824bc80aa740d950bbf81abd12b81 MD5 · raw file

  1. package
  2. {
  3. public class Fl_Button14 extends Fl_Button
  4. {
  5. public function Fl_Button14()
  6. {
  7. // constructor code
  8. }
  9. /**
  10. * 设置标签的位置和大小
  11. */
  12. override protected function _setLabelPos():void
  13. {
  14. super._setLabelPos();
  15. this["txtLabel"].y = (m_nHeight - this["txtLabel"].height ) / 2+3;
  16. }
  17. }
  18. }