Hi Dave,

Are you getting an error with the addEventListener() call, or are you 
just not able to detect the event? The call looks correct so I don't 
see why that wouldn't work.  Also, if you are creating your 
components in mxml with <mx:Repeater>, you should be able to define 
the event handler in the declaration with 
eventThrown="myCompEventThrown(event.target)".  Maybe you could post 
some code illustrating the problem.

--- In [email protected], "Dave Turner" <[EMAIL PROTECTED]> wrote:
>
> Hello 
> 
> I am working on a 1.5 project and i have an mxml page that creates 
an
> Array of Components.  These Components are basically a Container 
that
> holds a few form elements. 
> 
> if one of these components dispatches an event how would i set up 
the
> parent page to listen for the dispatched event?
> 
> I have been able to successfully capture an event when i utilize the
> "id" attribute of the component but because its an array of objects 
in
> this case i cannot do that.  
> 
> for instance i cannot do this.. 
> thing.addEventListener("eventThrown", Delegate.create(this, 
onEvent));
> 
> Ive tried referencing the Repeater that generates the Array of 
Objects
> but that does not detect the event.. 
> 
> I know this wouldn't be a problem in 2.x but I am unable to get the
> parent to detect the thrown event in 1.5.
> 
> Any help with this matter would be greatly appreciated.
> 
> thanks, 
> Dave
>


Reply via email to