加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

flex 学习笔记 as自定义组件(四)

发布时间:2020-12-15 04:56:22 所属栏目:百科 来源:网络整理
导读:actionscript自定义组件,定义的属性赋默认值: /**定义标尺的横纵样式*/ ? ????????private?var?_type:String; ? ???????? ? ????????[Inspectable( enumeration = "vertical,horizontal" )] ? ????????/**定义标尺的横纵样式*/ ? ????????public?function?

actionscript自定义组件,定义的属性赋默认值:

 
 
  1. /**定义标尺的横纵样式*/ ?
  2. ????????private?var?_type:String; ?
  3. ???????? ?
  4. ????????[Inspectable(enumeration="vertical,horizontal")] ?
  5. ????????/**定义标尺的横纵样式*/ ?
  6. ????????public?function?get?type():String ?
  7. ????????{ ?
  8. ????????????return?_type; ?
  9. ????????} ?
  10. ?
  11. ????????/** ?
  12. ?????????*?@private ?
  13. ?????????*/ ?
  14. ????????public?function?set?type(value:String):void ?
  15. ????????{ ?
  16. ????????????_type?=?value; ?
  17. ????????} ?

效果:

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读