Now its time to do the big Object programming, don't be too concerned, the Text format was also an Object.

It all starts out like a custom function.

myButton = function () {


Inside the myButton Function we will write a series of functions using the this keyword which will create mehtods of our object.

The first method uses the onLoad event to apply our carefully considered text format to the text feild we created in the 'but' movieClip. (the 'but' MovieClip will be the foundation of our object)

this.onLoad = function() {
        this.label_txt.setTextFormat(myformat);
};



Next we trap a rollover event. Everytime the mouse rolls over one of the menu items this method changes the color of the text and makes the red bar roll out under the text.

this.onRollOver = function() {
        _root.highLight_mc.removeMovieClip();
        this.label_txt.textColor = 0xFFFFFF;
        // create highlight bar
        this.doHighlight();
};




NB: The first line of this method removes the highlight MovieClip from the root timeline if it has been created by another menu item.