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

Chapter 16. Cookies > ActionScript XML Objects

ActionScript XML Objects

We keep all the code inside the login MovieClip. But first we reorganize the timeline into two parts: a single frame called Init and another called Loop. The Init frame is executed in the beginning and only once. (It can be considered the constructor of this MovieClip object, to use the language of object-oriented design.) The loop executes continually. Its only real job is to update the stars variable so that it always has the same number of stars as the characters in the password (Figure 16.1).

Figure 16.1. Echoing with Stars



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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