Packagekm.components
Classpublic class ContentPane
InheritanceContentPane Inheritance ScrollPane Inheritance UIComponent Inheritance flash.display.Sprite

The ContentPane component class.



Public Properties
 PropertyDefined by
 Inheritedbackground : Image
>> Reference to the background image.
ScrollPane
  backgroundColor : uint = 0xffffff
The background color for text content.
ContentPane
 Inheritedcontent : *
Returns a reference to the content of the scrollPane.
ScrollPane
  defaultTextFormat : TextFormat
The default text format for text content.
ContentPane
 Inheritedduotone : Array
The duotone property can be used to convert the colors of the component into duotone.
UIComponent
 Inheritedenabled : Boolean
Specifies if the component is enabled.
If a component is disabled, it will be turned into grayscale and become partly transparent.
UIComponent
 Inheritedheight : Number
UIComponent
 InheritedhScrollBar : ScrollBar
>> Reference to the horizontal scrollBar.
ScrollPane
 InheritedinnerHeight : int
Returns the inner height of the scrollPane.
ScrollPane
 InheritedinnerWidth : int
Returns the inner width of the scrollPane.
ScrollPane
 InheritedloadIconColor : uint
Sets the ARGB color value of the icon shown when the scroll pane is loading external content.
ScrollPane
 Inheritedmargin : int
The margin between the bounding box of the background and the sub components inside.
ScrollPane
 InheritedtoolTip : String
Text to use as toolTip when ToolTip is enabled.
UIComponent
 InheritedvScrollBar : ScrollBar
>> Reference to the vertical scrollBar.
ScrollPane
 Inheritedwidth : Number
UIComponent
 Inheritedx : Number
UIComponent
 Inheritedy : Number
UIComponent
Public Methods
 MethodDefined by
  
ContentPane
 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
contentResized(newWidth:int, newHeight:int, resetScrollPos:Boolean = false):void
Use this function to manually inform the component about changes in size of the content.
ScrollPane
 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
setContent(content:*, usePrefix:Boolean = true):void
Sets the content for the scrollPane.
ScrollPane
  
setContent2(type:int, source:*):void
Sets the content for the contentPane.
ContentPane
 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
backgroundColorproperty
public var backgroundColor:uint = 0xffffff

The background color for text content.

defaultTextFormatproperty 
public var defaultTextFormat:TextFormat

The default text format for text content.

Constructor detail
ContentPane()constructor
public function ContentPane()
Method detail
setContent2()method
public function setContent2(type:int, source:*):void

Sets the content for the contentPane.

Type                       Source

0 text                     string containing text
1 html text                string containing html text
2 external text            filename of text file
3 external html text       file name of html text file
4 external graphic         file name of swf, gif, png or jpg file

Parameters
type:int
 
source:*