Packageorg.flixel.system
Classpublic class FlxDebugger
InheritanceFlxDebugger Inheritance flash.display.Sprite

Container for the new debugger overlay. Most of the functionality is in the debug folder widgets, but this class instantiates the widgets and handles their basic formatting and arrangement.



Public Properties
 PropertyDefined By
  hasMouse : Boolean
Whether the mouse is currently over one of the debugger windows or not.
FlxDebugger
  log : Log
Container for the trace output widget.
FlxDebugger
  perf : Perf
Container for the performance monitor widget.
FlxDebugger
  vcr : VCR
Container for the record, stop and play buttons.
FlxDebugger
  vis : Vis
Container for the visual debug mode toggle.
FlxDebugger
  watch : Watch
Container for the watch window widget.
FlxDebugger
Protected Properties
 PropertyDefined By
  _gutter : uint
Internal, used to space out windows from the edges.
FlxDebugger
  _layout : uint
Internal, tracks what debugger window layout user has currently selected.
FlxDebugger
  _screen : Point
Internal, stores width and height of the Flash Player window.
FlxDebugger
Public Methods
 MethodDefined By
  
FlxDebugger(Width:Number, Height:Number)
Instantiates the debugger overlay.
FlxDebugger
  
destroy():void
Clean up memory.
FlxDebugger
  
Forces the debugger windows to reset to the last specified layout.
FlxDebugger
  
setLayout(Layout:uint):void
Rearrange the debugger windows using one of the constants specified in FlxG.
FlxDebugger
Protected Methods
 MethodDefined By
  
onMouseOut(E:MouseEvent = null):void
Mouse handler that helps with fake "mouse focus" type behavior.
FlxDebugger
  
onMouseOver(E:MouseEvent = null):void
Mouse handler that helps with fake "mouse focus" type behavior.
FlxDebugger
Property Detail
_gutterproperty
protected var _gutter:uint

Internal, used to space out windows from the edges.

_layoutproperty 
protected var _layout:uint

Internal, tracks what debugger window layout user has currently selected.

_screenproperty 
protected var _screen:Point

Internal, stores width and height of the Flash Player window.

hasMouseproperty 
public var hasMouse:Boolean

Whether the mouse is currently over one of the debugger windows or not.

logproperty 
public var log:Log

Container for the trace output widget.

perfproperty 
public var perf:Perf

Container for the performance monitor widget.

vcrproperty 
public var vcr:VCR

Container for the record, stop and play buttons.

visproperty 
public var vis:Vis

Container for the visual debug mode toggle.

watchproperty 
public var watch:Watch

Container for the watch window widget.

Constructor Detail
FlxDebugger()Constructor
public function FlxDebugger(Width:Number, Height:Number)

Instantiates the debugger overlay.

Parameters
Width:Number — The width of the screen.
 
Height:Number — The height of the screen.
Method Detail
destroy()method
public function destroy():void

Clean up memory.

onMouseOut()method 
protected function onMouseOut(E:MouseEvent = null):void

Mouse handler that helps with fake "mouse focus" type behavior.

Parameters

E:MouseEvent (default = null) — Flash mouse event.

onMouseOver()method 
protected function onMouseOver(E:MouseEvent = null):void

Mouse handler that helps with fake "mouse focus" type behavior.

Parameters

E:MouseEvent (default = null) — Flash mouse event.

resetLayout()method 
public function resetLayout():void

Forces the debugger windows to reset to the last specified layout. The default layout is FlxG.DEBUGGER_STANDARD.

setLayout()method 
public function setLayout(Layout:uint):void

Rearrange the debugger windows using one of the constants specified in FlxG.

Parameters

Layout:uint — The layout style for the debugger windows, e.g. FlxG.DEBUGGER_MICRO.