Writing components in Flex, part 2
On August 7, 2008, Components,Flex - 8 CommentsIn part two of this tutorial, we’re gonna create the actual component. We left off with a flex library and a folder structure.
If you haven’t read the first part, click here.
Create a new actionscript class and name it after your component. Also, decide wether your class should extend an existing class. In this example it makes sense to extend the textinput class, which will provide the basic functionality. If your component will be part of the interface, you should extend sprite, or any underlying class of sprite. If your component doesn’t have any graphical interface, like a currency converter, you do not need to extend any class. more…