# Accessing a movies library through SWFLoader

**URL:** <https://forum.kirupa.com/t/accessing-a-movies-library-through-swfloader/307834>\
**Category:** flash\
**Created:** [April 11, 2010, 4:52pm UTC](https://forum.kirupa.com/t/accessing-a-movies-library-through-swfloader/307834 "2010-04-11T16:52:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sammo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sammo/32/779_2.png) [@Sammo](https://forum.kirupa.com/u/Sammo)\
**Post date:** [April 11, 2010, 4:52pm UTC](https://forum.kirupa.com/t/accessing-a-movies-library-through-swfloader/307834/1 "2010-04-11T16:52:20Z")

</div>

I’m looking into using Flex as a level editor for a flash game project I’m doing for my degree.

However I would like to load the actual game.swf (where all the artwork is done) into the Flex editor, populating a tree/list with all the symbols in the library so they can be visibly referenced in the engine while you are building up your maps and levels.

Is this even possible? I’ve been doing some research for the past few days and I’ve found bits. Like this:

```auto

var loader:Loader = new Loader();
loader.load(url);

loader.addEventListener(Event.INIT, callbackFunction);

// in the callback function:
var mcClass:Class =
loader.content.loaderInfo.applicationDomain.getDefinition("instanceName") as Class;
var mc:MovieClip = MovieClip(new mcClass());

```

[(source)](http://annafilina.com/blog/page/3/?s=flex)

This works if you know the instance names of each symbol in the library, is there a way of getting a list of them all so I can loop through something like the code above or simple getting an array of all the symbols?

Thanks, Sam
