/flas/src/Fl_SelecteFlagButton.as

https://bitbucket.org/HopeSky/mars_nd2d · ActionScript · 38 lines · 28 code · 6 blank · 4 comment · 1 complexity · 6dc1862c12ed9532c45d284325ef02c9 MD5 · raw file

  1. package
  2. {
  3. public class Fl_SelecteFlagButton extends Fl_Button
  4. {
  5. /**
  6. * 标签
  7. */
  8. [Inspectable(defaultValue="")]
  9. override public function set label(str:String):void
  10. {
  11. this["txtLabel"].text = str;
  12. }
  13. override public function get label():String
  14. {
  15. return this["txtLabel"].text;
  16. }
  17. public function Fl_SelecteFlagButton()
  18. {
  19. // constructor code
  20. super();
  21. this["txtLabel"].text = "";
  22. }
  23. override protected function _layout():void
  24. {
  25. super._layout();
  26. if (isLivePreview)
  27. {
  28. this["outState"].alpha = 1;
  29. }
  30. }
  31. }
  32. }