Need help desperately

okay i have 2 problems. im making a game in flash

  1. i’ve made a bed mc that when you walk to it and press space its meant to allow you to rest for a day. the code on first frame is;

onClipEvent(enterFrame){
if (Key.isDown(Key.SPACE)) {
if(this.hitTest(_root.character)){
_root.character._y+=15;
nextFrame();
}
}

that takes it to the next frame which contains a button, asking if you want to rest. the button is meant to take you to frame 3 of the mc to show the resting animation. the buttons code is this;

on(release){
_root.day=_root.day+1
if(_root.plant1age>0){
_root.plant1age=_root.plant1age+1;
nextFrame();
}

This does not work. the nextFrame part

i have a box that allows you to grow plants and it takes the plants age and is meant to skip to a certain frame depending on the. heres the code on the button that allows it to do that;

on(release){
trace(_root.plant1age);

if(_root.plant1age>0 && _root.plant1age<5){
    trace("age1");
gotoAndStop("plant1age1");

}
if(_root.plant1age>=5 && _root.plant1age<10){
trace(“age5”)
gotoAndStop(“plant1age5”);
}
else{nextFrame();}

}

the “plant1age1” and “plant1age5” tags are within the growbox mc. no matter what it goes to the age1

any help would be greatly appreciated, ive been working on this for hours. thanks in advance