I have an external swf that is a character animation. I successfully load it and store it in a MovieClip variable and add it to the stage. It starts playing at frame 0 and everything works fine except that I can't get gotoAndPlay or gotoAndStop to work. I can trace out the currentFrame of the MovieClip, so I have access to the timeline. I don't get any flash errors when using gotoAndPlay, or gotoAndStop it just simple isn't doing anything to the MovieClip.
I am at a loss as to why everything but this would work. Any tips greatly appreciated.
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, LoaderComplete);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, LoaderError);
loader.load(new URLRequest("file.swf");
private function LoaderComplete(e:Event):void
{
var character:MovieClip = e.target.content as MovieClip;
stage.addChild(character);
character.gotoAndStop(10);
}