• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Methods of Clips

This is really starting to get fun! After you understand the concept of object-dot-property, you can use the same syntax on variables. Now you’re going to learn how methods follow a similar syntax: object-dot-method. A method is easy to confuse with a property, but they are quite different. Think of real-life properties first: hair color, height, weight, tooth count… whatever. Although these properties can change, at any instant, they’re basically static. As humans, we are given these properties and they can change (sort of like the built-in properties or custom variables in Flash). There’s not much more to say about properties.

As humans, we also have certain activities that we can perform—for example, combing our hair, brushing our teeth, running… whatever. The point is that these behaviors are analogous to the concept of methods. A method performs an operation on an individual object. Even though “brushing teeth” is a method, it can be applied to you or me. The method does its “thing” on me or on you. I brush my teeth; you brush your teeth.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint