| Package | org.juicekit.visual.controls |
| Class | public class MovieClipControlBase |
| Inheritance | MovieClipControlBase RendererBase mx.core.UIComponent |
| Subclasses | DMAMapControl, USMapControl |
MovieClip that contains SimpleButton children.
The wrapped MovieClip's SimpleButton children dispatch mouse events
and are colored based on data and a colorEncoding function.
Note: This class is only a base class for more specific classes.
| Property | Defined by | ||
|---|---|---|---|
| colorEncodingFunction : Function
References a function that returns a
uint
color value that is applied to the graphical element. | MovieClipControlBase | ||
| data : Object
Stores an
Array or
ArrayCollection of objects
whose properties will be used to change the appearance of the the
MovieClip's SimpleButton children. | MovieClipControlBase | ||
| dataKeyField : String
Specifies the data
Object property name
that maps to SimpleButton instance names. | MovieClipControlBase | ||
![]() | listData : BaseListData
Implement the IDropInListItemRenderer interface.
| RendererBase | |
| Property | Defined by | ||
|---|---|---|---|
| _clip : MovieClip = null
Stores a reference to the wrapped
MovieClip. | MovieClipControlBase | ||
![]() | dataPropertyChanged : Boolean = false
Indicated whether the data property was changed.
| RendererBase | |
| Method | Defined by | ||
|---|---|---|---|
|
Constructor.
| MovieClipControlBase | ||
|
encodeMap(table:Array):void
Encode map colors by applying the colorEncodingFunction
to the array of data objects.
| MovieClipControlBase | ||
| Method | Defined by | ||
|---|---|---|---|
|
calcPaddedBounds(w:Number, h:Number):Rectangle
Return a
Rectangle inset by any padding styles. | MovieClipControlBase | ||
|
clipDisplayObjectContainer():DisplayObjectContainer
Return the MovieClip's
DisplayObjectContainer containing
the SimpleButtons to encode. | MovieClipControlBase | ||
![]() |
commitProperties():void
Reset the
dataPropertyChanged and invalidate
the display list. | RendererBase | |
|
createMovieClip():MovieClip
Return an instance of a specific
MovieClip derived class. | MovieClipControlBase | ||
|
getButtonData(simpleButton:SimpleButton):Object
Return the data object associated with the target
DisplayObject. | MovieClipControlBase | ||
|
signalDataMouseEvent(event:MouseEvent):void
Dispatch a mouse event and its related data.
| MovieClipControlBase | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
![]() |
Dispatched when the data property changes. | RendererBase | ||
Dispatched when the user clicks a pointing device over a
MovieClipControlBase instance's rectangle. | MovieClipControlBase | |||
Dispatched when the user clicks a pointing device over a
MovieClipControlBase instance's rectangle. | MovieClipControlBase | |||
Dispatched when the user moves a pointing device away from
MovieClipControlBase instance's rectangle. | MovieClipControlBase | |||
Dispatched when the user moves a pointing device over a
MovieClipControlBase instance's rectangle. | MovieClipControlBase | |||
| _clip | property |
protected var _clip:MovieClip = null
Stores a reference to the wrapped MovieClip.
| colorEncodingFunction | property |
colorEncodingFunction:Function [read-write]
References a function that returns a uint
color value that is applied to the graphical element. The function
is passed a SimpleButton's name and
a data Object matched to the name.
The function signature is:
f(name:String, data:Object):uint
The default value is null.
This property can be used as the source for data binding.
Implementation public function get colorEncodingFunction():Function
public function set colorEncodingFunction(value:Function):void
| data | property |
data:Object [read-write]
Stores an Array or
ArrayCollection of objects
whose properties will be used to change the appearance of the the
MovieClip's SimpleButton children.
public function get data():Object
public function set data(value:Object):void
| dataKeyField | property |
dataKeyField:String [read-write]
Specifies the data Object property name
that maps to SimpleButton instance names.
The default value is "name".
This property can be used as the source for data binding.
Implementation public function get dataKeyField():String
public function set dataKeyField(value:String):void
| MovieClipControlBase | () | constructor |
public function MovieClipControlBase()Constructor.
| calcPaddedBounds | () | method |
protected function calcPaddedBounds(w:Number, h:Number):Rectangle
Return a Rectangle inset by any padding styles.
w:Number — Is the maximum width before any padding is subtracted.
|
|
h:Number — Is the maximum height before any padding is subtracted.
|
Rectangle — Returns a rectangle inset by the padding styles.
|
| clipDisplayObjectContainer | () | method |
protected function clipDisplayObjectContainer():DisplayObjectContainer
Return the MovieClip's DisplayObjectContainer containing
the SimpleButtons to encode.
DisplayObjectContainer |
| createMovieClip | () | method |
protected function createMovieClip():MovieClip
Return an instance of a specific MovieClip derived class.
Note: This method is required to be overridden in the derived class.
ReturnsMovieClip |
| encodeMap | () | method |
public function encodeMap(table:Array):voidEncode map colors by applying the colorEncodingFunction to the array of data objects.
Parameterstable:Array |
| getButtonData | () | method |
protected function getButtonData(simpleButton:SimpleButton):Object
Return the data object associated with the target
DisplayObject.
simpleButton:SimpleButton |
Object |
| signalDataMouseEvent | () | method |
protected function signalDataMouseEvent(event:MouseEvent):voidDispatch a mouse event and its related data.
Parametersevent:MouseEvent |
| jkDataClick | event |
org.juicekit.events.DataMouseEvent
Dispatched when the user clicks a pointing device over a
MovieClipControlBase instance's rectangle.
| jkDataDoubleClick | event |
org.juicekit.events.DataMouseEvent
Dispatched when the user clicks a pointing device over a
MovieClipControlBase instance's rectangle.
| jkDataMouseOut | event |
org.juicekit.events.DataMouseEvent
Dispatched when the user moves a pointing device away from
MovieClipControlBase instance's rectangle.
| jkDataMouseOver | event |
org.juicekit.events.DataMouseEvent
Dispatched when the user moves a pointing device over a
MovieClipControlBase instance's rectangle.