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

Chapter 7. HTTP Connection > Object-Oriented Implementation

Object-Oriented Implementation

There are alternatives to the technique we chose in the highscore MovieClip. Our technique was not a sophisticated approach: we call the load action and then run through a loop, testing the data to see if it arrived or not. This solution, known as polling, is not object-oriented. Modern object-oriented coding is associated instead with event-driven methods.

In the polling design, the calling function constantly tests the status—both functions are locked together. In an event-driven method, event handlers must be set up. After that, it is the actual occurrence of the event that calls the function. The rest of the software runs absolutely independently.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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