flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rodneyh <rodney.herrm...@gmail.com>
Subject Re: AW: [4.14] how to use the new FlatSpark theme?
Date Tue, 06 Jan 2015 06:22:10 GMT
Not sure if this has been reported, but I believe there may be a bug in the
flatspark.skins.ButtonIconSkin.mxml as of Flex SDK 4.14 nightly build #61...
The default state of the buttonIcon is up(stateUp). The fill_over,
fill_down, and fill_disabled rects are included in the corresponding states
only. So if the cornerRadius != inherited &/or non-inherited property
returned by getStyle() it will set the fill_up.radiusX property but you will
get a cannot access a null object or property when it tries to set the
radiusX property of the other rects because they are not included in the
current state.override protected function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) : void{	var
cr:Number = getStyle("cornerRadius");					if (cornerRadius != cr)	{	
cornerRadius = cr;		fill_up.radiusX = cornerRadius;		fill_over.radiusX =
cornerRadius;		fill_down.radiusX = cornerRadius;		fill_disabled.radiusX =
cornerRadius;	}					super.updateDisplayList(unscaledWidth,
unscaledHeight);}I have tested this against the 4.14 nightly build #61 ...



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/4-14-how-to-use-the-new-FlatSpark-theme-tp43479p44174.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Mime
View raw message