我创建了一个新的Actionscript项目并编写了这段代码,这两个圈子确实出现了,但是跟踪语句没有显示在日志中。我有调试器版本(右键单击上下文菜单有一个项目" Debugger") 包 { import flash.display.Sprite;
public class TraceExample extends Sprite
{
public function TraceExample()
{
this.x = 5;
this.graphics.beginFill(0x00FF00);
this.graphics.drawCircle(0, 0, this.x * 100);
this.graphics.endFill();
trace(this.x);
this.graphics.beginFill(0x0000FF);
this.graphics.drawCircle(this.x * 10, this.x * 10, this.x * 10);
this.graphics.endFill();
}
}
}