I just put together a component for my personal use and thought maybe others might want to use it. It’s a slider bar thingy that I use for debugging and development (it is not intended to be left in the project during publishing…it is just a debugging tool, hence it don’t look that great).
Here’s how I use it:
I put an instance of it on the stage, name ths instance (for example “sliderThingy”), then define 3 properties which are:
The value the slider outputs when it is at the far left. (Defaults to 0)
The value the slider outputs when it is at the far right. (Defaults to 100)
The number of decimal places the slider’s output is rounded to. (Default 0)
Then, in my actionscript I call the slider’s getOutput() method to find out what the slider is showing. So for example, if I want to get the output every frame I might put this in an onEnterFrame block: myVariable = _root.sliderThingy.getOutput();
That’s it. You can slide the bar with the mouse, or you can enter a number into the text field.
I use this for testing out things like different constants for focalLength in my 3D engines, gravity constants in physics simulations, etc.
It has no documentation other than what you have read above cause it’s really just for my use. If people find it useful I might throw together some docs for it.
If you DO find it useful, please let me know. Also, please report any bugs and I am open to comments/suggestions/questions of course!
-Al