Kongregate Developers

Removing a canvas object

You can remove any canvas object with the removeCanvasObject function, which accepts the name of the object to remove:

removeCanvasObject(name:String):void
  • name:String - The name of the object to remove

Example: Remove the object named "MyObject"

kongregate.chat.removeCanvasObject("MyObject");

Comments