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 ) : Void
version #7765, modified 2010-01-09 19:48:30 by api
0 comment