# \[AS2\] External SWF with Asset Library Possible?

**URL:** <https://forum.kirupa.com/t/as2-external-swf-with-asset-library-possible/298802>\
**Category:** flash\
**Created:** [October 25, 2009, 5:06pm UTC](https://forum.kirupa.com/t/as2-external-swf-with-asset-library-possible/298802 "2009-10-25T17:06:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mental](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@Mental](https://forum.kirupa.com/u/Mental)\
**Post date:** [October 25, 2009, 5:06pm UTC](https://forum.kirupa.com/t/as2-external-swf-with-asset-library-possible/298802/1 "2009-10-25T17:06:44Z")

</div>

Hi,

So I’ve seen many a tutorial on how to do this in AS3 but I’m trying to work out if there is a way to have all my assets for a game I’m making external, so they can be shared with a level editor that resides in a different .swf and won’t be loaded twice.

I spent a while looking and found out about Shared Libraries, which at first I thought would solve the problem, until you find out that you can’t use attachMovie to attach anything to the stage at run-time if it is an imported object, which just sucks to be frank :sigh:.

So I then thought of a work-around for that by adding these shared objects inside a MovieClip that wasn’t shared so I could add that from the stage and access the clip inside using the instance name that I would assign it. This worked fine until I remembered that I had was using several Bitmaps and the BitmapData class, hence if I placed these bitmaps in a MovieClip I can’t even assign an instance name to access them to perform the code that I wish to on them.

If you got this far, thanks for taking the time to read it and if you have any ideas or solutions I would be happy to hear them.

Thanks,  
Mental.
