Belozw on DeviantArthttps://www.deviantart.com/belozw/art/TUTORIAL-How-to-make-a-CC-item-in-AS3-0-308765858Belozw

Deviation Actions

Belozw's avatar

TUTORIAL: How to make a CC item in AS3.0

By
Published:
1.4K Views

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;

}
Image size
1350x2880px 271.32 KB
© 2012 - 2024 Belozw
Comments11
Join the community to add your comment. Already a deviant? Log In