[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 hayke...@... wrote: Try this (not etsted): s:SparkSkin xmlns:fx=http://ns.adobe.com/mxml/2009;

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 mbha...@hotmail.com wrote: Its a great idea but I haven't been able to make it work. I will try again

[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 hayke...@... 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

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 mbha...@hotmail.com wrote: Hasn't worked. --- In

[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 s:BitmapImage id=myUpImage includeIn=up / s:BitmapImage id=myOverImage includeIn=over /