<mx:Application … creationComplete="initApp()"> <mx:Script> … private var mySound:SoundExample; private function initApp():void { this.mySound = new SoundExample(); trace(this.mySound); } …