User Guide
90 Chapter 5: Customizing Components
13.
Enter the following code:
import mx.controls.ComboBox
import mx.controls.scrollClasses.ScrollBar
class MyComboBox extends ComboBox{
function getDropdown():Object{
var oldName = ScrollBar.prototype.downArrowDownName;
ScrollBar.prototype.downArrowDownName = "MyScrollDownArrowDown";
var r = super.getDropdown();
ScrollBar.prototype.downArrowDownName = oldName;
return r;
}
}
14.
Select File > Save and save this file as MyComboBox.as.
15.
Return to the file MyComboTest.fla.
16.
Click a blank area on the Stage and, in the Property inspector, click the Publish Settings button.
17.
Click the ActionScript Version Settings button.
18.
Click the Add New Path (+) button to add a new classpath, and select the Target button to
browse to the location of the MyComboBox.as file on your hard disk.
19.
Select Control > Test Movie.