I'd like to adjust the width of the default ScrollBar that appears inside of a Flash ComboBox. From my research on various forums, it seems like the best approach would be to subclass fl.controls.ScrollBar, which I've tried doing here:
package helpers {
import fl.controls.ScrollBar;
public class CustomScroller extends fl.controls.ScrollBar {
public function CustomScroller() {
super();
trace("custom scroller in full effect!");
width = 40;
}
}
}
Then, in my library, I've taken the "ScrollBar" movie clip that appears upon initial creation of a ComboBox and changed the base class to "helpers.CustomScroller". I've got three ComboBox instances on the stage; however, none of them are showing anything but the default width, nor am I seeing the output from the trace()
statement in my constructor.
Any idea why this isn't working? Thanks for your consideration.