Index: lams_central/src/flash/main.as =================================================================== diff -u -r80f0327d206c1aed529c120ecd69875fcd4132e1 -rfc89efdeba6bdf58e5e3fb24f74ce2e8941e1b11 --- lams_central/src/flash/main.as (.../main.as) (revision 80f0327d206c1aed529c120ecd69875fcd4132e1) +++ lams_central/src/flash/main.as (.../main.as) (revision fc89efdeba6bdf58e5e3fb24f74ce2e8941e1b11) @@ -1,37 +1,48 @@ -import org.lamsfoundation.lams.authoring.Application; -import org.lamsfoundation.lams.common.util.StringUtils; - -//Temp values to be removed / repplaced at deployment -/**/ -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'); -} - -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"; - - -//Start the application, passing in the top level clip, i.e. _root -var app:Application = Application.getInstance(); -app.main(this); - -//Make app listener for stage resize events -Stage.addListener(app); - - - - +import org.lamsfoundation.lams.authoring.Application; +import org.lamsfoundation.lams.common.util.StringUtils; + +//Temp values to be removed / repplaced at deployment +/**/ +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'); +} + +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'); +} + +if(StringUtils.isEmpty(lang)){ + _root.lang = "en"; +} + +if(StringUtils.isEmpty(country)){ + _root.country = undefined; +} + +if(StringUtils.isEmpty(build)){ + _root.build = "2.0"; +} + +//Set stage alignment to top left and prent scaling +Stage.align = "TL"; +Stage.scaleMode = "noScale"; + + +//Start the application, passing in the top level clip, i.e. _root +var app:Application = Application.getInstance(); +app.main(this); + +//Make app listener for stage resize events +Stage.addListener(app); + + + +