Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import fl.controls.ColorPicker;
- import fl.events.ColorPickerEvent;
- var ChoixCouleur:ColorPicker = new ColorPicker();
- ChoixCouleur.addEventListener(ColorPickerEvent.CHANGE, changementCouleur);
- ChoixCouleur.move(30, 500);
- menu.addChild(ChoixCouleur);
- private function changementCouleur(e:ColorPickerEvent):void {
- couleur="0x"+e.target.hexValue;
- }
Add Comment
Please, Sign In to add comment