function CEvents() {
this.addProperty("OnDriveList", function () { }, OnDriveList);
}
function OnDriveList(drivelist) {
trace("ON DRIVE LIST");
}
_level0.Events = new CEvents();
_level0.Events.OnDriveList = "this";
In this code when the line _level0.Events.OnDriveList = “this” is executed it traces “ON DRIVE LIST” so basically what is happening is that it is triggering the onDriveList function how can I replicate this in its own CEvents class?