Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人可以告诉我如何在点上创建一个新对象吗?我想做这样的事情:`addEventListener(Event.ENTER_FRAME, loop);
private function loop(e:Event):void addChild {(myObject)} on(mouseX,mouseY); }`
我知道这是不好的代码,但我只想告诉你我想做什么,所以请帮助我:D
你必须这样做:
private function loop(e:Event):void{ addChild(myObject); myObject.x = mouseX; myObject.y = mouseY; }