Hello sandrea,
As you are new to as3, flex, I will recommend you to go through the document 
link provided below:
http://www.senocular.com/pub/kirupa/Event%20Handling%20with%20ActionScript%203.doc
This will give you a better understanding of how Events work. Then you can go 
thorough the link below:
http://livedocs.adobe.com/flex/3/html/help.html?content=ascomponents_7.html
This will help you on how to pass event from custom component.

Hope this helps.

--
Best Regards;
Chetan Sachdev
http://www.riageeks.com

--- In [email protected], "Tracy Spratt" <tspr...@...> wrote:
>
> There are many ways to do what you are trying to do, but you willneed to get
> further along before we can give more specific help.
> 
> One note. You can create a full subclass or Event as Jeffry says, or you can
> simply use a base Event, with a custonm type name.  Any event handler can
> get a reference to the component instance that dispatched the event through
> the event.target (and currentTarget) property, and thus to any public
> property on the dispatching component.
> 
> Tracy Spratt,
> Lariat Services, development services available
> 
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> On Behalf Of Jeffry Houser
> Sent: Sunday, April 05, 2009 9:27 PM
> To: [email protected]
> Subject: Re: [flexcomponents] Developing flex3 custom component issue
> 
> 
>  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-M
> inutes-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
> 
> 
> 
> 
> ------------------------------------
> 
> Yahoo! Groups Links
>


Reply via email to