Packagecom.carlcalderon.arthropod
Classpublic class Debug
InheritanceDebug Inheritance Object

Since : 0.72

Debug Designed for version 0.96.7 to 1.0 of the Arthropod Debugger. USE AT YOUR OWN RISK! Any trace that is made with arthropod may be viewed by others. The main purpose of arthropod and this debug class is to debug unpublished AIR applications or sites in their real environment (such as a web-browser). Future versions of Arthropod may change the trace-engine pattern and may cause traces for older versions not work properly. A big thanks goes out to: Stockholm Postproduction - www.stopp.se Lee Brimelow - www.theflashblog.com



Public Properties
 PropertyDefined By
  allowLog : Boolean = true
[static] Switches tracing on/off.
Debug
  BLUE : uint = 0x6666CC
[static]
Debug
  GREEN : uint = 0x00CC00
[static]
Debug
  ignoreStatus : Boolean = true
[static] Status event If false, arthropod will trace error messages.
Debug
  LIGHT_BLUE : uint = 0x00CCCC
[static]
Debug
  password : String = aispeech0512
[static] Privacy By setting this password, you need to enter the same in "Arthropod -> Settings -> Connection Password" to be able to see the traces.
Debug
  PINK : uint = 0xCC00CC
[static]
Debug
  RED : uint = 0xCC0000
[static] Predefined colors
Debug
  secure : Boolean = false
[static] Security (not tested) If secure is true, only the secureDomain will be accepted.
Debug
  secureDomain : String = *
[static] A single domain to be used as the secure domain.
Debug
  YELLOW : uint = 0xCCCC00
[static]
Debug
Public Methods
 MethodDefined By
  
array(arr:Array):Boolean
[static] Traces an array to Arthropod.
Debug
  
bitmap(bmd:*, label:String = null):Boolean
[static] Traces a thumbnail of the specified BitmapData to Arthropod.
Debug
  
clear():Boolean
[static] Clears all the traces, including arrays and bitmaps from the Arthropod application window.
Debug
  
error(message:*):Boolean
[static] Traces a warning to Arthropod.
Debug
  
log(message:*, color:uint = 0xFEFEFE):Boolean
[static] Traces a message to Arthropod
Debug
  
memory():Boolean
[static] Traces the current memory size used by Adobe Flash Player.
Debug
  
object(obj:*):Boolean
[static] Traces an object to Arthropod.
Debug
  
snapshot(stage:Stage, label:String = null):Boolean
[static] Traces a snapshot of the current stage state.
Debug
  
warning(message:*):Boolean
[static] Traces an error to Arthropod.
Debug
Public Constants
 ConstantDefined By
  NAME : String = Debug
[static] Version control
Debug
  VERSION : String = 0.74
[static]
Debug
Property Detail
allowLogproperty
public static var allowLog:Boolean = true

Switches tracing on/off. TIP: Set this switch to false before release of AIR applications.

BLUEproperty 
public static var BLUE:uint = 0x6666CC

GREENproperty 
public static var GREEN:uint = 0x00CC00

ignoreStatusproperty 
public static var ignoreStatus:Boolean = true

Status event If false, arthropod will trace error messages.

LIGHT_BLUEproperty 
public static var LIGHT_BLUE:uint = 0x00CCCC

passwordproperty 
public static var password:String = aispeech0512

Privacy By setting this password, you need to enter the same in "Arthropod -> Settings -> Connection Password" to be able to see the traces. default: 'CDC309AF';

PINKproperty 
public static var PINK:uint = 0xCC00CC

REDproperty 
public static var RED:uint = 0xCC0000

Predefined colors

secureproperty 
public static var secure:Boolean = false

Security (not tested) If secure is true, only the secureDomain will be accepted.

secureDomainproperty 
public static var secureDomain:String = *

A single domain to be used as the secure domain. (not tested)

YELLOWproperty 
public static var YELLOW:uint = 0xCCCC00

Method Detail
array()method
public static function array(arr:Array):Boolean

Traces an array to Arthropod. If no earlier arrays have been traced, Arthropod will open up the array-window automatically. For each array that is traced, the array-window will clear and display the new one. This is useful for buffer-arrays, etc.

Parameters

arr:Array — Array to be traced

Returns
Boolean — True if successful
bitmap()method 
public static function bitmap(bmd:*, label:String = null):Boolean

Traces a thumbnail of the specified BitmapData to Arthropod. The internal connection between Arthropod and the Debug class only accept calls less than 40Kb. The bitmap method converts the specified BitmapData to an acceptable size for the call.

Parameters

bmd:* — Any IBitmapDrawable
 
label:String (default = null) — Label

Returns
Boolean — True if successful
clear()method 
public static function clear():Boolean

Clears all the traces, including arrays and bitmaps from the Arthropod application window.

Returns
Boolean — True if successful
error()method 
public static function error(message:*):Boolean

Traces a warning to Arthropod. The message will be displayed in yellow.

Parameters

message:* — Message to be traced

Returns
Boolean — True if successful
log()method 
public static function log(message:*, color:uint = 0xFEFEFE):Boolean

Traces a message to Arthropod

Parameters

message:* — Message to be traced
 
color:uint (default = 0xFEFEFE) — opt. Color of the message

Returns
Boolean — True if successful
memory()method 
public static function memory():Boolean

Traces the current memory size used by Adobe Flash Player. Observe that this also includes AIR applications (such as Arthropod). Use with care.

Returns
Boolean — True if successful
object()method 
public static function object(obj:*):Boolean

Traces an object to Arthropod. The first level of arguments are traced as follows: trace: Debug.object( { name: Carl, surname: Calderon } ); output: object name: Carl surname: Calderon

Parameters

obj:* — Object to be traced

Returns
Boolean — True if successful
snapshot()method 
public static function snapshot(stage:Stage, label:String = null):Boolean

Traces a snapshot of the current stage state.

Parameters

stage:Stage — Stage
 
label:String (default = null) — Label

Returns
Boolean — True if successful
warning()method 
public static function warning(message:*):Boolean

Traces an error to Arthropod. The message will be displayed in red.

Parameters

message:* — Message to be traced

Returns
Boolean — True if successful
Constant Detail
NAMEConstant
public static const NAME:String = Debug

Version control

VERSIONConstant 
public static const VERSION:String = 0.74