Search Tutorials
The Slider Step 2 : The Slider ActionscriptNote: You should enter the following section only after every graphic is located properly.
For this example I made a seperate MC for every slider (you can always do something more sophisticated, but i wanted to keep it simple without too many variables). Each "Exact color" slider has a button inside which holds the same script (respectively to the slider color):
on (press) {
startDrag ("", true, 18, this._y, 118, this._y);
}
on (release) {
stopDrag ();
_root.redVal =int((_root.redSlider._x-18)*2-100);
_root.myColorizing(_root.redVal,_root.redValOffset,_root.greenVal,_root.greenValOffset,
_root.blueVal,_root.blueValOffset,_root.alphaVal,_root.alphaValOffset);
}
Now let's see what each mouseevent exactly does...
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|