20
Nov
08

Stepping through an FxHSlider control in Flex Gumbo

The following example shows how you can change the value in a Flex Gumbo FxHSlider component by using the step() method.

Full code after the jump.

View MXML

<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/11/20/stepping-through-an-fxhslider-control-in-flex-gumbo/ -->
<FxApplication name="FxHSlider_step_test"
        xmlns="http://ns.adobe.com/mxml/2009">
    <layout>
        <BasicLayout />
    </layout>

    <VGroup horizontalCenter="0" verticalCenter="0">
        <FxHSlider id="hSlider" width="100%" />
        <Label text="value = {hSlider.value}" />
        <HGroup>
            <FxButton id="stepDownButton"
                    label="step down"
                    autoRepeat="true"
                    buttonDown="hSlider.step(false);" />
            <FxButton id="stepUpButton"
                    label="step up"
                    autoRepeat="true"
                    buttonDown="hSlider.step(true);" />
        </HGroup>
    </VGroup>

</FxApplication>

View source is enabled in the following example.


2 Responses to “Stepping through an FxHSlider control in Flex Gumbo”


  1. 1 M Nov 20th, 2008 at 3:11 pm

    I hate to be “that guy”, but I have a Flex example I’d like to share with you so you can post it. I cannot for the life of me figure out how to contact you, could you email me (and then nuke this comment). Thanks Peter.

  2. 2 cssflex Nov 21st, 2008 at 6:44 pm

Leave a Reply

This blog is terrible at eating HTML tags. If you plan on posting code/XML, please escape your "<" characters as "&lt;" and your ">" characters as "&gt;".




Badge Farm

  • Powered by Redoable 1.2
  • Cornify
  • Feeds burnt by Feedburner
  • Feed