thanks for the speedy reply. the code that you gave me, would that have to be loaded into both the swf containing the images and the main stage, or just the main stage?
I imagine you could record the clicked image data into an object created by the loaded swf and pass a reference to it to a function in the main stage that would complete the process. I've never actually done it so maybe one of the other as3 wizards here could clarify.
ok, so i dont think i worded this properly. cause after finally getting the darned thing to load it loads in the external swf... i need it to load in the main swf....
Code:
galleryMC.award01Btn.addEventListener(MouseEvent.CLICK, showImage);
function showImage(evt:Event){
var request:URLRequest = new URLRequest("award1.swf");
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
function loadProgress(event:ProgressEvent):void {
var percentLoaded:Number = event.bytesLoaded/event.bytesTotal;
percentLoaded = Math.round(percentLoaded * 100);
trace("Loading: "+percentLoaded+"%");
}
function loadComplete(event:Event):void {
trace("Complete");
}
loader.load(request);
root.addChild(loader);