# Importing Classes in to AS3 classes?

**URL:** https://forum.kirupa.com/t/importing-classes-in-to-as3-classes/204318
**Category:** Uncategorized
**Created:** [October 18, 2006, 8:45pm UTC](https://forum.kirupa.com/t/importing-classes-in-to-as3-classes/204318 "2006-10-18T20:45:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![elliottg](https://avatars.discourse-cdn.com/v4/letter/e/b77776/32.png) [@elliottg](https://forum.kirupa.com/u/elliottg)
#### Post date: [October 18, 2006, 8:45pm UTC](https://forum.kirupa.com/t/importing-classes-in-to-as3-classes/204318/1 "2006-10-18T20:45:04Z")

</div>

I am not sure how to import multiple classes into an AS3 class. Also I am bit confused on how “package” works now.

This is currently what I have and its wrong:

```auto

package {
	import flash.display.*;
      import flash.net.URLRequest;
      import flash.events.Event;
	
class LoadImage {

public function LoadImage() {
var container:Sprite = new Sprite();
addChild(container);

var pictLdr:Loader = new Loader();

var pictURL:String = "catfishSMv.jpg"
var pictURLReq:URLRequest = new URLRequest(pictURL);
pictLdr.load(pictURLReq);
pictLdr.contentLoaderInfo.addEventListener(Event.COMPLETE, imgLoaded); 
function imgLoaded(e:Event):void {
    container.addChild(pictLdr.content); 
  }
 }
}
}

```

How should I actually do this?

Thanks

---

<div class="post-metadata">

### Author: ![elliottg](https://avatars.discourse-cdn.com/v4/letter/e/b77776/32.png) [@elliottg](https://forum.kirupa.com/u/elliottg)
#### Post date: [October 25, 2006, 5:52pm UTC](https://forum.kirupa.com/t/importing-classes-in-to-as3-classes/204318/2 "2006-10-25T17:52:06Z")

</div>

Worked great. Thanks for the help. Sorry it took me ages to get back to you on this one.
