Index: lams_common/src/flash/org/lamsfoundation/lams/common/Config.as =================================================================== diff -u -r923edd0624e237593bfcb9c023658cf1e8078d09 -r22a762656757f71c61d32fb857ac055c322bb936 --- lams_common/src/flash/org/lamsfoundation/lams/common/Config.as (.../Config.as) (revision 923edd0624e237593bfcb9c023658cf1e8078d09) +++ lams_common/src/flash/org/lamsfoundation/lams/common/Config.as (.../Config.as) (revision 22a762656757f71c61d32fb857ac055c322bb936) @@ -48,6 +48,10 @@ //passed in from the query string: private var _serverUrl:String; private var _userID:Number; + //where are we? 1=authoring, 2=monitor + private var _mode:Number; + + //These are defined so that the compiler can 'see' the events that are added at runtime by EventDispatcher private var dispatchEvent:Function; @@ -184,6 +188,7 @@ _serverUrl = _root.serverURL; _userID = _root.userID; + _mode = _root.mode; //TODO 31/05/05 Deal with alternative sources other than cookie or server. i.e. Browser + _root (query string) Debugger.log('Confirming ServerURL passed in - _serverUrl:' + _serverUrl,Debugger.GEN,'serverDefaultsLoaded','Config'); @@ -295,4 +300,21 @@ function get userID():Number{ return _userID; } + /** + * + * @usage + * @param newmode + * @return + */ + public function set mode (newmode:Number):Void { + _mode = newmode; + } + /** + * + * @usage + * @return + */ + public function get mode ():Number { + return _mode; + } } \ No newline at end of file