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.
Your Spark Slider requires a custom skin class, and that skin requires a SliderThumbSkin for the thumb.
Spark Slider:
SliderSkin – Spark Slider’s skin class requires a thumb skin:
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:
Here, I’ve replaced the thumb with the Google logo:
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:This will bring up a dialog to create a new MXML skin:
Default skins are in the SDK by theme. For Spark it’d be something like:
Here is the entire SliderSkin class