package{ import flash.display.Sprite; public class Main extends Sprite{ var foo; public function Main(){ }public function setFoo (foo:String):void { this.foo = foo; } } }