[Flashmx2004* Movieclip AS question :D

Hey guys, im making a website with a flash menu/header and I got a question.

Is it possible to make a AS code that checks if a MC been played and if it is that it can do this _root.butportfolio.gotoAndPlay(17); and if its not been played that it does _root.butportfolio.gotoAndPlay(16);

http://www.freewebs.com/mralucard
Here is my site, with the menu, I hope someone of you has a good idear.

I thought the code should look like this.

on (press) {

_root.butcontact.gotoAndPlay(2);
When.butdesign.isloaded.gotoAndPlay(18); ifnot gotoAndPlay17);
When.butovermij.isloaded.gotoAndPlay(18); ifnot gotoAndPlay17);
When.butportfolio.isloaded.gotoAndPlay(18); ifnot gotoAndPlay17);
}

Ofcourse this dosent work, but it may help you understand what I want.