[flexcoders] Re: default skin in flex 3 component

2009-02-17 Thread gwangdesign
Thank Stephen.

--- In flexcoders@yahoogroups.com, Stephen Gilson smgil...@... wrote:

 The doc on skinning is located here:
http://livedocs.adobe.com/flex/3/html/skinning_1.html
 
 Was that helpful?
 
 Stephen
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of gwangdesign
 Sent: Tuesday, February 17, 2009 12:36 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] default skin in flex 3 component
 
 
 Hi,
 
 I am trying to define the default skin (which is ProgrammaticSkin for
 now) for my custom UIComponent. I would like to provide my own
 programmaticSkin (hm.controls.myUICompClasses.BackdropSkin) as
 default; and I am doing it in my UIComponent's style metadata, like so:
 
 [Style(name=backdropSkin,
 type=hm.controls.myUICompClasses.BackdropSkin, inherit=yes)]
 ...
 protected var _backdrop:Class;
 ...
 
 Is this the right way? What type should my _backdrop be? Or do I need
 to provide a CSS anyhow? Or classConstruc()???
 
 When I try to get the style using:
 
 var backdropSkin:Class = getStyle(backdropSkin);
 
 I get type of Object instead of Class.
 
 I appreciate any lead while still poking around the flex
 documentation/sdk code! Sorry everything looks a bit blurred right
 now8) Good night!





[flexcoders] Re: default skin in flex 3 component

2009-02-16 Thread gwangdesign
I am looking at mx.controls.Button now. I guess I am confusing skin
name, skin class and skin as a DisplayObject;)

Hopefully I will figure it out tomorrow morning! Thanks.

--- In flexcoders@yahoogroups.com, gwangdesign gwangdes...@... wrote:

 Hi,
 
 I am trying to define the default skin (which is ProgrammaticSkin for
 now) for my custom UIComponent. I would like to provide my own
 programmaticSkin (hm.controls.myUICompClasses.BackdropSkin) as
 default; and I am doing it in my UIComponent's style metadata, like so:
 
 [Style(name=backdropSkin,
 type=hm.controls.myUICompClasses.BackdropSkin, inherit=yes)]
 ...
 protected var _backdrop:Class;
 ...
 
 
 Is this the right way? What type should my _backdrop be? Or do I need
 to provide a CSS anyhow? Or classConstruc()???
 
 When I try to get the style using:
 
 var backdropSkin:Class = getStyle(backdropSkin);
 
 I get type of Object instead of Class.
 
 I appreciate any lead while still poking around the flex
 documentation/sdk code! Sorry everything looks a bit blurred right
 now8) Good night!