Package | com.carlcalderon.arthropod |
Class | public class Debug |
Inheritance | Debug ![]() |
Since : | 0.72 |
Property | Defined 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 |
Method | Defined 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 |
Constant | Defined By | ||
---|---|---|---|
NAME : String = Debug [static]
Version control
| Debug | ||
VERSION : String = 0.74 [static] | Debug |
allowLog | property |
public static var allowLog:Boolean = true
Switches tracing on/off. TIP: Set this switch to false before release of AIR applications.
BLUE | property |
public static var BLUE:uint = 0x6666CC
GREEN | property |
public static var GREEN:uint = 0x00CC00
ignoreStatus | property |
public static var ignoreStatus:Boolean = true
Status event If false, arthropod will trace error messages.
LIGHT_BLUE | property |
public static var LIGHT_BLUE:uint = 0x00CCCC
password | property |
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';
PINK | property |
public static var PINK:uint = 0xCC00CC
RED | property |
public static var RED:uint = 0xCC0000
Predefined colors
secure | property |
public static var secure:Boolean = false
Security (not tested)
If secure is true, only the secureDomain
will be accepted.
secureDomain | property |
public static var secureDomain:String = *
A single domain to be used as the secure domain. (not tested)
YELLOW | property |
public static var YELLOW:uint = 0xCCCC00
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
|
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
|
Boolean — True if successful
|
clear | () | method |
public static function clear():Boolean
Clears all the traces, including arrays and bitmaps from the Arthropod application window.
ReturnsBoolean — 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
|
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
|
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.
ReturnsBoolean — 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
|
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
|
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
|
Boolean — True if successful
|
NAME | Constant |
public static const NAME:String = Debug
Version control
VERSION | Constant |
public static const VERSION:String = 0.74