# How can I bundle classes within the swf?

**URL:** <https://forum.kirupa.com/t/how-can-i-bundle-classes-within-the-swf/262171>\
**Category:** flash\
**Created:** [June 3, 2008, 9:40pm UTC](https://forum.kirupa.com/t/how-can-i-bundle-classes-within-the-swf/262171 "2008-06-03T21:40:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![invincibleneo](https://avatars.discourse-cdn.com/v4/letter/i/b77776/32.png) [@invincibleneo](https://forum.kirupa.com/u/invincibleneo)\
**Post date:** [June 3, 2008, 9:40pm UTC](https://forum.kirupa.com/t/how-can-i-bundle-classes-within-the-swf/262171/1 "2008-06-03T21:40:49Z")

</div>

I want to bundle tweener class in my as2 swf so that I dont have to include the classes directory along with the swf. How do I do that?

---

<div class="post-metadata">

**Author:** ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)\
**Post date:** [June 3, 2008, 10:19pm UTC](https://forum.kirupa.com/t/how-can-i-bundle-classes-within-the-swf/262171/2 "2008-06-03T22:19:11Z")

</div>

When you import classes with your fla - they are complied with the swf - so you don’t need them side-by-side the swf. If you’re using the #include directive - thats the same but different 🙂

When using an include, the code is still compiled with your clip - but if you simply want to remove the #include statement - you simply copy/paste code from the include doc, right onto the frame where the #include was at.

If you’re talking about making a component - a complied component within the library, I can’t help much with that, but you might search kirupa for compiled components or google that.

hope this helps
