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

Chapter 8. Welcome to ActionScript 2.0 > Object-Oriented Programming

Object-Oriented Programming

Object-oriented programming is more than a type of programming language; it is how you approach a problem in the context of programming.

Back in the early days of programming, everything ran in a straight line with hundreds of conditionals to check to see if something should happen or not. For instance, let's say driving is the program; the program would start by going to the car, opening the door, putting the key in the ignition, and turning the key (which would start the car). It then would go through a series of conditional statements checking to see if the user wants their headlights on or not, if they want the radio on or not, and if the emergency brake is on or not (see Figure 8.1). Already this program is long and painstakingly slow, and we haven't even begun to drive yet.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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