Flex的跟踪()不打印Flex

2023-09-08 14:41:02 作者:奶茶少冰正常糖

有很多的使用痕迹()来打印结果的例子为ActionScript在Web上。

我tryied它使用Flash Builder 4,但是不打印到控制台。我在哪里可以看到输出?

解决方案 您在调试模式? 把一个断点,其中跟踪()被写的行(按Ctrl + Shift + B),调试,看看痕迹为止。 您是否打印正确的字符串?尝试做跟踪时,如跟踪(加载文件,_myFile.url)也使用一个静态文本在前面;

There's a lot of examples for ActionScript over the web using trace() to print results.

flex builder 4.5 安装以后打不开总是显示激活界面

I'd tryied it using Flash Builder 4, but it don't print to the console. Where can I see the output?

解决方案

Are you in debug mode ? Put a breakpoint on the line where the trace() is wrote (ctrl+shift+b), debug and see if the trace is reached. Are you printing the right string? try to use also a static text in front when doing trace like trace("Loading file: ", _myFile.url);