My account
Shopping cart
Knowledge base
Support


Color Picker Pro V3 Methods



Overview | Properties | Methods | Events | Styles | XML

Method Description
close Closes (hides) an instance of Color Picker Pro V3.

Syntax:
close(mode:String, colorSelected:Boolean, isSwitch:Boolean)

Arguments:
  • mode:String - Values: ["button", "easy" or "pro"] (this is because a single Color Picker Pro V3 component may be opened as button, easy and/or pro, more than 1 instances in the same time)
  • colorSelected:Boolean - needed by the onClose event - "true", if the the clip closes after a new color has been selected, otherwise, "false"
  • isSwitch:Boolean [optional for AS2] – needed by the onClose event; "true", if the easy or pro clip is closing due to switching to the other mode(e.g. switching from easy to pro or from pro to easy), "false", if the clip is closing due to any other reason

Usage:
componentInstance.open("easy", false, false);
open Opens (shows) an instance of Color Picker Pro V3.

Syntax:
open(mode:String , targetContainer:MovieClip[, fixedMode:Boolean, centered:Boolean, newX:Number, newY:Number])

Arguments:
  • mode:String - Values: ["button", "easy" or "pro"]
  • targetContainer:MovieClip - is the movie clip into which the requested color picker mode will be opened;
    Default:_root (AS2) / root (AS3);
  • fixedMode:Boolean - if true, the requested mode will be fixed (no dragging, no closing or switching to another mode)
    Default:false; [optional]
  • centered:Boolean - if true, the requested mode will be centered inside the container;
    Default: false; [optional]
  • newX, newY:Number - the coordinates of the requested mode, inside the target container

Usage:
componentInstance.open("easy", my_mc, true, false, 120, 220);
startColorPicking Initializes the color picker so the user can pick colors.

Usage:
componentInstance.startColorPicking()
stopColorPicking Disables the color picking action.

Usage:
componentInstance.stopColorPicking()

Overview | Properties | Methods | Events | Styles | XML