GitHub repo of the demo-swf
So, when creating the demo swf for my FlxTrail
class, I wanted to use sliders to be able change the variables conveniently. As it turned out, though, it's not possible to use the flash default ones within FlashDevelop. (plus, that would be an ugly solution as you'd have to use FlxG.stage etc)
I went ahead and created such a GUI element for flixel (extending FlxGroup). It's quite simple, but should work fine - which is also why the demo suite for my FlxTrail class is essentially also a demo swf for my FlxSlider class. There are two ways of using it, either you let the slider change the variable directly, or you assign a callback function which is called whenever the slider has been dragged for more complex stuff. https://dl.dropbox.com/u/18627942/Demo.swf
Also, feel free to leave feedback and suggestions, use the class yourself and / or customize it according to your needs.
I commented most of the stuff, so you should be able to understand what's going on, plus, it's not all that complicated. IMPORTANT NOTE: This requires Photonstorm's FlixelPowerTools to work!
I'm using the latest version (1.9), not sure if earlier version would work as well. I'm using the FlxMouseControl and FlxExtendedSprite classes.FlxSlider.asClick here for the source codeEdit
Updated FlxSlider.as to v 0.2 - now also has the ability to play a sound when clicked and / or hovered over