_root Transitions

hey there, i know this sounds stupid but i made a crucial mistake in a function, but cannot work it out…

i’m builting a site where there are transitions through the areas, but i do not want to load external files…just jump from a _root frame to another, in the end of the outro animation. confusing? hope not!

my menu buttons have this code:

on (release) {
_root.area.gotoAndPlay (11);// will play the outro animation

this.frame = function (){
_root.gotoAndPlay(6)
};
}

and then, in the end of the outro animation:
stop();
frame()

where’s my mistake?

thanks in advance!