[flexcoders] Re: Flex 4 - Is it possible to create a generic Button skin

2010-04-27 Thread bhaq1972
Thanks. That worked! Something else I tried also worked. Its based on original skin and uses updateDisplayList()...code below But your suggestion is more elegant and better! Thanks for your help code override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Numb

Re: [flexcoders] Re: Flex 4 - Is it possible to create a generic Button skin

2010-04-27 Thread Haykel BEN JEMIA
Of course! The getStyle function calls need to be set in curly braces like: source.up="{getStyle('upSkin')}" Sorry! Haykel Ben Jemia Allmas Web & RIA Development http://www.allmas-tn.com On Tue, Apr 27, 2010 at 3:03 PM, bhaq1972 wrote: > > > Hasn't worked. > > --- In flexcoders@yahoogroup

[flexcoders] Re: Flex 4 - Is it possible to create a generic Button skin

2010-04-27 Thread bhaq1972
Hasn't worked. --- In flexcoders@yahoogroups.com, Haykel BEN JEMIA wrote: > > If it does not work try replacing getStyle with hostComponent.getStyle. > > Haykel Ben Jemia > > Allmas > Web & RIA Development > http://www.allmas-tn.com > > > > > On Tue, Apr 27, 2010 at 1:43 PM, bhaq1972 wr

Re: [flexcoders] Re: Flex 4 - Is it possible to create a generic Button skin

2010-04-27 Thread Haykel BEN JEMIA
If it does not work try replacing getStyle with hostComponent.getStyle. Haykel Ben Jemia Allmas Web & RIA Development http://www.allmas-tn.com On Tue, Apr 27, 2010 at 1:43 PM, bhaq1972 wrote: > > > Its a great idea but I haven't been able to make it work. > > I will try again after lunch (n

[flexcoders] Re: Flex 4 - Is it possible to create a generic Button skin

2010-04-27 Thread bhaq1972
Its a great idea but I haven't been able to make it work. I will try again after lunch (need a break) --- In flexcoders@yahoogroups.com, Haykel BEN JEMIA wrote: > > Try this (not etsted): > > xmlns:fx="http://ns.adobe.com/mxml/2009"; > xmlns:s="library://ns.adobe.com/flex/spark"> > > > [H