3
votes

I've been trying to create a custom mxml component that extends another custom mxml component (i.e. MyMXMLComponent -> BaseMXMLComponent -> Group).

I've been reading that trying to add visual children to MyMXMLComponent caused error with Flex 3 but that's no longer the case with Flex 4.

What I want to know is whether this is a supported/fixed/documented feature of Flex 4? or just some undefined behavior in Flex 4 that may get changed with future updates?

if this is supported and documented feature, does anyone have link pointing to adobe document stating it as such?

1
You just want to extend the functionality of some custom component? - The_asMan
no i wanted to write a base class that layout some base visual elements and write a child class that add additional visual elements - lordofthefobs

1 Answers

3
votes

Sure is supported in Flex 4. You need to use the DefaultProperty metadata tag on a public property of your custom component.

It's as easy as that :)