You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Harbs <ha...@gmail.com> on 2016/07/21 09:40:13 UTC

org.apache.flex.graphics.Circle

Is there a reason addedToParent() is overridden instead of draw()?

Harbs

Re: org.apache.flex.graphics.Circle

Posted by Harbs <ha...@gmail.com>.
draw is called inside GraphicShape.addToParent().

Overriding draw is what you did in Ellipse, and I think that makes more sense.

On Jul 21, 2016, at 6:34 PM, Peter Ent <pe...@adobe.com> wrote:

> The addedToParent() function is called when a Circle is put onto the
> display list; draw wouldn't be called then.
> 
> ‹peter
> 
> On 7/21/16, 5:40 AM, "Harbs" <ha...@gmail.com> wrote:
> 
>> Is there a reason addedToParent() is overridden instead of draw()?
>> 
>> Harbs
> 


Re: org.apache.flex.graphics.Circle

Posted by Peter Ent <pe...@adobe.com>.
The addedToParent() function is called when a Circle is put onto the
display list; draw wouldn't be called then.

‹peter

On 7/21/16, 5:40 AM, "Harbs" <ha...@gmail.com> wrote:

>Is there a reason addedToParent() is overridden instead of draw()?
>
>Harbs