Index: lams_central/src/flash/org/lamsfoundation/lams/authoring/Application.as =================================================================== diff -u -r1922e8df4d328b8318e68c74ded2a0372c58a053 -r4af0bd9f6041e1ba30dc8e25a98ba8c2606b4466 --- lams_central/src/flash/org/lamsfoundation/lams/authoring/Application.as (.../Application.as) (revision 1922e8df4d328b8318e68c74ded2a0372c58a053) +++ lams_central/src/flash/org/lamsfoundation/lams/authoring/Application.as (.../Application.as) (revision 4af0bd9f6041e1ba30dc8e25a98ba8c2606b4466) @@ -24,6 +24,8 @@ public static var C_TRANSITION = "c_pen"; public static var C_OPTIONAL = "c_optionalBoxPen"; public static var C_DEFAULT = "default"; + + private static var SHOW_DEBUGGER:Boolean = false; private static var TOOLBAR_X:Number = 10; private static var TOOLBAR_Y:Number = 35; @@ -319,6 +321,9 @@ //Fire off a resize to set up sizes onResize(); //TODO Remove loading screen + if(SHOW_DEBUGGER){ + showDebugger(); + } } /** @@ -357,12 +362,20 @@ //the debug window: if (Key.isDown(Key.CONTROL) && Key.isDown(Key.ALT) && Key.isDown(QUESTION_MARK_KEY)) { if (!_debugDialog.content){ - _debugDialog = PopUpManager.createPopUp(Application.root, LFWindow, false,{title:'Debug',closeButton:true,scrollContentPath:'debugDialog'}); + showDebugger(); }else { - _debugDialog.deletePopUp(); - } + hideDebugger(); + } } } + + public function showDebugger():Void{ + _debugDialog = PopUpManager.createPopUp(Application.root, LFWindow, false,{title:'Debug',closeButton:true,scrollContentPath:'debugDialog'}); + } + + public function hideDebugger():Void{ + _debugDialog.deletePopUp(); + } /** * get the ddm form the canvas.. this method is here as the ddm used to be stored inthe application.