# How to use classes

**URL:** <https://forum.kirupa.com/t/how-to-use-classes/163056>\
**Category:** Uncategorized\
**Created:** [September 19, 2005, 12:58pm UTC](https://forum.kirupa.com/t/how-to-use-classes/163056 "2005-09-19T12:58:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amyanet1](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@amyanet1](https://forum.kirupa.com/u/amyanet1)\
**Post date:** [September 19, 2005, 12:58pm UTC](https://forum.kirupa.com/t/how-to-use-classes/163056/1 "2005-09-19T12:58:13Z")

</div>

I have a class “name1.name2.name3.classname” defined in #initclip #endinitclip which is exported as \_\_Packages.name1.name2.name3.classname with ‘Export for ActionScript’ and 'Export in First frame’option. The class contains functions to transdorm images coming from external source.But when I try to do something like this in the main timeline first framescript

var imgObj = new name1.name2.name3.classname();

the Obj doesnot get created. I have the class in the movieclips first frame. Do I need to create a classname.as file in the path mentioned in the class and remove it from the first frame of the clip.

where name1/name2/name3 are path folders
