Skip to content

Commit

Permalink
(split)Add getComponent/component to Component
Browse files Browse the repository at this point in the history
- returns underlayer Sprite object
  • Loading branch information
sergey-miryanov committed Jan 14, 2012
1 parent b42e3f3 commit 31f3f16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bit101/components/Component.hx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class Component implements IEventDispatcher
public var visible(getVisible, setVisible):Bool;
public var graphics(getGraphics, null):Graphics;
public var parent(default, null):Dynamic;
public var component (getComponent, null) : Sprite;
public var alpha(getAlpha, setAlpha):Float;

public var tag(getTag, setTag):Int;
Expand Down Expand Up @@ -526,4 +527,9 @@ class Component implements IEventDispatcher
{
_comp.visible = true;
}

public function getComponent () : Sprite
{
return _comp;
}
}

0 comments on commit 31f3f16

Please sign in to comment.