| Example |
// Create an instance of the skin look
var look:Object = pseudo.look.StdLook.getInstance();
// layer for comboboxes lists and other object with the same behavior
_global.popup = pseudo.BaseMovie.create(_root, "popup", 2);
//Create an instance of the color picker component
picker = pseudo.clrpick.ColorPicker.create(_root, "picker", 1);
//apply the slin to the ColorPicker instance
picker.setLook(look);
picker.setSize(20, 20);
picker.addListener("changed", this, onChanged);
picker._x = 10;
picker._y = 10;
picker.setColor(0xff0000);
picker.update();
picker.draw();
function onChanged(clrOld:Number, clrNew:Number):Void
{
}
|