Search tutorials
The Actionscript
Step 1 : The Slider ActionscriptThis is the function that does all that:
function myColorizing(myred,myRedOffset,mygreen,myGreenOffset,myblue,myBlueOffset,
myAlpha,myAlphaOffset){
myObjColor = new color(_root.myObject);
myObjTransform = new object();
myObjTransform.Ra = myred;
myObjTransform.Rb = myredOffset;
myObjTransform.Ga = mygreen;
myObjTransform.gb = mygreenOffset;
myObjTransform.ba = myblue;
myObjTransform.bb = myblueOffset;
myObjTransform.ab = myAlpha;
myObjTransform.ab = myAlphaOffset;
myObjColor.setTransform(myObjTransform);
}
Now we're going to go through the code line-by-line to help you understand how it works.
| » 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!