# Simple External Library Error

**URL:** <https://forum.kirupa.com/t/simple-external-library-error/230642>\
**Category:** flash\
**Created:** [June 27, 2007, 8:55pm UTC](https://forum.kirupa.com/t/simple-external-library-error/230642 "2007-06-27T20:55:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blaatorx](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@blaatorx](https://forum.kirupa.com/u/blaatorx)\
**Post date:** [June 27, 2007, 8:55pm UTC](https://forum.kirupa.com/t/simple-external-library-error/230642/1 "2007-06-27T20:55:46Z")

</div>

Peepz,

i’ve got a class named App:

```php

package
{
 import flash.display.Sprite;
 import flash.display.StageAlign;
 import flash.display.StageScaleMode;
 import flash.display.Bitmap;
 
 public class App extends Sprite
 {
  [Embed(source="library.swf", symbol="star")]
  private var Star:Class;
  
  public function App()
  {
   init();   
  }
  private function init():void
  {
   trace("inininininit")
   
   var star:Sprite = new Star();
   addChild(star);
   star.x = 100;
   star.y = 100;  
  }
 }
}

```

when i load it in my swf with this line:

```php

var myApp:App = new App()

```

i get this (off course the init)  
inininininit

TypeError: Error #1007: Instantiation attempted on a non-constructor.  
at App/::init()  
at App$iinit()  
at test\_fla::MainTimeline/test\_fla::frame1()

i got a library.swf with a linkage identifier named: “circle”

i want to make a library with also Fonts whitin it , is this also possible after my error is repaired 😛 ?

i attached the documents

thnx
