Packagekm.components
Classpublic class LabelScroll
InheritanceLabelScroll Inheritance Label Inheritance UIComponent Inheritance flash.display.Sprite

The LabelScroll component class is an extended version of the Label class capable of scrolling the label text.


Example
import km.components.*;

var ls:LabelScroll = new LabelScroll();
ls.text = 'This line of text will be scrolling from right to left.';
ls.scrollInterval = 50;
ls.background = true;
ls.backgroundColor = 0xfff8f0;
ls.move(20,20);

addChild(ls);



Public Properties
 PropertyDefined by
 InheritedantiAliasType : String
Label
 Inheritedbackground : Boolean
Label
 InheritedbackgroundColor : uint
Label
 InheriteddefaultTextFormat : TextFormat
Label
 Inheritedduotone : Array
The duotone property can be used to convert the colors of the component into duotone.
UIComponent
 InheritedembedFonts : Boolean
Label
 Inheritedenabled : Boolean
Specifies if the component is enabled.
If a component is disabled, it will be turned into grayscale and become partly transparent.
UIComponent
 InheritedgridFitType : String
Label
 Inheritedheight : Number
UIComponent
 InheritedhtmlText : String
Label
 Inheritedicon : BitmapData
Label
 InheritedlabelPlacement : String
Placement of the label text.
Possible values are 'left' and 'right'.
Label
 Inheritedlength : int
Label
  scrollInterval : Number
Gets or sets the scroll interval (msec).
LabelScroll
  scrollStep : Number
Gets or sets the scroll step (pixels).
LabelScroll
 Inheritedsharpness : Number
Label
 Inheritedtext : String
Label
 InheritedtextColor : uint
Label
 Inheritedthickness : Number
Label
 InheritedtoolTip : String
Text to use as toolTip when ToolTip is enabled.
UIComponent
 Inheritedvalign : String
Vertical alignment within the bounding box.
Possible values are 'top', 'bottom' and 'center'.
Label
 Inheritedwidth : Number
UIComponent
 Inheritedx : Number
UIComponent
 Inheritedy : Number
UIComponent
Public Methods
 MethodDefined by
  
LabelScroll
 Inherited
clone():*
Returns a clone of the component.
The skin of the component is cloned but other things like the text of a label or the items of a list aren't.
UIComponent
 Inherited
move(x:int, y:int, animationMode:int = 0, animationFrames:int = 12, easeInOut:Boolean = false):void
Moves the component to the specified coordinates.
UIComponent
 Inherited
setProperties(o:Object):void
Sets a number of properties at once.
UIComponent
 Inherited
setSize(w:int, h:int):void
Sets the size width and height.
UIComponent
Events
 EventSummaryDefined by
 Inherited The animationComplete event is broadcasted when an animated move is completed.UIComponent
Property detail
scrollIntervalproperty
scrollInterval:Number  [read-write]

Gets or sets the scroll interval (msec).

The default value is 100.

Implementation
    public function get scrollInterval():Number
    public function set scrollInterval(value:Number):void
scrollStepproperty 
scrollStep:Number  [read-write]

Gets or sets the scroll step (pixels).

The default value is 1.

Implementation
    public function get scrollStep():Number
    public function set scrollStep(value:Number):void
Constructor detail
LabelScroll()constructor
public function LabelScroll()