gotoAndPlay question

hello all,

is it possible to create a gotoAndPlay function??

would this be valid?

_root.gotoAndPlay = function(){

}