Error #1065: variable undefinedpath to container mc in loaded swf not recognised

Hello All

I am having problems with solving following problem and your help would be very much appreciated.

One movie, named Gallery_1, with hotpots via which external swfs are loaded into a container mc of the main timeline of the Gallery_1 movie, works perfectly by now.

Via another button function the Gallery_1.swf is loaded into a container mc on the timeline of the main swf, which works alright as well, but when one then clicks the hotspots of the Gallery_1.swf one gets following error message:

ReferenceError: Error #1065: Variable GallerySite not defined.
at HotSpot1/PictureLoad()
at HotSpot1/PictureCall()

Here is the HotSpot1 Class:

package {

import flash.display.*;
import flash.events.*;
import flash.net.URLRequest;
import flash.display.DisplayObject;
import flash.display.Loader;
import WebSite;
import GallerySite;


public class HotSpot1 extends MovieClip{
	var reqName:String;
	var target:DisplayObject;
	var loader:Loader = new Loader();
	
	function HotSpot1():void{
		this.addEventListener(MouseEvent.CLICK, PictureCall);
		this.buttonMode = true;
	}

	public function PictureCall(event:MouseEvent):void{
		reqName = this.name + ".swf";
		trace(reqName);
		trace(this.parent.parent.name);
		target = this.parent.getChildByName("picture_container");
		trace(target);
		trace(target.name);
		trace(this.parent.getChildIndex(target));
		var req:URLRequest = new URLRequest(reqName);
		loader.load(req);
		this.PictureLoad();
	}
	public function PictureLoad():void{
		GallerySite(root).picture_container.addChild(loader);
	}
}

}

The traces in the eventHandler function work alright.

I wildly imported all relevant classes I could think of, e.g. the GallerySite class to the WebSite class and vice versa, and tried various variable definitions, but am at a loss by now as to where to define the GallerySite variable and don’t think that I would get any further without help.