Creating a borderless DateField control in Flex

1. Creating a Package for overwrite Border class method:

package
{
import mx.skins.Border;

public class BorderlessDateField extends Border
{
override protected function updateDisplayList(w:Number, h:Number):void
{
super.updateDisplayList(w, h);
}

}
}

2. Referancing the ‘BorderlessDateField’ class in styleSheet:

.scBorderlessDateFieldText
{
border-skin:ClassReference(“BorderlessDateField”);
}

3. Calling “scBorderlessDateFieldText” stylesheet class to Datefield Control definition.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s