# Confusion on Importing/Using Classes

**URL:** <https://forum.kirupa.com/t/confusion-on-importing-using-classes/228567>\
**Category:** flash\
**Created:** [June 8, 2007, 11:20pm UTC](https://forum.kirupa.com/t/confusion-on-importing-using-classes/228567 "2007-06-08T23:20:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lonerhino](https://avatars.discourse-cdn.com/v4/letter/l/45deac/32.png) [@lonerhino](https://forum.kirupa.com/u/lonerhino)\
**Post date:** [June 8, 2007, 11:20pm UTC](https://forum.kirupa.com/t/confusion-on-importing-using-classes/228567/1 "2007-06-08T23:20:42Z")

</div>

I have a function that adds a dropshadow and blur to a MovieClip onstage. I tweaked it to AS3 and it works fine when the code is on the timeline.

However, If I create a simple class, copy the script and paste into the new class document , cannot get the thing to work. This should be so simple and instead it’s so frustrating. I’ve looked all over the place and it just confirms I have some serious holes in my knowledge.  
[LIST]  
[_]If I want to apply filters to certain objects onstage, do I import the class or set it as the document class for the fla?  
[_]If I put both \*\*fla \*\*and \*\*as \*\*files on my desktop just to get basics down - then packages and classpaths are not an issue - correct?  
[\*]When the class is associated to the Fla file, does it automatically instantiate or must I use a constructor?[/LIST]In summary, lets say my class is called **MyFilters.as** and within that I have a **setShadow** function that includes both a blurFliter constructor and shadowfilter constructor. My **setShadow** function is called within the class file itself. How do I use **MyFilters.as** with a fla file? The target is set within the function inside the class.

mcOuterClip.mcInnerClip.filters = [shadowFilter, blurFilter];

Thanks for your patience in reading through this - clues appreciated!
