Google analytics code

Thursday, August 6, 2009

Flex: Passing a reference from a mxml component to a method or function

I ran into a situation where I needed to pass a reference from a mxml component to a function. It's easy if you have an ID assigned to the component, but if it's in an itemRenderer that makes it tougher because you don't want duplicate ID's.

You can pass a reference from a component to a function using the createComplete event.







You can also see another example at this blog post.

No comments:

Post a Comment

If you found this page useful, or you have any feedback, please leave a comment.