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:

Code:
 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{
		_level1._root.gotoAndPlay(event.currentTarget.id);
        }
I don't know how to redirect to wherever I want in the timeline from the .as file.

Thanks for the help!