Chapter 18. Creating reusable components

This chapter covers

  • Reusable components
  • Leveraging Spark
  • Code separation
  • Skinnable components
  • Runtime shared libraries
  • Shared reusability

In the last chapter, you got an in-depth look at the Spark component architecture. Now you’ll put this newfound knowledge to work by building your own reusable component.

What is reusability? The concept of reusability isn’t unique to Flex; each language provides mechanisms to achieve it. Words like encapsulation, abstraction, and polymorphism are OOP words that describe methods for creating code that can be easily reused. The more code you’re able to reuse, the faster you can develop new applications by leveraging existing code. From a maintenance perspective, you ...

Get Flex 4 in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.