package{
import flash.display.Sprite;
publicclass 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;
}
}