4.7 Putting Theory into Practice

 <  Day Day Up  >  

Code, like art, is never really finished. You should explore your own ideas, even with the simple Box class discussed in this chapter. Can you add code that randomly places each Box instance on the Stage? Or changes the color of a Box instance? What about code that rotates a Box instance or animates it along a straight line? Try adding text fields on each box that display its width , height , and area . You could even make the text fields accept user input that can change the size of the Box .

You'll gain insight into how to add these kinds of features in the next chapter, which studies an ImageViewer class. This chapter covered a tremendous amount of technical ground in a largely theoretical way, so if you are a bit overwhelmed, don't worry. The next chapter covers a concrete implementation to help you apply what you've learned. See you there!

 <  Day Day Up  >  


Essential ActionScript 2.0
Essential ActionScript 2.0
ISBN: 0596006527
EAN: 2147483647
Year: 2004
Pages: 177
Authors: Colin Moock

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net