| Package | org.flixel.system.debug |
| Class | public class Log |
| Inheritance | Log FlxWindow flash.display.Sprite |
| Property | Defined By | ||
|---|---|---|---|
![]() | _background : Bitmap
Window display element. | FlxWindow | |
![]() | _bounds : Rectangle
Controls where the window is allowed to be positioned. | FlxWindow | |
![]() | _drag : Point
Helper for interaction. | FlxWindow | |
![]() | _dragging : Boolean
Helper for interaction. | FlxWindow | |
![]() | _handle : Bitmap
Window display element. | FlxWindow | |
![]() | _header : Bitmap
Window display element. | FlxWindow | |
![]() | _height : uint
Height of the window. | FlxWindow | |
![]() | ImgHandle : Class | FlxWindow | |
| _lines : Array | Log | ||
![]() | _overHandle : Boolean
Helper for interaction. | FlxWindow | |
![]() | _overHeader : Boolean
Helper for interaction. | FlxWindow | |
![]() | _resizable : Boolean
Helper for interaction. | FlxWindow | |
![]() | _resizing : Boolean
Helper for interaction. | FlxWindow | |
![]() | _shadow : Bitmap
Window display element. | FlxWindow | |
| _text : TextField | Log | ||
![]() | _title : TextField
Window display element. | FlxWindow | |
![]() | _width : uint
Width of the window. | FlxWindow | |
| Method | Defined By | ||
|---|---|---|---|
Log(Title:String, Width:Number, Height:Number, Resizable:Boolean = true, Bounds:Rectangle = null, BGColor:uint = 0x7f7f7f7f, TopColor:uint = 0x7f000000)
Creates a new window object. | Log | ||
add(Text:String):void
Adds a new line to the log window. | Log | ||
destroy():void [override]
Clean up memory. | Log | ||
![]() | reposition(X:Number, Y:Number):void
Change the position of the window. | FlxWindow | |
![]() | resize(Width:Number, Height:Number):void
Resize the window. | FlxWindow | |
| Method | Defined By | ||
|---|---|---|---|
![]() | bound():void
Keep the window within the pre-specified bounding rectangle. | FlxWindow | |
![]() | init(E:Event = null):void
Used to set up basic mouse listeners. | FlxWindow | |
![]() | onMouseDown(E:MouseEvent = null):void
Figure out if window is being repositioned (clicked on header) or resized (clicked on handle). | FlxWindow | |
![]() | onMouseMove(E:MouseEvent = null):void
Mouse movement handler. | FlxWindow | |
![]() | onMouseUp(E:MouseEvent = null):void
User let go of header bar or handler (or nothing), so turn off drag and resize behaviors. | FlxWindow | |
![]() | updateGUI():void
Figure out if the header or handle are highlighted. | FlxWindow | |
updateSize():void [override]
Adjusts the width and height of the text field accordingly. | Log | ||
| Constant | Defined By | ||
|---|---|---|---|
| MAX_LOG_LINES : uint = 200 [static] | Log | ||
| _lines | property |
protected var _lines:Array| _text | property |
protected var _text:TextField| Log | () | Constructor |
public function Log(Title:String, Width:Number, Height:Number, Resizable:Boolean = true, Bounds:Rectangle = null, BGColor:uint = 0x7f7f7f7f, TopColor:uint = 0x7f000000)
Creates a new window object. This Flash-based class is mainly (only?) used by FlxDebugger.
Title:String — The name of the window, displayed in the header bar.
| |
Width:Number — The initial width of the window.
| |
Height:Number — The initial height of the window.
| |
Resizable:Boolean (default = true) — Whether you can change the size of the window with a drag handle.
| |
Bounds:Rectangle (default = null) — A rectangle indicating the valid screen area for the window.
| |
BGColor:uint (default = 0x7f7f7f7f) — What color the window background should be, default is gray and transparent.
| |
TopColor:uint (default = 0x7f000000) — What color the window header bar should be, default is black and transparent.
|
| add | () | method |
public function add(Text:String):voidAdds a new line to the log window.
Parameters
Text:String — The line you want to add to the log window.
|
| destroy | () | method |
override public function destroy():voidClean up memory.
| updateSize | () | method |
override protected function updateSize():voidAdjusts the width and height of the text field accordingly.
| MAX_LOG_LINES | Constant |
protected static const MAX_LOG_LINES:uint = 200