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...
| » Level Advanced |
|
Added: 2000-11-16 Rating: 8 Votes: 53 |
| » Author |
| No information about the author has been provided |
| » Download |
| Download the files used in this tutorial. |
| Download (8 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!