Select the "Properties" option from the "Window" menu to display the "Properties" panel --- a dialog box used to change characteristics of a selected object on the Flash stage, such as a graphic.
Select the "Import" menu option from the "File" menu, then select the "Import to Stage" option.
Select a graphic file from the directory list that appears (use the graphic file named "fashionmodel.jpg" for this example.) Click the "Open" button to import the graphic image to the Flash stage.
Click on the graphic image of the file and scale its size with values set in the "width" and "height" text boxes in the "properties" panel.
Select the "Convert to Symbol" option from the "Modify" menu on the main Flash menu bar. Check the "Export for ActionScript" box in the "Symbol" dialog box that appears. Click the "OK" button.
Type in the instance name "tintBox" in the "instance name" textbox within the "properties" panel.
Select the "Actions" option from the "Window" menu to open the AS3 (ActionScript) program editor.
Type the AS3 import code into the first line of the ActionScript program editor to import the motion color package "fl.motion.Color." Use the AS3 program statement "import fl.motion.Color;" to import this package.
Type the AS3 code into the next line of the editor to create a color object called "tintColor1," Type the AS3 statement as "var tintColor1:Color=new Color();" for this example.
Type the tint code to assign both the color and the color tint to the tintColor1 color object, into the next line of the Action's editor. Use the hexadecimal RBG (Red, Blue, Green) code for the color red (0xff000000,) and a tint multiplier of 0.5 for the parameters in the setTint method. Use the AS3 statement "tintColor1.setTint(0xff0000, 0.5);" for this example.
Type the transform statement in the next line of the editor to attach the color and the color tint (the tintColor1 object) to the tintBox object on the stage. Use the AS3 statement "tintBox.transform.colorTransform=tintColor1;" for this example.
Review your code, as listed below, for syntax and functional correctness before you compile it and test it.
import fl.motion.Color;
var tintColor1:Color=new Color();
tintColor1.setTint(0xff0000, 0.5);
tintbox.transform.colorTransform=tintColor1;
Click the "Syntax Checker" icon --- a large, blue check mark at the top of the "Actions" editor --- to check the syntax of the code you entered with the ActionScript compiler. Correct any syntax errors the ActionScript compiler reports.
Select "Test Movie" from the "Control" menu on the main Flash menu bar. Observe that the graphic or photograph you imported on the stage is now tinted with a shade of red.