Index: lams_flash/src/central/flash/main_addseq.as =================================================================== RCS file: /usr/local/cvsroot/lams_flash/src/central/flash/main_addseq.as,v diff -u -r1.1 -r1.2 --- lams_flash/src/central/flash/main_addseq.as 5 Jun 2007 02:57:37 -0000 1.1 +++ lams_flash/src/central/flash/main_addseq.as 21 Oct 2008 03:08:58 -0000 1.2 @@ -1,57 +1,57 @@ -import org.lamsfoundation.lams.wizard.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://shaun.melcoe.mq.edu.au: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 = 2; - Debugger.log('Mode is not defined, using defualt:'+_root.mode,Debugger.CRITICAL,'main','ROOT'); -} - -if(StringUtils.isEmpty(courseID)){ - _root.courseID = undefined; // Playpen (test) - Debugger.log('CourseID is not defined, using defualt:'+_root.courseID,Debugger.CRITICAL,'main','ROOT'); -} - -if(StringUtils.isEmpty(classID)){ - _root.classID = undefined; // Playpen (test) - Debugger.log('ClassID is not defined, using defualt:'+_root.classID,Debugger.CRITICAL,'main','ROOT'); -} - - -if(StringUtils.isEmpty(build)){ - _root.build = 2.0; - Debugger.log('Build is not defined, using defualt:'+_root.build,Debugger.CRITICAL,'main','ROOT'); -} - -if(StringUtils.isEmpty(langDate)){ - _root.langDate = "01-01-1970"; -} - -//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.wizard.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://shaun.melcoe.mq.edu.au: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 = 2; + Debugger.log('Mode is not defined, using defualt:'+_root.mode,Debugger.CRITICAL,'main','ROOT'); +} + +if(StringUtils.isEmpty(courseID)){ + _root.courseID = undefined; // Playpen (test) + Debugger.log('CourseID is not defined, using defualt:'+_root.courseID,Debugger.CRITICAL,'main','ROOT'); +} + +if(StringUtils.isEmpty(classID)){ + _root.classID = undefined; // Playpen (test) + Debugger.log('ClassID is not defined, using defualt:'+_root.classID,Debugger.CRITICAL,'main','ROOT'); +} + + +if(StringUtils.isEmpty(build)){ + _root.build = 2.0; + Debugger.log('Build is not defined, using defualt:'+_root.build,Debugger.CRITICAL,'main','ROOT'); +} + +if(StringUtils.isEmpty(langDate)){ + _root.langDate = "01-01-1970"; +} + +//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); + + + +