Adobe Flex 3 Help

Best practices when designing a component

Use the following practices when you design a component:

  • Keep the file size as small as possible.
  • Make your component as reusable as possible by generalizing functionality.
  • Use the Border class rather than graphical elements to draw borders around objects.
  • Use tag-based skinning.
  • Assume an initial state. Because style properties are on the object, you can set initial settings for styles and properties so your initialization code does not have to set them when the object is constructed, unless the user overrides the default state.