private function initVol():void
{
vol = new Sprite();
vol.buttonMode = true;
vol.addChild(new pointClass());
vol.x = 90;
vol.y = 15;
vol.addEventListener(MouseEvent.MOUSE_DOWN,down);
addChild(vol);
}
上面无法显示添加的内容
解决方法:添加(stage)
private function initVol():void
{
vol = new Sprite();
vol.buttonMode = true;
vol.addChild(new pointClass());
vol.x = 90;
vol.y = 15;
vol.addEventListener(MouseEvent.MOUSE_DOWN,down);
stage.addChild(vol);
}
本文转自94cool博客园博客,原文链接:http://www.cnblogs.com/94cool/archive/2010/04/23/1718655.html,如需转载请自行联系原作者