aha! thanks a lot!

On Sat, Jan 4, 2014 at 7:18 PM, Michael A. Labriola <
labri...@digitalprimates.net> wrote:

> >Anyone have a clue where skinParts is getting populated from? Its not
> overridden in a derived class, so really not sure how/whats populating it?
>
> It's compiler magic. The compiler creates a static variable called
> _skinParts on each class with the skin parts for the class in it. It then
> overrides the getter to return the static var, so:
>
> So, if I added this to my application:
>
>         [SkinPart(required="false")]
>         public var thingies:BitmapImage;
>
> The compiler would generate this:
>
> private static var _skinParts:Object = {contentGroup:false,
> thingies:false, controlBarGroup:false};
>
> override protected function get skinParts() : Object
> {
>     return _skinParts;
> }// end function
>
> Mike
>
>

Reply via email to