dynamic class Employee { public var startDate:Date; private var age:int; }
class Report { public function Report (employee:Employee) { employee.doReport = function ( ):void { trace(this.startDate); // Access to public variable allowed trace(this.age); // Access to private variable denied } } }
Related Scripts with Example Source Code in same category :