KoolMoves AS3 API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class ContentPane

Package | km.components
Class | public class ContentPane
Inheritance | ContentPane ScrollPane UIComponent flash.display.Sprite

The ContentPane component class.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined by
--- | --- | ---
|  | background : Image >> Reference to the background image. | ScrollPane
|  | backgroundColor : uint = 0xffffff The background color for text content. | ContentPane
|  | content : * Returns a reference to the content of the scrollPane. | ScrollPane
|  | defaultTextFormat : TextFormat The default text format for text content. | ContentPane
|  | duotone : Array The duotone property can be used to convert the colors of the component into duotone. | UIComponent
|  | enabled : Boolean Specifies if the component is enabled. If a component is disabled, it will be turned into grayscale and become partly transparent. | UIComponent
|  | height : Number | UIComponent
|  | hScrollBar : ScrollBar >> Reference to the horizontal scrollBar. | ScrollPane
|  | innerHeight : int Returns the inner height of the scrollPane. | ScrollPane
|  | innerWidth : int Returns the inner width of the scrollPane. | ScrollPane
|  | loadIconColor : uint Sets the ARGB color value of the icon shown when the scroll pane is loading external content. | ScrollPane
|  | margin : int The margin between the bounding box of the background and the sub components inside. | ScrollPane
|  | toolTip : String Text to use as toolTip when ToolTip is enabled. | UIComponent
|  | vScrollBar : ScrollBar >> Reference to the vertical scrollBar. | ScrollPane
|  | width : Number | UIComponent
|  | x : Number | UIComponent
|  | y : Number | UIComponent

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined by
--- | --- | ---
|  | ContentPane() | ContentPane
|  | 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
|  | 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
|  | move(x:int, y:int, animationMode:int = 0, animationFrames:int = 12, easeInOut:Boolean = false):void Moves the component to the specified coordinates. | UIComponent
|  | 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
|  | setProperties(o:Object):void Sets a number of properties at once. | UIComponent
|  | setSize(w:int, h:int):void Sets the size width and height. | UIComponent

Events
Hide Inherited Events
Show Inherited Events

| Event | Summary | Defined by
--- | --- | --- | ---
|  | animationComplete | The animationComplete event is broadcasted when an animated move is completed. | UIComponent

Property detail

backgroundColor | property

`public var backgroundColor:uint = 0xffffff`

The background color for text content.

defaultTextFormat | property |

`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:*`

Last update : 04/05/2008