Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
CSSSprite

Package | org.apache.flex.core
Class | public class CSSSprite
Inheritance | CSSSprite flash.display.Sprite
Implements | IStyleableObject, IChild

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The Border class is a class used internally by many controls to draw a border. The border actually drawn is dictated by the IBeadView in the CSS.

Public Properties

| Property | Defined By
--- | --- | ---
|  | className : String The classname. | CSSSprite
|  | id : String An id property for MXML documents. | CSSSprite
|  | state : String | CSSSprite
|  | style : Object The object that contains "styles" and other associated name-value pairs. | CSSSprite

Public Methods

| Method | Defined By
--- | --- | ---
|  | CSSSprite() Constructor. | CSSSprite
|  | draw(w:Number, h:Number):void Draw the contents based on styles | CSSSprite

Property Detail

className | property

`className:String`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The classname. Often used for CSS class selector lookups.

Implementation
`public function get className():String`
`public function set className(value:String):void`

id | property |

`id:String`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

An id property for MXML documents.

Implementation
`public function get id():String`
`public function set id(value:String):void`

state | property |

`public var state:String`

style | property |

`style:Object`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The object that contains "styles" and other associated name-value pairs. You can also specify a string in HTML style attribute format.

Implementation
`public function get style():Object`
`public function set style(value:Object):void`
Constructor Detail

CSSSprite | () | Constructor

`public function CSSSprite()`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Constructor.

Method Detail

draw | () | method

`public function draw(w:Number, h:Number):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Draw the contents based on styles

Parameters

| `w:Number` — The width.
| `h:Number` — The height.

Mon Sep 5 2016, 07:19 AM -07:00