ShopDreamUp AI ArtDreamUp
Deviation Actions
Description
TUTORIAL: How to make a CC item in AS3.0
Code:
import fl.controls.ColorPicker;
import fl.events.ColorPickerEvent;
import flash.geom.ColorTransform;
var mycolor:ColorTransform = new ColorTransform();
cp.addEventListener(ColorPickerEvent.CHANGE, colorChanger);
function colorChanger(event:ColorPickerEvent):void{
mycolor.color = cp.selectedColor;
mc.transform.colorTransform = mycolor;
}
Code:
import fl.controls.ColorPicker;
import fl.events.ColorPickerEvent;
import flash.geom.ColorTransform;
var mycolor:ColorTransform = new ColorTransform();
cp.addEventListener(ColorPickerEvent.CHANGE, colorChanger);
function colorChanger(event:ColorPickerEvent):void{
mycolor.color = cp.selectedColor;
mc.transform.colorTransform = mycolor;
}
Image size
1350x2880px 271.32 KB
© 2012 - 2024 Belozw
Comments11
Join the community to add your comment. Already a deviant? Log In