设置flex4.0面板底部圆角
到了4.0,必须在skin皮肤类当中设置cornerRadius。具体:编写一个CustomPanelSkin类,去掉默认的updatePlayList方法,自己重新写一个。同时将变量cornerRadius进行绑定。示例源码:/*Definetheskinelementsthatshouldnotbecolorized.Forpanel,borderandtitlebackroundareskinned,butthecontentareaandtitletextarenot.*/staticprivateconstexclusions:Array=["background","titleDisplay","contentGroup"];/***@copyspark.skins.SparkSkin#colorizeExclusions*/overridepublicfunctiongetcolorizeExclusions():Array{returnexclusions;}overrideprotectedfunctionupdateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void{if(getStyle("borderVisible")==true){border.visible=true;background.left=background.top=background.right=background.bottom=1;contents.left=contents.top=contents.right=contents.bottom=1;}else{border.visible=false;background.left=background.top=background.right=background.bottom=0;contents.left=contents.top=contents.right=contents.bottom=0;}dropShadow.visible=getStyle("dropShadowVisible");varcr:Number=getStyle("cornerRadius");if(cornerRadius!=cr)cornerRadius=cr;super.updateDisplayList(unscaledWidth,unscaledHeight);}[Bindable]publicvarcornerRadius:Number;在这里改标题颜色->