Index: lams_central/src/flash/main2.as =================================================================== diff -u --- lams_central/src/flash/main2.as (revision 0) +++ lams_central/src/flash/main2.as (revision b3cb9e4532b0dbd059fed219cbea075051df934f) @@ -0,0 +1,36 @@ +import org.lamsfoundation.lams.learner.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); + + + +