ABSTRACT

This is where AS1 classes get awkward. The “prototype” property of the SimpleSquareAS1 function is a behind-the-scenes mechanism for associating other functions with the main SimpleSquareAS1 function. The “draw” property – attached to the prototype property – is a new function that acts as a “method” of the SimpleSquareAS1 class.