package
{
import flash.display.Sprite;
import flash.geom.Point;
public class point extends Sprite
{
var a:Point=new Point();
var kongxing:Sprite=new Sprite();
public function point()
{
trace("第二个");
addChild(kongxing);
huaquan();//这里进行了画图函数的调用
}
public function huaquan()
{
trace("还是不行吗");
kongxing.graphics.lineStyle(2);
kongxing.graphics.drawCircle(0,0,100);
kongxing.graphics.endFill();
}
}
}
{
import flash.display.Sprite;
import flash.geom.Point;
public class point extends Sprite
{
var a:Point=new Point();
var kongxing:Sprite=new Sprite();
public function point()
{
trace("第二个");
addChild(kongxing);
huaquan();//这里进行了画图函数的调用
}
public function huaquan()
{
trace("还是不行吗");
kongxing.graphics.lineStyle(2);
kongxing.graphics.drawCircle(0,0,100);
kongxing.graphics.endFill();
}
}
}