Hello Florian, thanks for your reply!
Unfortunately, I've tried both (relative to the megazine.swf and relative to the loader swf), and both give me the same result: the correct number of pages in the correct size (meaning that the xml has loaded succesfully), but the pages remain blank.
Here's what I'm doing in my loader swf:
var brochureLoader:Loader = new Loader();
brochureLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, brochureLoading);
brochureLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, brochureLoaded);
brochureLoader.load(new URLRequest("brochure/megazine.swf"));
function brochureLoading(e:ProgressEvent):void {
//
}
function brochureLoaded(e:Event):void {
brochureLoader.x=stage.stageWidth>>1;
brochureLoader.y=stage.stageHeight>>1;
addChild(brochureLoader);
}
stop();
In this scenario, the xml-file needs to be in the same directory as the loader swf in order to load.
Then, this is how I try to get to my images in the xml:
<img src="src/BPY650_YT_Brochure_SS09-Page1.jpg" aa="true"/>
If I put the src-folder in the same directory as the loader swf: no images show.
If I put the src-folder in the same directory as the megazine.swf: no images show.
What could be wrong? And: is there another (better?) way to embed megazine inside another swf?
Thanks in advance!
0L4F