/* ======================================== createOutLine ---------------------------------------- (c) Derek Ahmedzai, March 2004 TextField prototype Usage: oTextField.createOutLine(oTextFormat[, iWidth]); ======================================== */ TextField.prototype.createOutLine = function() { trace("createOutLine (for " + this + ")"); var iLen = arguments.length; if (iLen > 0) { if (arguments[0]) { var tfDS = arguments[0]; var sDesc = tfDS.font + " " + tfDS.size + "px #" + tfDS.color.toString(16); trace(" -> " + sDesc); //get outline width var iWidth = 1; if (arguments[1]) { iWidth = arguments[1]; } trace(" -> " + iWidth); //create outline text fields for (var x=0; x<(3 * iWidth); x++) { for (var y=0; y<(3 * iWidth); y++) { var oOL = this._parent.createTextField("oOL_" + x + "_" + y, getNewDepth(), 0, 0, 20, 20); with (oOL) { autoSize = "left"; text = this.text; selectable = false; setTextFormat(tfDS); _x = x - (1 * iWidth); _y = y - (1 * iWidth); } } } //swap depths swapDepths.call(this, getNewDepth()); return oDS; } else { trace(" X - Invalid TextFormat"); return false; } } else { trace(" X - No arguments supplied"); return false; } }