package { import flash.system.*; import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var vp = MyClass; var pet = new vp(); } } } class MyClass { private var pet; public function MyClass ( ) { trace("constructor"); } }