Name

LzTextSprite() (as2)

Synopsis

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

Description

LzTextSprite.as

Details

Methods (41)

annotateAAimg()
private function annotateAAimg(txt);
applyData()
private function applyData(d);
escapeText()
private function escapeText(ts : String);
Returns an escaped version of the string if called with no args. If called with a string argument, returns an escaped version of that string (escaped here means markup-escaped, hot http escaped.)
getBottomScroll()
private function getBottomScroll();
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.
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.
__initTextProperties()
private function __initTextProperties(args);
__LZforceScrollAttrs()
private function __LZforceScrollAttrs();
parseImgAttributes()
private function parseImgAttributes(attrs, str);
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.
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.
setText()
private function setText(t : String);
setText sets the text of the field to display
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.
toString()
private function toString();
__updatefieldsize()
private function __updatefieldsize();
updateMaxLines()
private function updateMaxLines();
This must be called after updating the measurement. This is done for speed.

Events (6)

onmaxlength (as2)
public event onmaxlength;
onmaxscroll (as2)
public event onmaxscroll;
onpattern (as2)
public event onpattern;
onscroll (as2)
public event onscroll;
ontext (as2)
public event ontext;
onxscroll (as2)
public event onxscroll;

Prototype Properties (12)

classname
private var classname = LzTextSprite;
colorstring
private var colorstring = #000000;
defaultattrs
private var defaultattrs = { ... };
DEFAULT_SIZE
private var DEFAULT_SIZE = 8;
escapeChars
private var escapeChars = { ... };
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);