<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Programmatically positioning tick marks on a slider control</title>
	<link>http://blog.flexexamples.com/2007/11/03/programmatically-positioning-tick-marks-on-a-slider-control/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Tue, 06 Jan 2009 11:09:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: FlexTutor</title>
		<link>http://blog.flexexamples.com/2007/11/03/programmatically-positioning-tick-marks-on-a-slider-control/#comment-17303</link>
		<author>FlexTutor</author>
		<pubDate>Wed, 10 Dec 2008 12:20:36 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/03/programmatically-positioning-tick-marks-on-a-slider-control/#comment-17303</guid>
		<description>@Dan

I think you will find your answer on this post here:
http://www.flextutor.org/flex-tips-suggestions/custom-tickinterval-and-snapinterval-in-a-flex-slider/</description>
		<content:encoded><![CDATA[<p>@Dan</p>
<p>I think you will find your answer on this post here:<br />
<a href="http://www.flextutor.org/flex-tips-suggestions/custom-tickinterval-and-snapinterval-in-a-flex-slider/" rel="nofollow">http://www.flextutor.org/flex-tips-suggestions/custom-tickinterval-and-snapinterval-in-a-flex-slider/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: McKensy</title>
		<link>http://blog.flexexamples.com/2007/11/03/programmatically-positioning-tick-marks-on-a-slider-control/#comment-11837</link>
		<author>McKensy</author>
		<pubDate>Fri, 11 Apr 2008 15:50:01 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/03/programmatically-positioning-tick-marks-on-a-slider-control/#comment-11837</guid>
		<description>Is ther ea way tos et custom icons instead of ticks? :S I'm trying to figure it but I'm sorry I'm unable to do it... thanks in advance</description>
		<content:encoded><![CDATA[<p>Is ther ea way tos et custom icons instead of ticks? :S I&#8217;m trying to figure it but I&#8217;m sorry I&#8217;m unable to do it&#8230; thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/11/03/programmatically-positioning-tick-marks-on-a-slider-control/#comment-3909</link>
		<author>peterd</author>
		<pubDate>Tue, 06 Nov 2007 01:46:23 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/03/programmatically-positioning-tick-marks-on-a-slider-control/#comment-3909</guid>
		<description>Dan,

This seems a bit weird, but I think it does what you're looking for:
&lt;pre class="code"&gt;
&#60;?xml version="1.0" encoding="utf-8"?&#62;
&#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&#62;

    &#60;mx:Script&#62;
        &#60;![CDATA[
            import mx.events.SliderEvent;

            private function slider_change(evt:SliderEvent):void {
                if (evt.value &#62; 0) {
                    slider.minimum = 0;
                    slider.value = evt.value - 1;
                } else {
                    slider.minimum = 1;
                    slider.value = 1;
                }
            }
        ]]&#62;
    &#60;/mx:Script&#62;

    &#60;mx:HSlider id="slider"
            minimum="1"
            maximum="100"
            value="1"
            snapInterval="5"
            labels="[1,25,50,75,100]"
            liveDragging="true"
            dataTipPrecision="0"
            change="slider_change(event);" /&#62;

&#60;/mx:Application&#62;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Dan,</p>
<p>This seems a bit weird, but I think it does what you&#8217;re looking for:</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.events.SliderEvent;

            private function slider_change(evt:SliderEvent):void {
                if (evt.value &gt; 0) {
                    slider.minimum = 0;
                    slider.value = evt.value - 1;
                } else {
                    slider.minimum = 1;
                    slider.value = 1;
                }
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:HSlider id="slider"
            minimum="1"
            maximum="100"
            value="1"
            snapInterval="5"
            labels="[1,25,50,75,100]"
            liveDragging="true"
            dataTipPrecision="0"
            change="slider_change(event);" /&gt;

&lt;/mx:Application&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://blog.flexexamples.com/2007/11/03/programmatically-positioning-tick-marks-on-a-slider-control/#comment-3903</link>
		<author>Dan</author>
		<pubDate>Mon, 05 Nov 2007 20:03:40 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/03/programmatically-positioning-tick-marks-on-a-slider-control/#comment-3903</guid>
		<description>is there a way to progromatically set the snap interval.  For example I want to have the slider have a minimum value of 1, but snap to multiples of 5?</description>
		<content:encoded><![CDATA[<p>is there a way to progromatically set the snap interval.  For example I want to have the slider have a minimum value of 1, but snap to multiples of 5?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
