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

flex 4 scroller skin自定义 1

发布时间:2020-12-15 04:11:07 所属栏目:百科 来源:网络整理
导读:Scroller.verticalScrollbar 实际上是由4部分构成, thumb: 拖动条 (对应的类为spark.components.Button) track: 拖动条下面的那个轨道 (对应的类为spark.components.Button) decrementButton: 向上箭头按钮(对应的类为spark.components.Button) increment


Scroller.verticalScrollbar 实际上是由4部分构成,
thumb: 拖动条 (对应的类为spark.components.Button)
track: 拖动条下面的那个轨道 (对应的类为spark.components.Button)
decrementButton: 向上箭头按钮(对应的类为spark.components.Button)
incrementButton: 向下箭头按钮(对应的类为spark.components.Button)

对整个verticalScrollbar我们需要一个mxml来定义其皮肤, 里面每个部分也分别需要一个mxml来定义皮肤,那么我们一共需要5个mxml文件

假设我们现在想改变右边verticalScrollbar的样子, 并且已经准备好了所需要的图片:
up.png: 向上箭头的图片
down.png: 向下箭头的图片
thumb.png: 拖动条的图片



转载来自于:

http://www.swfdiy.com/?p=660

(编辑:李大同)

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

    推荐文章
      热点阅读