小小菜鸟的web菜园子

web开发学习。好记性不如烂笔头。每天进步一点点!

导航

设置HSlider控件提示点的长度。

HSlider控件的tickLength样式学习.
示例:

代码:
<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/06/04/setting-the-tick-length-on-a-slider-control-in-flex/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout
="vertical"
        verticalAlign
="middle"
        backgroundColor
="white">

    
<mx:HSlider id="slider"
            minimum
="0"
            maximum
="10"
            value
="3"
            liveDragging
="true"
            tickLength
="{slider.value}"
            tickInterval
="1" />

</mx:Application>

posted on 2008-06-10 10:57  『小小菜鸟』  阅读(291)  评论(0编辑  收藏  举报