package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ this.pet = new MyClass(); var age = this.pet.getDate( ); } }} internal class MyClass { public function MyClass () { } public function getDate ( ) { var currentTime = new Date( ); return currentTime; } }
Name (required)
email (will not be published) (required)
Website