# Selecting the classes/packages to import at runtime

**URL:** https://forum.kirupa.com/t/selecting-the-classes-packages-to-import-at-runtime/249351
**Category:** flash
**Created:** [January 17, 2008, 8:22pm UTC](https://forum.kirupa.com/t/selecting-the-classes-packages-to-import-at-runtime/249351 "2008-01-17T20:22:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ayman](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Ayman](https://forum.kirupa.com/u/Ayman)
#### Post date: [January 17, 2008, 8:22pm UTC](https://forum.kirupa.com/t/selecting-the-classes-packages-to-import-at-runtime/249351/1 "2008-01-17T20:22:23Z")

</div>

Before starting an class or code, you should put all your import statements…

Now I have flash application, which offers a search feature which relies on some pretty huge classes. The user is unlikely to use this feature. However, importing those classes anyway adds some pretty large kbs to my application. Is there a way to import these classes at runtime ONLY IF the user chooses to use this feature?

Thanks
