Color Picker Pro V3 Events
Overview | Properties | Methods | Events | Styles | XML
Usage1:
myEventListener = new Object();
myEventListener.onLoad = function(){
}
componentInstance.addEventListener("onLoad",myEventListener);
Usage2:
on the component's handler
on (onLoad) {
}
Event | Description |
buttonClicked | Broadcasted only when autoMode property is set to false, when the user clicked the button clip.
EventObject parameters: target:MovieClip - the color picker that sent the event Usage: myEventListener = new Object(); |
closeEasy | Broadcasted only when autoMode property is set to false, the easy clip should normally close due to user interaction.
EventObject parameters: target:MovieClip - the color picker that sent the event source:String - the reason why the easy clip should close (the user clicked on one of the easy clip's components or selected a color) - possible values: "closeButton", "colorPalette", "external" (the user clicked outside the easy clip - either for color picking or for closing the easy clip), "background", "switchModeButton", "keyPressESCAPE" and "keyPressENTER" Usage: myEventListener = new Object(); |
closePro | Broadcasted only when autoMode property is set to false, the pro clip should normally close due to user interaction.
EventObject parameters: target:MovieClip - the color picker that sent the event source:String - the reason why the pro clip should close (the user clicked on one of the easy clip's components or selected a color) - possible values: "switchModeButton", "okButton", "cancelButton", "keyPressESCAPE" and "keyPressENTER" Usage: myEventListener = new Object(); |
onClose | Event triggered when a Color Picker Pro V3 instance is closed.
EventObject parameters: target:MovieClip - the Color Picker Pro V3 instance that sent the event wasColorSelected:Boolean - "true" if the color picker was closed when a new color was selected, "false" otherwise mode:String - the current mode/state of the color picker isSwitching:Boolean - "true" if the easy or pro clip was closed because the user switched to another mode, "false" otherwise Usage: myEventListener = new Object(); |
onColorChanged | Event triggered when a new color is changed inside the Color Picker Pro V3 color holder.
EventObject parameters: target:MovieClip - the Color Picker Pro V3 instance that sent the event previousColor:Number - the last color before this selection newColor:Number - the new color Usage: myEventListener = new Object(); |
onColorSelected | Event triggered when a new color is selected inside a Color Picker Pro V3 instance.
EventObject parameters: target:MovieClip - the Color Picker Pro V3 instance that sent the event previousColor:Number - the last color before this selection newColor:Number - the new color mode:String - the current mode/state of the color picker Usage: myEventListener = new Object(); |
onMouseColorPick | Event triggered when the Mouse is start picking or stop picking colors either from an mc target, either from the color picker palette.
EventObject parameters: target:MovieClip - the Color Picker Pro V3 instance that sent the event colorPicking:Boolean - true if the component starts picking colors from a color source, false if it stops picking; colorPalette:Boolean - true if the component is picking up colors from the component's own color palette mode:String - the current mode/state of the color picker Usage: myEventListener = new Object(); |
onOpen | Event is triggered when Color Picker Pro V3 opens a new instance.
EventObject parameters: target:MovieClip - the Color Picker Pro V3 instance that sent the event currentColor:Number - the last color mode:String - the current mode/state of the color picker Usage: myEventListener = new Object(); |
onStartDrag | Event triggered when a user starts dragging a floating Color Picker Pro V3 instance.
EventObject parameters: target:MovieClip - the Color Picker Pro V3 instance that sent the event mode:String - the current mode/state of the color picker Usage: myEventListener = new Object(); |
onStopDrag | Event triggered when a user stops dragging a floating Color Picker Pro V3 instance.
EventObject parameters: target:MovieClip - the Color Picker Pro V3 instance that sent the event mode:String - the current mode/state of the color picker Usage: myEventListener = new Object(); |
onSwitch | Event broadcasted when the user clicked the switch button (switch from easy to pro or from pro to easy).
EventObject parameters: target:MovieClip - the Color Picker Pro V3 instance that sent the event oldMode:String - the old mode/state of the color picker newMode:String - the new mode/state of the color picker Usage: myEventListener = new Object(); |
Event | Description |
OPEN | Event is triggered when Color Picker Pro V3 opens a new instance. EventObject parameters: target:MovieClip - the Color Picker Pro V3 instance that sent the event currentColor:Number - the last color mode:String - the current mode/state of the color picker Usage: import com.jumpeye.Events.ColorPickerEvents; |
CLOSE | Event triggered when a Color Picker Pro V3 instance is closed. EventObject parameters: target:MovieClip - the Color Picker Pro V3 instance that sent the event wasColorSelected:Boolean - "true" if the color picker was closed when a new color was selected, "false" otherwise mode:String - the current mode/state of the color picker isSwitching:Boolean - "true" if the easy or pro clip was closed because the user switched to another mode, "false" otherwise Usage: import com.jumpeye.Events.ColorPickerEvents; |
COLOR_SELECTED | Event triggered when a new color is selected inside a Color Picker Pro V3 instance. EventObject parameters: target:MovieClip - the Color Picker Pro V3 instance that sent the event previousColor:Number - the last color before this selection newColor:Number - the new color mode:String - the current mode/state of the color picker Usage: import com.jumpeye.Events.ColorPickerEvents; |
COLOR_CHANGE | Event triggered when a new color is changed inside the Color Picker Pro V3 color holder. EventObject parameters: target:MovieClip - the Color Picker Pro V3 instance that sent the event previousColor:Number - the last color before this selection newColor:Number - the new color Usage: import com.jumpeye.Events.ColorPickerEvents;
|
PICK_COLOR | Event triggered when the Mouse is start picking or stop picking colors either from an mc target, either from the color picker palette. EventObject parameters: target:MovieClip - the Color Picker Pro V3 instance that sent the event colorPicking:Boolean - true if the component starts picking colors from a color source, false if it stops picking; colorPalette:Boolean - true if the component is picking up colors from the component's own color palette mode:String - the current mode/state of the color picker Usage: import com.jumpeye.Events.ColorPickerEvents;
|
START_DRAG | Event triggered when a user starts dragging a floating Color Picker Pro V3 instance. EventObject parameters: target:MovieClip - the Color Picker Pro V3 instance that sent the event mode:String - the current mode/state of the color picker Usage: import com.jumpeye.Events.ColorPickerEvents;
|
STOP_DRAG | Event triggered when a user stops dragging a floating Color Picker Pro V3 instance. EventObject parameters: target:MovieClip - the Color Picker Pro V3 instance that sent the event mode:String - the current mode/state of the color picker Usage: import com.jumpeye.Events.ColorPickerEvents;
|
SWITCH_MODE | Event broadcasted when the user clicked the switch button (switch from easy to pro or from pro to easy). EventObject parameters: target:MovieClip - the Color Picker Pro V3 instance that sent the event oldMode:String - the old mode/state of the color picker newMode:String - the new mode/state of the color picker Usage: import com.jumpeye.Events.ColorPickerEvents;
|
BUTTON_CLICK | Broadcasted only when autoMode property is set to false, when the user clicked the button clip EventObject parameters: target:MovieClip - the color picker that sent the event Usage: import com.jumpeye.Events.ColorPickerEvents;
|
CLOSE_EASY | Broadcasted only when autoMode property is set to false, the easy clip should normally close due to user interaction EventObject parameters: target:MovieClip - the color picker that sent the event source:String - the reason why the easy clip should close (the user clicked on one of the easy clip's components or selected a color) - possible values: "closeButton", "colorPalette", "external" (the user clicked outside the easy clip - either for color picking or for closing the easy clip), "background", "switchModeButton", "keyPressESCAPE" and "keyPressENTER" Usage: import com.jumpeye.Events.ColorPickerEvents;
|
CLOSE_PRO | Broadcasted only when autoMode property is set to false, the pro clip should normally close due to user interaction EventObject parameters: target:MovieClip - the color picker that sent the event source:String - the reason why the pro clip should close (the user clicked on one of the easy clip's components or selected a color) - possible values: "switchModeButton", "okButton", "cancelButton", "keyPressESCAPE" and "keyPressENTER" Usage: import com.jumpeye.Events.ColorPickerEvents;
|
Overview | Properties | Methods | Events | Styles | XML