/** * @private * list of clip parameters to check at init * only getter/setter properties go in this list */ // include the following line in class file for new component // var clipParameters:Object = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1}; // // // ===================================================================================== // // ===================================================================================== // process all the clipParameters in the list so the setters get fired. function initFromClipParameters(Void):Void { var bFound:Boolean = false; var i:String; for (i in clipParameters) { // trace(i +" = "+clipParameters[i]); if (this.hasOwnProperty(i)) { bFound = true; this["def_"+i] = this[i]; delete this[i]; } } if (bFound) { for (i in clipParameters) { var v = this["def_"+i]; if (v != undefined) { this[i] = v; } } } } // // ===================================================================================== // // ===================================================================================== /** * @private * Used by component developers to create the list of clip parameters. */ function mergeClipParameters(o, p):Boolean { for (var i in p) { o[i] = p[i]; } return true; } // // ===================================================================================== // // ===================================================================================== // call initFromClipParameters(); from init