# Overwriting appdomain definitions with loaded swf ones

**URL:** <https://forum.kirupa.com/t/overwriting-appdomain-definitions-with-loaded-swf-ones/307606>\
**Category:** flash\
**Created:** [April 6, 2010, 6:00pm UTC](https://forum.kirupa.com/t/overwriting-appdomain-definitions-with-loaded-swf-ones/307606 "2010-04-06T18:00:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![StridBR](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@StridBR](https://forum.kirupa.com/u/StridBR)\
**Post date:** [April 6, 2010, 6:00pm UTC](https://forum.kirupa.com/t/overwriting-appdomain-definitions-with-loaded-swf-ones/307606/1 "2010-04-06T18:00:06Z")

</div>

Hey,

would like to know if there’s a way to overwrite a specific definition in the “currentDomain” with one available in a child swf?

I’m loading swfs as assets, and since some of them have code in timeline (mostly stop()'s) i’m exporting symbols as subclasses of my .as

however would like if theres a way to be able to simply write:

var myBall:Ball = new Ball();

instead of:

myBall:Ball = new ballSwfAppDomain.getDefinition(“sandbox.Ball”)

Thanks :sailor:
