this is the function i have in a bubble event mixin which could maybe help

public function bubbleEvent(evtObj:Object):Void
 {
      
        if(evtObj.originator ==undefined)
        {
            evtObj.originator  = new Array();             
        }
        evtObj.originator.push(evtObj.target);
        evtObj.target = this;
        dispatchEvent(evtObj);
}

On 11/23/05, Douglas Knudsen <[EMAIL PROTECTED]> wrote:
helps to actually attach the file, eh?  sorry about the traffic...I
need some of that coffee now too Jesse.

DK

On 11/23/05, Douglas Knudsen <[EMAIL PROTECTED] > wrote:
> lol!
>
> Ok, I attached a sample in a zip, hope it stays attached.  In it I
> have a A, B, C as an example of this thread discussion.  You can see
> that the final capture of the event in A loses the original target.
> upon a suggestion elsewhere, I tried 'chaining' the events by catching
> the event in B and re-dispatching it.  This still messed with the
> target property of the event object.  Seems have to add this as a
> extra property in the original event.
>
> Jeff, looking at your evenmanger class now to see if I can use this.
>
> DK
>
> On 11/23/05, JesterXL < [EMAIL PROTECTED]> wrote:
> > ...er, sorry, C.  2nd cup of coffee hasn't kicked in...
> >
> > ----- Original Message -----
> > From: "JesterXL" < [EMAIL PROTECTED]>
> > To: <flexcoders@yahoogroups.com>
> > Sent: Wednesday, November 23, 2005 12:09 PM
> > Subject: Re: [flexcoders] event bubbling Flex 1.5
> >
> >
> > I usually do:
> >
> > dispatchEvent({type: "someEvent", target: this});
> >
> > Where this points to the component dispatching the event.  So, if A wants to
> > know who dispatched the event:
> >
> > function someEvent(o)
> > {
> >     trace(o.target); // this is A
> > }
> >
> > ----- Original Message -----
> > From: "Douglas Knudsen" <[EMAIL PROTECTED]>
> > To: <flexcoders@yahoogroups.com >
> > Sent: Wednesday, November 23, 2005 11:52 AM
> > Subject: Re: [flexcoders] event bubbling Flex 1.5
> >
> >
> > drat!  I read your blog entry on this too, forgot about  it.  Ok, in
> > my scenario below, I have A catching the event dispatched in C.  But
> > the target in the event still points to B the middleman.  I need A to
> > be able to be able to reference C in the event.  Is the only way to
> > add a reference to C in the event dispatch in C?
> >
> > DK
> >
> > On 11/23/05, JesterXL <[EMAIL PROTECTED]> wrote:
> > > It IS supported:
> > > http://www.jessewarden.com/archives/2005/11/event_bubbling.html
> > >
> > > ----- Original Message -----
> > > From: "Douglas Knudsen" <[EMAIL PROTECTED]>
> > > To: <flexcoders@yahoogroups.com >
> > > Sent: Wednesday, November 23, 2005 11:29 AM
> > > Subject: [flexcoders] event bubbling Flex 1.5
> > >
> > >
> > > not supportted I know, how to work around?.  Say I have 3 components
> > > A,B, and C.  B is a child of A and C is a child of B, each child among
> > > children possibly.   Now, if C fires an event called fooEvent, I can
> > > get A to catch it, but the event.target points to B not C.  The way I
> > > worked around this was in B I caught the event then re-broadcast it so
> > > that A could catch it.  In the re-broadcast I added a reference to C
> > > in the event.  How else can I 'bubble' up an event?
> > >
> > >
> > > --
> > > Douglas Knudsen
> > > http://www.cubicleman.com
> > > this is my signature, like it?
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Douglas Knudsen
> > http://www.cubicleman.com
> > this is my signature, like it?
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>


--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/u8TY5A/tzNLAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/






--
j:pn


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to