Over 10 years of community discussion and knowledge are maintained here as a read-only archive.
var com = new Component();
public function StudentSearchMediator( viewComponent:Object ) { // pass the viewComponent to the superclass where // it will be stored in the inherited viewComponent property var stusearch = new StudentSearch(); stusearch.y = 20; stusearch.x = 20; super( NAME, stusearch ); sendNotification( ApplicationFacade.ADD_TO_STAGE, stusearch ); // Listen for events from the view component stusearch.addEventListener( StudentSearch.STUDENT_SELECTED, onStudentSelected ); }