Custom Flex Components and outerDocument

Note to self, use the outerDocument.yourMethod keyword to target methods outside the custom component. For example if I make a custom component called myCal, using it as an item renderer, and I’m trying to propagate a custom event, I have to target the event listener method by using the outerDocument scope.

<MyComp:calGridComp    dateChosen="outerDocument.dateEventHandler(event);"/>

About Curious Minds
We are a web development firm in New York and Chicago, providing development resources and consulting for websites and mobile apps since 2004.