Index: lams_central/src/flash/org/lamsfoundation/lams/monitoring/mv/tabviews/LessonTabView.as =================================================================== diff -u -rb9fd807bb888bed7b0340fa9991c4755cbc57abf -r8c8b972001cd99ed3bd21453718db7f08b7b1e28 --- lams_central/src/flash/org/lamsfoundation/lams/monitoring/mv/tabviews/LessonTabView.as (.../LessonTabView.as) (revision b9fd807bb888bed7b0340fa9991c4755cbc57abf) +++ lams_central/src/flash/org/lamsfoundation/lams/monitoring/mv/tabviews/LessonTabView.as (.../LessonTabView.as) (revision 8c8b972001cd99ed3bd21453718db7f08b7b1e28) @@ -139,7 +139,7 @@ _tip = new ToolTip(); //Init for event delegation mx.events.EventDispatcher.initialize(this); - MovieClipUtils.doLater(Proxy.create(this,init)); + //MovieClipUtils.doLater(Proxy.create(this,init)); } /** @@ -150,8 +150,18 @@ super (m, c); btnLabel = Dictionary.getValue('td_goContribute_btn'); - MovieClipUtils.doLater(Proxy.create(this,setupTab)); - //MovieClipUtils.doLater(Proxy.create(this,draw)); + + _monitorController = getController(); + + editClass_btn.addEventListener("click", _monitorController); + viewLearners_btn.addEventListener("click", _monitorController); + schedule_btn.addEventListener("click", Delegate.create(this, scheduleLessonStart)); + start_btn.addEventListener("click", _monitorController); + statusApply_btn.addEventListener("click", Delegate.create(_monitorController, changeStatus)) + //this.addEventListener("apply", Delegate.create(_monitorController, _monitorController.changeStatus)); + + + MovieClipUtils.doLater(Proxy.create(this,setupTab)); } /** @@ -245,16 +255,7 @@ } private function setupTab(){ - - _monitorController = getController(); - - editClass_btn.addEventListener("click", _monitorController); - viewLearners_btn.addEventListener("click", _monitorController); - schedule_btn.addEventListener("click", Delegate.create(this, scheduleLessonStart)); - start_btn.addEventListener("click", _monitorController); - statusApply_btn.addEventListener("click", Delegate.create(this, changeStatus)) - this.addEventListener("apply", Delegate.create(_monitorController, _monitorController.changeStatus)); - + editClass_btn.onRollOver = Proxy.create(this,this['showToolTip'], editClass_btn, "ls_manage_editclass_btn_tooltip"); editClass_btn.onRollOut = Proxy.create(this,this['hideToolTip']);