Conceptually, you can create a custom event class w/ your own instance data. When a button in your component is clicked, dispatch your custom event.
This screencast may help, although I don't remember if it covers custom events: http://www.theflexshow.com/blog/index.cfm/2008/10/1/The-Flex-Show--Fifteen-Minutes-With-Flex--Episode-7--Understanding-Events sandrea83 wrote: > > I was looking around on the net for some source of reference regarding > flex3, action script thing, and i bumped into this site. Im totally > new to action script, and now i would like to do some custom component > of title window, where i can pass some parameters into the custom > component for dynamically generating the buttons. but I was just stuck > on how to pass the event handler along with the parameters so that i > can associate each of the event handler with the generated button. Can > someone assist me? > > -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
