Calling gotoAndPlay from external AS

Hello
I have two files, the regular .fla file and an external .as file.
Basicly at one point in the .as file I get information of what tag to send the timeline and play and have to use the function gotoAndPlay from the timeline in the .fla file.

This is the .as file:


        import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.IOErrorEvent;
	import flash.events.MouseEvent;
	import flash.net.URLRequest;
	import flash.net.URLLoader;
	import flash.net.*

	public class MenuDinamico extends Sprite{
       
        private function montar():void {
        ...
        [B]botonMenu.addEventListener(MouseEvent.CLICK, fMenuDinamico);[/B]
        }

        [B]function fMenuDinamico(event:MouseEvent):void{
		_level1._root.gotoAndPlay(event.currentTarget.id);
        }[/B]

I don’t know how to redirect to wherever I want in the timeline from the .as file.

Thanks for the help!

_level1._root is actionscript 2 in an actionscript 3 file