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 {
        botonMenu.addEventListener(MouseEvent.CLICK, fMenuDinamico);

        function fMenuDinamico(event:MouseEvent):void{
I don't know how to redirect to wherever I want in the timeline from the .as file.

Thanks for the help!