Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6903417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:55:23+00:00 2026-05-27T07:55:23+00:00

I’m trying to use an image (embedded) for the thumb on my Spark slider

  • 0

I’m trying to use an image (embedded) for the thumb on my Spark slider component. This should be straightforward — I know what to do in mx — but I haven’t been able to find what the Spark syntax is.

I don’t even need states (up, down, over, etc) since this is going on a mobile app.

Does anyone know?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:55:23+00:00Added an answer on May 27, 2026 at 7:55 am

    Your Spark Slider requires a custom skin class, and that skin requires a SliderThumbSkin for the thumb.

    Spark Slider:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx">
    
        <s:VSlider skinClass="SliderSkin" />
    
    </s:Application>
    

    SliderSkin – Spark Slider’s skin class requires a thumb skin:

    <!--- The default skin class is VSliderThumbSkin. 
            @copy spark.components.supportClasses.TrackBase#thumb
            @see spark.skins.spark.VSliderThumbSkin -->
    <s:Button id="thumb" left="0" right="0" width="11" height="11"
              tabEnabled="false"
              skinClass="SliderThumbSkin" />
    

    This is the only change to the VSliderSkin. If you need the entire skin code, it is below in the Additional Information section of this answer.

    SliderThumbSkin – Thumb skin’s button thumb requires skin for images:

    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkButtonSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
                       xmlns:s="library://ns.adobe.com/flex/spark"
                       xmlns:fb="http://ns.adobe.com/flashbuilder/2009"
                       minWidth="21"
                       minHeight="21"
                       alpha.disabled="0.5">
    
        <fx:Metadata>
            <![CDATA[ 
            /** 
             * @copy spark.skins.spark.ApplicationSkin#hostComponent
             */
            [HostComponent("spark.components.Button")]
            ]]>
        </fx:Metadata>
    
        <!-- states -->
        <s:states>
            <s:State name="up" />
            <s:State name="over" />
            <s:State name="down" />
            <s:State name="disabled" />
        </s:states>
    
        <s:Image source.up="https://www.google.com/intl/en_com/images/srpr/logo3w.png"
                 source.over="https://www.google.com/intl/en_com/images/srpr/logo3w.png"
                 source.down="https://www.google.com/intl/en_com/images/srpr/logo3w.png"
                 source.disabled="https://www.google.com/intl/en_com/images/srpr/logo3w.png"
                 width="20"
                 height="20" />
    
    </s:SparkButtonSkin>
    

    Here, I’ve replaced the thumb with the Google logo:

    Spark slider skinned with Google logo image

    Additional Information

    These skins can be auto-generated using Flash Builder’s content assist by [CTRL/COMMAND+SPACE] inside the quotes of skinClass="" appearing as such:

    Create skin context menu

    This will bring up a dialog to create a new MXML skin:

    New skin

    Default skins are in the SDK by theme. For Spark it’d be something like:

    C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.1\frameworks\projects\spark\src\spark\skins\spark
    

    Here is the entire SliderSkin class

    <?xml version="1.0" encoding="utf-8"?>
    
    <!--
    
        ADOBE SYSTEMS INCORPORATED
        Copyright 2008 Adobe Systems Incorporated
        All Rights Reserved.
    
        NOTICE: Adobe permits you to use, modify, and distribute this file
        in accordance with the terms of the license agreement accompanying it.
    -->
    
    <!--- The default skin class for the Spark VSlider component. The thumb and track skins are defined by the
    VSliderThumbSkin and VSliderTrackSkin classes, respectively.  
    
           @see spark.components.VSlider
           @see spark.skins.spark.VSliderThumbSkin
           @see spark.skins.spark.VSliderTrackSkin
    
          @langversion 3.0
          @playerversion Flash 10
          @playerversion AIR 1.5
          @productversion Flex 4
    -->
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:fb="http://ns.adobe.com/flashbuilder/2009" minWidth="11" alpha.disabled="0.5">
    
        <fx:Metadata>
        <![CDATA[ 
            /** 
             * @copy spark.skins.spark.ApplicationSkin#hostComponent
             */
            [HostComponent("spark.components.VSlider")]
        ]]>
        </fx:Metadata> 
    
        <fx:Script fb:purpose="styling">
            /* Define the skin elements that should not be colorized. 
               For slider, the skin itself is colorized but the individual parts are not. */
            static private const exclusions:Array = ["track", "thumb"];
    
            /**
             * @private
             */   
            override public function get colorizeExclusions():Array {return exclusions;}
    
            /**
             * @private
             */
            override protected function initializationComplete():void
            {
                useChromeColor = true;
                super.initializationComplete();
            }
        </fx:Script>
    
        <fx:Script>
            /**
             *  @private
             */  
            override protected function measure() : void
            {
                // Temporarily move the thumb to the top of the Slider so measurement
                // doesn't factor in its y position. This allows resizing the
                // VSlider to less than 100px in height. 
                var thumbPos:Number = thumb.getLayoutBoundsY();
                thumb.setLayoutBoundsPosition(thumb.getLayoutBoundsX(), 0);
                super.measure();
                thumb.setLayoutBoundsPosition(thumb.getLayoutBoundsX(), thumbPos);
            }
        </fx:Script>
    
        <s:states>
            <s:State name="normal" />
            <s:State name="disabled" />
        </s:states>
    
        <fx:Declarations>
            <!--- The tooltip used in the mx.controls.Slider control.
                  To customize the DataTip's appearance, create a custom VSliderSkin class. -->
            <fx:Component id="dataTip">
                <s:DataRenderer minHeight="24" minWidth="40" x="20"> 
                    <s:Rect top="0" left="0" right="0" bottom="0">
                        <s:fill>
                            <s:SolidColor color="0x000000" alpha=".9"/>
                        </s:fill>
                        <s:filters>
                            <s:DropShadowFilter angle="90" color="0x999999" distance="3"/>
                        </s:filters>
                    </s:Rect>
                    <s:Label id="labelDisplay" text="{data}"
                             horizontalCenter="0" verticalCenter="1"
                             left="5" right="5" top="5" bottom="5"
                             textAlign="center" verticalAlign="middle"
                             fontWeight="normal" color="white" fontSize="11">
                    </s:Label>
                </s:DataRenderer>
            </fx:Component>
        </fx:Declarations>
    
        <!--- The default skin class is VSliderTrackSkin.
               @copy spark.components.supportClasses.TrackBase#track 
               @see spark.skins.spark.VSliderTrackSkin -->
        <s:Button id="track" left="0" right="0" top="0" bottom="0" minHeight="33" height="100"
                  tabEnabled="false"
                  skinClass="spark.skins.spark.VSliderTrackSkin" />
    
        <!--- The default skin class is VSliderThumbSkin. 
               @copy spark.components.supportClasses.TrackBase#thumb
               @see spark.skins.spark.VSliderThumbSkin -->
        <s:Button id="thumb" left="0" right="0" width="11" height="11"
                  tabEnabled="false"
                  skinClass="SliderThumbSkin" />
    
    </s:SparkSkin>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.