Index: lams_central/src/flash/org/lamsfoundation/lams/learner/Application.as =================================================================== diff -u -r05edbb31d13d3be11ad19d5a26621c7cf863df0c -rc85a281ede65b6c64a2043d82a70b761c2f7f21a --- lams_central/src/flash/org/lamsfoundation/lams/learner/Application.as (.../Application.as) (revision 05edbb31d13d3be11ad19d5a26621c7cf863df0c) +++ lams_central/src/flash/org/lamsfoundation/lams/learner/Application.as (.../Application.as) (revision c85a281ede65b6c64a2043d82a70b761c2f7f21a) @@ -235,6 +235,27 @@ _lesson.setSize(w,h); } + + /** + * Updated the progress data in the lesson model with received progress data + * + * @param attempted + * @param completed + * @param current + */ + + public function refreshProgress(attempted:String, completed:String, current:String, ID:String){ + Debugger.log('attempted: ' + attempted,Debugger.CRITICAL,'refreshProgress','Application'); + Debugger.log('completed: ' + completed,Debugger.CRITICAL,'refreshProgress','Application'); + Debugger.log('current: ' + current,Debugger.CRITICAL,'refreshProgress','Application'); + + if(_root.uniqueID == ID){ + var attemptedArray:Array = attempted.split("_"); + var completedArray:Array = completed.split("_"); + + _lesson.updateProgressData(attemptedArray, completedArray, Number(current)); + } + } // onKey*** methods - TODO