Here's a good question, with styling in mind.....in flex 1.5, you had access
directly to the movieclips that made a component. Aka I could do something
like this:
<mx:ComboBox>
<mx:Script>
function draw():Void {
super.draw();
border_mc.borderStyle = "none";
border_mc.setStyle("borderStyle","none");
text_mc.border_mc.borderStyle = "none";
text_mc.border_mc.setStyle("borderStyle","none");
downArrow_mc.draw();
border_mc.draw();
text_mc.border_mc.draw();
}
</mx:Script>
</mx:ComboBox>
Why I had to set it twice is beyond me, it wouldn't work without it but
anyways....the only way I figured out about these movieclips that made the
components and their names was via asking Adobe Support (this was Flex
1.5though, remember). Nowadays in Flex2, you have access to the
source....but
what I'm curious about, is it good practice to be going for these movieclips
for styling, or is it even possible in flex2? (haven't tried honestly) For
his button dilema, you could technically do what I did with border_mc.....if
it works still.
-Jon