# How to clear Classes that were loaded from an external swf library?

**URL:** <https://forum.kirupa.com/t/how-to-clear-classes-that-were-loaded-from-an-external-swf-library/306118>\
**Category:** flash\
**Created:** [March 10, 2010, 12:16am UTC](https://forum.kirupa.com/t/how-to-clear-classes-that-were-loaded-from-an-external-swf-library/306118 "2010-03-10T00:16:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beenetto](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@beenetto](https://forum.kirupa.com/u/beenetto)\
**Post date:** [March 10, 2010, 12:16am UTC](https://forum.kirupa.com/t/how-to-clear-classes-that-were-loaded-from-an-external-swf-library/306118/1 "2010-03-10T00:16:13Z")

</div>

Hi,

Im working on a App that is using a external swf as a container for some graphical assets. An asset is a movieClip symbol with a class name attached to it. for example ASSET\_1. I load the swf with the Loader class into the app. Its working fine I can also access ASSET\_1 with this technic:

//— inside onLoaded

var ASSET\_1:Class = event.target.applicationDomain.getDefinition(“ASSET\_1”) as Class;

var asset:MovieClip = new ASSET\_1() as MovieClip;

addChild(asset);

my problem start when im loading a second swf and than i try to access “ASSET\_1” again, and the class doesn’t update itself, the content is the same as in the firs one.

any idea?
