# Runtime code sharing

**URL:** <https://forum.kirupa.com/t/runtime-code-sharing/294676>\
**Category:** flash\
**Created:** [August 18, 2009, 12:35pm UTC](https://forum.kirupa.com/t/runtime-code-sharing/294676 "2009-08-18T12:35:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdev](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@mdev](https://forum.kirupa.com/u/mdev)\
**Post date:** [August 18, 2009, 12:35pm UTC](https://forum.kirupa.com/t/runtime-code-sharing/294676/1 "2009-08-18T12:35:44Z")

</div>

I’m working on a project that uses a lot of “widgets” that are displayed in the main application. Many of these standalone swfs where the same code is incorporated several times ( for instance TweenLite ). I want to optimize this by removing this added code from each widget to reduce load time. I’m working on Flex Builder, but this is an actionscript/flash project. I’m not sure how I should do this, so if someone could explain the basics that would be great 🙂
