Multiple Loader Components?

Ok this one I can’t figure out, cause I simply am not a programmer/coder, so I wouldn’t know where to begin. Hopefully someone here might know :slight_smile:

Two questions ([COLOR=RoyalBlue]if the first one is not possible, at least try to help me with the second one please[/COLOR]):

  1. How would I go about adding a second Loader component to my website? I’m using the Loader component to load in .swf pages for my flash website. And I’d like the gallery page to be on a separate Loader component which appears above whatever page I’m on, so when I close the gallery, the page I was on before I clicked on the gallery button will still be displaying.

I tried added a second Loader component on a different layer, but it gave me this error:

Warning The linkage identifier ‘Loader’ was already assigned to the symbol ‘galleryLoader’, and cannot be assigned to the symbol ‘pageLoader’, since linkage identifiers must be unique.

  1. How do I add the event to close the loaded content inside a Loader component? I use this one to load something:

menu_mc.gallery_mc.onRelease = function() {
pageLoader.contentPath =“gallery.swf”;
}

Is there a way to unload the content? Cause I want the gallery to be like a popup, which can be closed by clicking on a “close” button.

EDIT: Ok I figured out how to use a second Loader component and not get that Compiler Error. Basically like before, but this time I went to the properties of the gallery Loader (in Library) and unticked “Export for Actionscript”. Will this cause any problems? Like perhaps when I create my preloader for the contents of the gallery Loader?