Index: lams_central/src/flash/learnerProgress_lc.fla =================================================================== diff -u Binary files differ Index: lams_central/src/flash/main2.as =================================================================== diff -u -rf48efe3a9ce228cd140e6510221ed74403d82757 -r1cc2d9b0d3ef7f5a797cd6501c151d39db716fce --- lams_central/src/flash/main2.as (.../main2.as) (revision f48efe3a9ce228cd140e6510221ed74403d82757) +++ lams_central/src/flash/main2.as (.../main2.as) (revision 1cc2d9b0d3ef7f5a797cd6501c151d39db716fce) @@ -24,6 +24,11 @@ Debugger.log('Lesson ID is not defined, using defualt:'+_root.lessonID,Debugger.CRITICAL,'main','ROOT'); } +if(StringUtils.isEmpty(uniqueID)){ + _root.uniqueID = 0; + Debugger.log('Unique ID is not defined.',Debugger.CRITICAL,'main','ROOT'); +} + //Set stage alignment to top left and prent scaling Stage.align = "TL"; Stage.scaleMode = "noScale"; @@ -33,6 +38,16 @@ var app:Application = Application.getInstance(); app.main(this); +//------------------------------Local connection to JSPs for progress data ------------------------------ +var recieve_lc = new LocalConnection(); +//-------------------------------------- Functions to setProgress data, called by the LocalConnection object in learner JSPs +recieve_lc.setProgressData = function(attempted, completed, current) { + debug(arguments.toString(), 'learnerProgress_lc.setProgressData'); + app.refreshProgress(attempted, completed, current); +}; +var success = recieve_lc.connect("learnerProgress_lc" + _root.uniqueID); + + //Make app listener for stage resize events Stage.addListener(app);