Index: lams_central/src/flash/lams_authoring.fla =================================================================== diff -u -r21d5f693f2da86006144947c980e03acfd09ac37 -r80f0327d206c1aed529c120ecd69875fcd4132e1 Binary files differ Index: lams_central/src/flash/main.as =================================================================== diff -u -r575a345768bcef41d0114ab5ef0ca096e5f9aad2 -r80f0327d206c1aed529c120ecd69875fcd4132e1 --- lams_central/src/flash/main.as (.../main.as) (revision 575a345768bcef41d0114ab5ef0ca096e5f9aad2) +++ lams_central/src/flash/main.as (.../main.as) (revision 80f0327d206c1aed529c120ecd69875fcd4132e1) @@ -1,11 +1,25 @@ -import org.lamsfoundation.lams.authoring.Application +import org.lamsfoundation.lams.authoring.Application; +import org.lamsfoundation.lams.common.util.StringUtils; //Temp values to be removed / repplaced at deployment -if(serverURL == null){ - _root.serverURL = "http://dolly.uklams.net:8080/lams/"; +/**/ +if(StringUtils.isEmpty(serverURL)){ + //_root.serverURL = "http://dolly.uklams.net:8080/lams/"; + _root.serverURL = "http://localhost:8080/lams/"; + Debugger.log('serverURL is not defined, using defualt:'+_root.serverURL ,Debugger.CRITICAL,'main','ROOT'); } -var serverURL; +if(StringUtils.isEmpty(userID)){ + _root.userID = 4; + Debugger.log('userID is not defined, using defualt:'+_root.userID ,Debugger.CRITICAL,'main','ROOT'); +} + +if(StringUtils.isEmpty(mode)){ + _root.mode = 1; + Debugger.log('Mode is not defined, using defualt:'+_root.mode,Debugger.CRITICAL,'main','ROOT'); +} + + //Set stage alignment to top left and prent scaling Stage.align = "TL"; Stage.scaleMode = "noScale";