Log
You are viewing an old version of this entry, click here to see latest version.
class haxe.LogAvailable in flash, flash9, neko, js, php, cpp
static dynamic function clear() : Void
static dynamic function setColor( rgb : Int ) : VoidAvailable in flash, flash9Sets the color of the field that shows the log messages. The color is reseted to black (0x000000) after a Log.clear call.
The following example will display the traces "Some black text" (in black) and "Some white text" (in white).
The following example will display the traces "Some black text" (in black) and "Some white text" (in white).
Log.setColor(0xFFFFFF); Log.trace("Some white text"); Log.clear(); Log.trace("Some black text"); Log.setColor(0xFFFFFF); Log.trace("Some white text");static dynamic function trace( v : Dynamic, ?infos : PosInfos ) : VoidThe function used by trace(). It could be reassigned to redirect the output.
version #9230, modified 2010-09-06 22:06:13 by fidlej
0 comment