# Multiple Loader Components?

**URL:** <https://forum.kirupa.com/t/multiple-loader-components/317556>\
**Category:** flash\
**Created:** [December 24, 2010, 11:23am UTC](https://forum.kirupa.com/t/multiple-loader-components/317556 "2010-12-24T11:23:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BottleShock](https://avatars.discourse-cdn.com/v4/letter/b/ee7513/32.png) [@BottleShock](https://forum.kirupa.com/u/BottleShock)\
**Post date:** [December 24, 2010, 11:23am UTC](https://forum.kirupa.com/t/multiple-loader-components/317556/1 "2010-12-24T11:23:55Z")

</div>

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 🙂

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?
