Invece di:

_root.gotoAndPlay(30);

secondo me dovresti mettere:

(this.parent as MovieClip).gotoAndPlay(30);

Premesso tu abbia AS3