Newbie Convert button code to frame code

Hi all!

I guess this is a really simple one.

I have a button with the following code attached to it:

this.onRelease = function() {
    SWFAddress.setValue('/portfolio/');
}
this.onRollOver = function() {
    SWFAddress.setStatus('/portfolio/');
}
this.onRollOut = function() {
    SWFAddress.resetStatus();
}

I want to use this code on a frame. Is it onLoad I need to use??