A helper class that abstracts the serialization of fills and
provides an interface to access the properties providing defaults
if no properties were defined in the XML.
color:uint
[read-write]
The value of the RGB color. This is the same color format used by
MovieClip.lineStyle
Implementation
public function get color():uint
public function set color(value:uint):void
opacity:Number
[read-write]
The opacity of the fill, in percent. 100 is solid, 0 is transparent.
This property can be used as the alpha parameter of MovieClip.lineStyle
Implementation
public function get opacity():Number
public function set opacity(value:Number):void
public function Fill()
public function deserialize(node:XMLNode):Boolean
Extracts the known fill attributes from the node
Parameters
| node:XMLNode — The parent node that this extension should be serialized into
|
Returns
| Boolean — An indicator as to whether serialization was successful
|
public function serialize(parent:XMLNode):Boolean
Serializes the Fill into the parent node. Because the fill
serializes into the attributes of the XML node, it will directly modify
the parent node passed.
Parameters
| parent:XMLNode — The parent node that this extension should be serialized into
|
Returns
| Boolean — An indicator as to whether serialization was successful
|