





stop(); //this allows you to drag your brush _root.brush.startDrag(true); //hide the mouse Mouse.hide(); //create a variable named upperLimit and set it //to the number of clips you named in the Properties Window starting with "img" ______=____; //create a variable named colorSwatches and set it to //the number of color swatches you made ______________=__; //create a variable named fill and set it to 0xFFFFFF fill = _________; //create a loop that starts at 1 and continues until upperLimit for (i=1; i<=_____; i++) { //Create a variable named temp and set it to a new Color object. //pass the Color object the name of the clip ___ = new Color(_root["img"+i]); //set the color of the Color object to fill ___.setRGB(fill); } _root.onEnterFrame = function() { //create a loop that starts at 1 and continues until colorSwatches for (i=1; i<=_____; i++) { _root["swatch"+i].onRelease = function() { //create a variable named paint and set it to a new Color object //with the swatch passed to it ________ = new Color(this); //set fill to: "0x"+paint.getRGB().toString(16) //this gets a hex value for the color fill = _____________________________ }; } //create a loop that starts at 1 and continues until upperLimit //hint-look at the code above ______________________________ _root["img"+i].onRelease = function() { //create a variable named colorMe and set it to a new Color object. //pass the Color object the name of the clip ___ = new Color(this); //set the color of the Color object to fill ___.setRGB(________); }; } };