Packageorg.flixel.system.debug
Classpublic class Vis
InheritanceVis Inheritance flash.display.Sprite

This control panel has all the visual debugger toggles in it, in the debugger overlay. Currently there is only one toggle that flips on all the visual debug settings. This panel is heavily based on the VCR panel.



Protected Properties
 PropertyDefined By
  _bounds : Bitmap
Vis
  ImgBounds : Class
Vis
  _overBounds : Boolean
Vis
  _pressingBounds : Boolean
Vis
Public Methods
 MethodDefined By
  
Vis()
Instantiate the visual debugger panel.
Vis
  
destroy():void
Clean up memory.
Vis
  
onBounds():void
Called when the bounding box toggle is pressed.
Vis
Protected Methods
 MethodDefined By
  
checkOver():Boolean
This function checks to see what button the mouse is currently over.
Vis
  
init(E:Event = null):void
Just sets up basic mouse listeners, a la FlxWindow.
Vis
  
onMouseDown(E:MouseEvent = null):void
If the mouse is pressed down, check to see if the user started pressing down a specific button.
Vis
  
onMouseMove(E:MouseEvent = null):void
If the mouse moves, check to see if any buttons should be highlighted.
Vis
  
onMouseUp(E:MouseEvent = null):void
If the mouse is released, check to see if it was released over a button that was pressed.
Vis
  
unpress():void
Sets all the pressed state variables for the buttons to false.
Vis
  
updateGUI():void
Figures out what buttons to highlight based on the _overWhatever and _pressingWhatever variables.
Vis
Property Detail
_boundsproperty
protected var _bounds:Bitmap

_overBoundsproperty 
protected var _overBounds:Boolean

_pressingBoundsproperty 
protected var _pressingBounds:Boolean

ImgBoundsproperty 
protected var ImgBounds:Class

Constructor Detail
Vis()Constructor
public function Vis()

Instantiate the visual debugger panel.

Method Detail
checkOver()method
protected function checkOver():Boolean

This function checks to see what button the mouse is currently over. Has some special behavior based on whether a recording is happening or not.

Returns
Boolean — Whether the mouse was over any buttons or not.
destroy()method 
public function destroy():void

Clean up memory.

init()method 
protected function init(E:Event = null):void

Just sets up basic mouse listeners, a la FlxWindow.

Parameters

E:Event (default = null) — Flash event.

onBounds()method 
public function onBounds():void

Called when the bounding box toggle is pressed.

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

If the mouse is pressed down, check to see if the user started pressing down a specific button.

Parameters

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

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

If the mouse moves, check to see if any buttons should be highlighted.

Parameters

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

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

If the mouse is released, check to see if it was released over a button that was pressed. If it was, take the appropriate action based on button state and visibility.

Parameters

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

unpress()method 
protected function unpress():void

Sets all the pressed state variables for the buttons to false.

updateGUI()method 
protected function updateGUI():void

Figures out what buttons to highlight based on the _overWhatever and _pressingWhatever variables.