package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var info:Object = new Object( ); info.city = "Toronto"; info.country = "Canada"; info.getAddress = function ( ):String { return this.city + ", " + this.country; } trace(info.getAddress( )); } }}
Name (required)
email (will not be published) (required)
Website