Disable button at frame 2

Hi Everyone~

I have my prevButton that I would like to disable when it reaches a certain frame of my movie…

I thought a simple if statement would do… but i’m new at actionscripts and it doesn’t seem to work…:hurt:

Right now, I’m applying this to my prevButton

if(mygallery.frame=2){
this.enabled = false;
}

does this look right? If you can spare a moment, I would really appreciate your help!

Thankyouverymuch.