Color Picker v1.0

Compatibility Flash 8 And FLASH CS3 (AS2.0 compatibility mode)
Approval Adobe
Version 1.0
Commercial £14.95
Overview
The Flashvalley color picker lets you select a color at runtime and apply it to any element on the stage very easily. The selected color is sent as a color value parameter to a function that you define yourself in the parameter window. The color picker can be dragged and dropped anywhere on the stage at runtime.
Flashvalley color picker
Draggable areas
The Color picker can be dragged by clicking on any of the light green areas represented in the picture on the left

Using the Color Picker

The Flashvalley color picker is very easy to use :

1. Drag the component on to the stage


2. On the same level where the color picker sits (the _root if the color picker sits on the root for example), define a function that you want to call when a color is selected. Enter the name of the function you just defined in the parameter window (setColor for our example here) (fig1)

Color picker function name fig1

The color value is passed to the function as a hexadecimal value (0xFF5678 for example), these value are easy to use as parameters with methods like
setRGB for example. In the demo at the bottom of the page we use the following code to send the color value to the text field :

function setColor(myColor){
myTextField.text = myColor;
}


Example
(click on the little green square to open the color picker)

We don't currently have a demo version of this component but you can download the manual here.
If you have any questions regarding this component, don't hesitate to contact us


Price : £14.95 (Excluding VAT if applicable)
Compatible with Flash 8 AND FLASH CS3 (AS2.0 compatibility mode)


flashvalley
 
Copyright ©2006-2008 flashvalley.com - All rights reserved