O'Reilly logo

Flex 4 in Action: Revised Edition of Flex 3 in Action by Tariq Ahmed and Dan Orlando, with John C. Bland II and Joel Hooks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required