Simple External Library Error

Peepz,

i’ve got a class named App:


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:


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 :stuck_out_tongue: ?

i attached the documents

thnx