This is what we learned in the Squares tutorial.
All Revolution programs are made from objects. There are:
Objects have properties such as name, location, visibility, opaqueness and others, that may be set by the inspector. A selected object shows 8 resize handles with which it can be reshaped.
Objects react to messages.
Messages get sent when events happen.
There are two modes:
Each object has one script, which is a set of handlers. A message to which an object must react must have a corresponding handler. There may also be handlers for other actions invented by us.
Handlers are made up of program statements. We saw:
Containers hold the values we put into them. We used two types of container:
It is always good to be very consistent in how you write your programs. This helps you to understand your program when you have to read it and it avoids errors. We saw one rule:
There will be many other rules. Essentially you make up your own. I will follow mine in the tutorials. You are free to adopt them, change them, take inspiration from them or hate them
.
Copyright R. Cailliau (robert at robertcailliau dot eu)
next planned revision: 2006-11-30