Couple of questions concerning buttons and AS

Hi,

  1. I’ve got a button with the following as on it:

[AS]on (rollOver) {
if (this.exhibit._alpha != 100) {
this.exhibit._alpha += 20;
} else {
this.exhibit._alpha = 100;
}
}[/AS]

I am trying to get it to fade in to 100 Alpha…but it just jumps to 20. How can I get it to fade in at a speed of 20.

  1. I’ve got a mc that was previously a button with the following code on it:

[AS]on (release) {
_root.changePhoto(1);
this.txtIndex = this.pIndex+1;
}[/AS]

When it was a buttons it would change the variable no problem…now that is it a movie clip is performs the function but won’t change the var??

Much thanks.