# Importing events

**URL:** <https://forum.kirupa.com/t/importing-events/255400>\
**Category:** Uncategorized\
**Created:** [March 21, 2008, 11:47pm UTC](https://forum.kirupa.com/t/importing-events/255400 "2008-03-21T23:47:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mleep](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@mleep](https://forum.kirupa.com/u/mleep)\
**Post date:** [March 21, 2008, 11:47pm UTC](https://forum.kirupa.com/t/importing-events/255400/1 "2008-03-21T23:47:08Z")

</div>

besides

```auto
import mx.events.*;

```

what is a way to specifically import only mouse, and only keyboard events?

side question but related, also the “addListener” that is used on MovieClipLoaders for example, what specific event import is that using?

( the events.\* will not work for my particular project and i need to import all of these classes individually )

```auto
var mainShapeMaskLoader = new MovieClipLoader();
            var mainShapeMaskListener = new Object();
            mainShapeMaskListener.parent = this;
            mainShapeMaskListener.onLoadInit = function ( obj ) {
                obj._x = _root.mainROOT.xmlInfo.GAMEUI.WINDOWS.WIN[num].MASKSHAPE.attributes.imgX;
                obj._y = _root.mainROOT.xmlInfo.GAMEUI.WINDOWS.WIN[num].MASKSHAPE.attributes.imgY;
                obj._xscale = _root.mainROOT.xmlInfo.GAMEUI.WINDOWS.WIN[num].SHAPE.attributes.imgScale;
                obj._yscale = _root.mainROOT.xmlInfo.GAMEUI.WINDOWS.WIN[num].SHAPE.attributes.imgScale;
                //Apply mask to texture
                //this.parent.mainShapeLoader( num );
                this.parent.loadMaskedImage( obj, num, dir );
                //this.parent.mainShape( num, dir );
            }
            mainShapeMaskLoader.addListener(mainShapeMaskListener);
            mainShapeMaskLoader.loadClip( dir + _windows[num].MASKSHAPE.attributes.activeImg, windowObj.mainShapeMask );

```
