# Question regarding import mx.transition files

**URL:** <https://forum.kirupa.com/t/question-regarding-import-mx-transition-files/262659>\
**Category:** flash\
**Created:** [June 8, 2008, 7:34pm UTC](https://forum.kirupa.com/t/question-regarding-import-mx-transition-files/262659 "2008-06-08T19:34:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vazash](https://avatars.discourse-cdn.com/v4/letter/v/edb3f5/32.png) [@vazash](https://forum.kirupa.com/u/vazash)\
**Post date:** [June 8, 2008, 7:34pm UTC](https://forum.kirupa.com/t/question-regarding-import-mx-transition-files/262659/1 "2008-06-08T19:34:59Z")

</div>

Hi,

I have a question regarding the import mx.transition files. I have a main flash file in which on button actions, different swf files get loaded into an mc. All the swf files use the mx.transitions actionscripts for various movements across the screen. What I want to know is can I just write the 2 import lines in my main.swf file and have the other swf files perform their transitions.

At the moment, each of my swf files has the import statements. Doesn’t this take up load time plus add to my file size?

Regards,  
vazash.

---

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [June 9, 2008, 3:47am UTC](https://forum.kirupa.com/t/question-regarding-import-mx-transition-files/262659/2 "2008-06-09T03:47:17Z")

</div>

If you have import statements in swfs, when you compile them, they will import and embed the class code. So yes, this will add to file size.

Im pretty sure you have to import them tho, otherwise your child swfs will throw an error when you compile them
