MapObject()
This class works in a project you run on your own computer, but not in the examples you can start here in the browser. There is no file system, no video encoder and no OpenGL behind a web page, so calling it there tells you as much and does nothing.
Represents a map object with various properties such as dimensions, position, visibility, and type. It also provides methods to retrieve property values in different formats and to get a Shape representation of the map object.
Syntax
Java
new MapObject()