Why is this AS not working?

I’ve got buttons on the main timeline that when released they execute this code:

 
on (release) {
_global.otherSectionButton == "people"; 
 
if (_root.currMovie == undefined) {
  _root.currMovie = "other_background";
  loadMovie("other_background.swf", _parent.sub_nav);
 } else if (_root.currMovie != "other_background") {
  if (_parent.sub_nav._currentframe >= _parent.sub_nav.midframe) {
   _root.currMovie = "other_background";
   _parent.sub_nav.play();
  }
 }
}

then once the background.swf stops at this certain frame this script runs …

 
aboutbtn = function()
{
 if (_global.otherSectionButton == "about") loadotherSection.loadMovie("about.swf");
 else this.onEnterFrame = peoplebtn;
}
peoplebtn = function()
{
 if (_global.otherSectionButton == "people") this.loadotherSection.loadMovie("people.swf");
 else this.onEnterFrame = contactbtn;
}
contactbtn = function()
{
 if (_global.otherSectionButton == "contact") this.loadotherSection.loadMovie("contact.swf");
 else this.onEnterFrame = null;
}
this.onEnterFrame = aboutbtn;

Any help would be greatly appreciated!

change [AS]_global.otherSectionButton == “people”;[/AS] to [AS]_global.otherSectionButton = “people”;[/AS]

Nope that didn’t work … thanks for trying …

Any other ideas are welcome! Please and thanks! :thumb:

Well, it was certainly one of the problems. Mind posting the FLA to get a better understanding?

Yeah sure …

Look at frame 123 to see where the AS is …

http://www.cskern.com/newsite/other_background.fla

Thanks.