Button not all that easy

Hey guys!
i need help with this one…

I wanna make a button that shows up onRollOver and that fades back onRollOut… when i hit it I want it do do something else though, like turning blue or whatever… someone who know how I should do?

To get that kind of functionality you’ll need to use a movie clip. Here’s one method to do something like what you are describing, but this may not be suitable for what you are specifically doing. Hopefully it give you an idea.

This is just a movie clip with two frames - the first one is black, the second one blue. It has the following script attached to it:
[AS]onClipEvent (load) {
this.gotoAndStop(1);
this._alpha = 10;
this.selected = false;
this.onRollOver = function() {
delete (this.onEnterFrame);
this.onEnterFrame = function() {
this._alpha += 10;
if (this._alpha == 100) {
delete (this.onEnterFrame);
}
};
};
this.onRollOut = function() {
delete (this.onEnterFrame);
if (this.selected != true) {
this.onEnterFrame = function() {
this._alpha -= 10;
if (this._alpha <= 10) {
delete (this.onEnterFrame);
}
};
}
};
this.onPress = function() {
delete (this.onEnterFrame);
if (selected) {
this.selected = false;
this.gotoAndStop(1);
} else {
this.selected = true;
this._alpha = 100;
this.gotoAndStop(2);
}
};
}[/AS]
Hopefully this will at least serve as some inspiration for you.