ActionScript event handlers, class definitions, and functions are grouped together into blocks with curly braces ({})
, as in the following examples:
// Event handler on(release) { myDate = new Date(); currentMonth = myDate.getMonth(); } // Class class Circle(radius) { } // Function circleArea = function(radius) { return radius * radius * MATH.PI }