In PubCoder, Controllers are special objects that allow you to control the behavior of your page in an advanced way. Controllers are usually invisible to the end user in the layout, with the exception of the smart object - since it allows to insert custom code, what is visible or not depends upon the code it contains.
Though invisible, controllers are objects that have to be placed on the stage.
Controllers are really different among them, so they share really few generic properties, but each of them also has its own specific properties, see the various help pages for the different controllers for more informations. To edit properties of a controller object, select it and use the selection inspector at the right of your project window.
|Include In||One between All Formats, No Formats or Some Formats. Selecting the last options will allow to select indivisual formats. Object will be completely skipped when exporting in a format in which it is not being included. This allows to exclude objects not compatible with a specific format and to use different objects for different formats. This property of course defaults to All Formats.|
|X||The horizontal pixels coordinate from the top-left of the page to the point of origin of the object (which usually is top-left too, but can be changed in the stage toolbar)|
|Y||The vertical pixels coordinate from the top-left of the page to the point of origin of the object (which usually is top-left too, but can be changed in the stage toolbar)|
To edit event handlers for a controller, select it and use the Interactivity Panel on the right side of the project window. Each controller provides its own events, see the help page for each controller for more informations. Anyway, all controllers share at least two events:
The controller was loaded and is being displayed on the user device.
The user is shaking the device in the space.
Each controller can be used as target of some actions, but there are no actions in common to all of them.