AS2 _root to AS3 root

Hello, im a having a few issues with root when i converted to AS3, what i need is when im on a certain page like services.html , i need the swf to go to a certain frame in the main timeline. Any ideas

							 								 								 															 								 									 										 										Attach Code 										 											

if (root.what_page == “services”) {
gotoAndPlay(“services”);
}
if (root_mc.what_page == “work”) {
gotoAndPlay(“work”);
}
if (root_mc.what_page == “templates”) {
gotoAndPlay(“templates”);
}
if (root_mc.what_page == “contact”) {
gotoAndPlay(“contact”);
}

var buttonA:Array = [home_mc,services_mc,work_mc,temp1_mc,contact_mc];

for(var i:int=0;i<buttonA.length;i++){
buttonA*.addEventListener(MouseEvent.ROLL_OVER,rollOverF);
buttonA*.addEventListener(MouseEvent.ROLL_OUT,rollOutF);
buttonA*.addEventListener(MouseEvent.CLICK,clickF);
}

function rollOverF(e:MouseEvent){
MovieClip(e.currentTarget).gotoAndPlay(“over”);
}
function rollOutF(e:MouseEvent){
MovieClip(e.currentTarget).gotoAndPlay(“out”);
}
function clickF(e:MouseEvent){
var mc:MovieClip = MovieClip(e.currentTarget);
var linkS:String = mc.name.substring(0,mc.name.indexOf("_"));
navigateToURL(new URLRequest(linkS));
}