BIT-101 [2003-2017]

MX 2004 UIComponent borderColor


I was playing with border styles today. I ran into this before as well – on any components that have borders, the help documents say that the following properties set various border elements:

borderColor a
highlightColor b
borderColor c
shadowColor d
borderCapColor e
shadowCapColor f
shadowCapColor g
borderCapColor h

with the letters referring to a diagram you can see in the help section. “a” refers to the very top bar of the border. Yet, setting borderColor has no effect on that top bar. After digging around through RectBorder.as buried deep in the skin classes folder, I found that “a” is actually set by the property “buttonColor”. Hope that saves someone some frustration.

On a side note, I couldn’t help posting this little snippet I found in CustomBorder.as:

if (horizontal)
{
&nbsp&nbsp&nbsp&nbspminHeight = l_mc._height;
&nbsp&nbsp&nbsp&nbspminWidth = l_mc._width;
}
else
{
&nbsp&nbsp&nbsp&nbspminHeight = l_mc._height;
&nbsp&nbsp&nbsp&nbspminWidth = l_mc._width;
}

You gotta love stuff like that.

« Previous Post
Next Post »