Oh my. Let's try one more thing, if it doesn't work, pack the whole project and send me link via private message.
change parent one more time:
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.events.ProgressEvent;
var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest("projectgallery_cutlimestone.swf");
myLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgressHandler);
myLoader.load(url);
function loadProgressHandler(event:Event):void {
if(myLoader.content) {
addChild(myLoader.content);
myLoader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, loadProgressHandler);
}
}
OK, fixed.
The main problem was in naming your Document classes. In both files, the Document class was Main. Flashplayer caches all class definitions so they can be reused and shared between loaded swfs. This is really useful feature if you're aware of it. Otherwise it can cause quite a headache. The errors seem to pop out for no apparent reason etc. I renamed the Document class of first swf to Index. Make sure you never ever have two document classes with the same name. You should change the Main also to CutLimestone if you plan on loading other galleries.
I also made some smaller changes - make sure to copy them to new galleries so they all behave the same.
Good luck!
North America
Europe, Middle East and Africa
Asia Pacific