Skip to main content
Participant
November 5, 2009
Question

BorderSkin replacing RectanglarBorder problems

  • November 5, 2009
  • 1 reply
  • 774 views

Ever since moving to SDK 4 (build 10485) I have noticed that where previous my border's were instances of RectangularBorder they are now mx.skins.spark.BorderSkin.

I was wondering does BorderSkin have the same styling support.

My problem is in the following code;

private function createBorderSkin():void

{

  var borderClass:Class = getStyle("borderSkin");

  if(borderClass != null)

  {

    _border  = new borderClass();

    _border.styleName = this;

    addChild(_border);

  }

}   

My CSS has cornerRadius, backgroundColor, borderColor values set that were previously being acknowledged.

Now ever since the borderClass instance is of type BorderSkin instead of RectangularBorder, none of the styles are being applied.

regards,

Bjorn

This topic has been closed for replies.

1 reply

Participant
November 5, 2009

Infact i think this has more to do with my itemRenderers not inherit their styles from the list.

It was an Image component with the border within an itemRenderer that was not drawing properly.