Re:[flexcoders] custom spark panel skin issue

2010-01-26 Thread j2me_soul
The Button skin like this CloseButtonSkin.mxml ... protected function skin1_creationCompleteHandler(event:FlexEvent):void{ var downsolidcolor:uint = hostComponent.getStyle('close-button-down-background-solid-color'); var overcolor:uint = getStyle('close-button-over-background-color'); var

[flexcoders] custom spark panel skin issue

2010-01-26 Thread j2me_soul
I copy and paste the spark.skins.spark.PanelSkin to create a custom Panel with a close button.There are two problem. I defined some style in the CusPanel.mxml which inherit the Panel. How can let the button in the skin class access these properties? The second problem is when I clicked the butto