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.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|