Name

LzTextSprite() (swf7 swf8 swf9)

Synopsis

JavaScript: LzTextSprite
Type: Function
Access: private
Runtimes: swf7 swf8 swf9
Topic: Kernel.AS2
Declared in: WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as

Description

LzTextSprite.as

Details

Methods (46)

annotateAAimg()
private function annotateAAimg(txt);
getAntiAliasType()
private function getAntiAliasType();
Gets the kind of antialiasing set on this text object
getBottomScroll()
private function getBottomScroll();
getGridFit()
private function getGridFit();
Gets the kind of antialiasing set on this text object
getMaxScroll()
private function getMaxScroll();
getMCRef()
private function getMCRef();
Get a reference to the control mc
getScroll()
private function getScroll();
getSelectionPosition()
private function getSelectionPosition() : Number;
Returns the position of the text cursor within this object. If the text cursor is not inside this object, then the method returns -1.
getSelectionSize()
private function getSelectionSize() : Number;
Returns the length of the text selection in within this object. If the text cursor is not inside this object, then the method returns -1.
getSharpness()
private function getSharpness();
Gets the sharpness rendering property of this text object
getText()
private function getText();
getTextfieldHeight()
private function getTextfieldHeight();
getTextHeight()
private function getTextHeight();
Calculates the current height of the text held by the text field.
getTextWidth()
private function getTextWidth();
Calculates the current width of the text held by the text field.
getThickness()
private function getThickness();
Gets the thickness rendering property of this text object
__initTextProperties()
private function __initTextProperties(args);
__LZforceScrollAttrs()
private function __LZforceScrollAttrs();
parseImgAttributes()
private function parseImgAttributes(attrs, str);
setAntiAliasType()
private function setAntiAliasType(aliasType);
Sets what type of antialiasing the text field should use. Only works in swf8 and higher.
setBorder()
private function setBorder(onroff);
setColor()
private function setColor(c : Number);
Sets the color of all the text in the field to the given hex color.
setEmbedFonts()
private function setEmbedFonts(onroff);
setFontInfo()
private function setFontInfo();
setFontName()
private function setFontName(fname);
setFontSize()
private function setFontSize(fsize);
setFontStyle()
private function setFontStyle(fstyle);
__setFormat()
private function __setFormat();
Sets the format string for the text field.
setGridFit()
private function setGridFit(gridFit);
Sets what type of gridfitting the text field should use. Only works in swf8 and higher.
setHeight()
private function setHeight(val);
setHScroll()
private function setHScroll(s);
setMaxLength()
private function setMaxLength(val);
setMultiline()
private function setMultiline(ml : Boolean);
Sets whether or not the textfield wraps. If false, only a single line of text will appear and extra lines will be trucated if the text is set with multiple lines.
setPattern()
private function setPattern(val);
setResize()
private function setResize(val : Boolean);
setResize set behavior of text field width when new text is added. LzTextSprite only (cannot be used with LzInputText).
setScroll()
private function setScroll(s);
setSelectable()
private function setSelectable(isSel : Boolean);
Sets the selectability (with Ibeam cursor) of the text field
setSelection()
private function setSelection(start : Number, end : Number);
Positions the text selection within the text field. If this object does not already have the focus, this has the ancillary effect of giving it the focus.
setSharpness()
private function setSharpness(sharpness);
Sets the sharpness for the text rendering Only works in swf8 and higher.
setText()
private function setText(t : String);
setText sets the text of the field to display
setThickness()
private function setThickness(thickness);
Sets the thickness for the text rendering Only works in swf8 and higher.
setWidth()
private function setWidth(val);
setWordWrap()
private function setWordWrap(wrap);
setXScroll()
private function setXScroll(n : Number);
Set the x scroll position of the textfield.
setYScroll()
private function setYScroll(n : Number);
Set the y scroll position of the textfield.
__updatefieldsize()
private function __updatefieldsize();
updateMaxLines()
private function updateMaxLines();
This must be called after updating the measurement. This is done for speed.

Prototype Properties (10)

classname
private var classname = LzTextSprite;
colorstring
private var colorstring = #000000;
DEFAULT_SIZE
private var DEFAULT_SIZE = 8;
hscroll
private var hscroll = 0.0;
maxhscroll
private var maxhscroll = 0.0;
maxscroll
private var maxscroll = 0.0;
PAD_TEXTWIDTH
private var PAD_TEXTWIDTH = 4;
scroll
private var scroll = 0.0;
_viewsetHeight
private var _viewsetHeight;
_viewsetWidth
private var _viewsetWidth;

JavaScript Synopsis

private function LzTextSprite(newowner, args);