Package | net.flashpunk.graphics |
Class | public class Graphiclist |
Inheritance | Graphiclist Graphic Object |
Property | Defined By | ||
---|---|---|---|
active : Boolean = false
If the graphic should update. | Graphic | ||
children : Vector.<Graphic> [read-only]
All Graphics in this list. | Graphiclist | ||
count : uint [read-only]
Amount of Graphics in this list. | Graphiclist | ||
relative : Boolean = true
If the graphic should render at its position relative to its parent Entity's position. | Graphic | ||
scrollX : Number = 1
X scrollfactor, effects how much the camera offsets the drawn graphic. | Graphic | ||
scrollY : Number = 1
Y scrollfactor, effects how much the camera offsets the drawn graphic. | Graphic | ||
visible : Boolean = true
If the graphic should render. | Graphic | ||
x : Number = 0
X offset. | Graphic | ||
y : Number = 0
Y offset. | Graphic |
Method | Defined By | ||
---|---|---|---|
Graphiclist(... graphic)
Constructor. | Graphiclist | ||
Adds the Graphic to the list. | Graphiclist | ||
Removes the Graphic from the list. | Graphiclist | ||
removeAll():void
Removes all Graphics from the list. | Graphiclist | ||
removeAt(index:uint = 0):void
Removes the Graphic from the position in the list. | Graphiclist | ||
render(target:BitmapData, point:Point, camera:Point):void
Renders the graphic to the screen buffer. | Graphic | ||
update():void
Updates the graphic. | Graphic |
children | property |
children:Vector.<Graphic>
[read-only] All Graphics in this list.
public function get children():Vector.<Graphic>
count | property |
count:uint
[read-only] Amount of Graphics in this list.
public function get count():uint
Graphiclist | () | Constructor |
public function Graphiclist(... graphic)
Constructor.
Parameters... graphic — Graphic objects to add to the list.
|
add | () | method |
public function add(graphic:Graphic):Graphic
Adds the Graphic to the list.
Parameters
graphic:Graphic — The Graphic to add.
|
Graphic — The added Graphic.
|
remove | () | method |
public function remove(graphic:Graphic):Graphic
Removes the Graphic from the list.
Parameters
graphic:Graphic — The Graphic to remove.
|
Graphic — The removed Graphic.
|
removeAll | () | method |
public function removeAll():void
Removes all Graphics from the list.
removeAt | () | method |
public function removeAt(index:uint = 0):void
Removes the Graphic from the position in the list.
Parameters
index:uint (default = 0 ) — Index to remove.
|