Hi,
I am new to this forum, I joined because I was having a hard time with an assignment I’m doing.
Basically I have to use loaders to bring in 5 separate jpeg images, which I have no problem doing as long as the .swf file and the images are together. Ideally I would like to be able to have the .swf file in one folder and the images in their own folder. Is there a way to do this?
This is my code now:
var myLoader:Loader = new Loader;
myLoader.x = 5
myLoader.y = 18
tibet1.addEventListener(MouseEvent.CLICK, loadJPG);
tibet2.addEventListener(MouseEvent.CLICK, loadJPG);
tibet3.addEventListener(MouseEvent.CLICK, loadJPG);
tibet4.addEventListener(MouseEvent.CLICK, loadJPG);
tibet5.addEventListener(MouseEvent.CLICK, loadJPG);
function loadJPG(event:MouseEvent):void {
var thingToLoad:URLRequest = new URLRequest(event.target.name + ".jpg");
myLoader.load(thingToLoad);
addChild(myLoader);
}
If this helps my path from the fla file is images/tibet_