I am a new comer to AS3, and I want to output a string to see its value, just like printf of C or cout of C++. Below is the code. I want to see the result of compressing string “abcdefghijklmnopqrstuvwxyz”, and I tried trace(), but when I run it, nothing appeared on my browser. Please help me, thanks!!!
public class StringCompress extends Sprite
{
public function StringCompress()
{
var beforeCompressStr:String ="abcdefghijklmnopqrstuvwxyz";
var afterCompressStr:String = Compress(beforeCompressStr);
trace(afterCompressStr);
}
...
}
You cannot get a trace output on the browser without the help of a 3rd party plugin.
You can install flashbug :
http://blog.coursevector.com/flashbug
So as to get the trace output there.