Matt:

I'm adding UIComponents to the display list - I guess that wouldn't work 
this way.
What's the best way to propagate a method to UIComponents?

Can I just create new UIObjects and add them as children to my display 
list or do I have to create class files
and extend my classes that way?

As you see I'm relatively new to flex and I thank you for your time.

patrick




Matt Chotin wrote:
>
> Is the whole parent hierarchy DisplayObjects? Bubbling will only go 
> through UI objects, if you had something that didn’t extend 
> DisplayObject in there it won’t bubble up (all of the Flex visual 
> components are DisplayObjects)
>
> ------------------------------------------------------------------------
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] 
> *On Behalf Of [EMAIL PROTECTED]
> *Sent:* Monday, November 27, 2006 5:39 PM
> *To:* [email protected]
> *Subject:* [flexcoders] Event Propogation - how to bubble up through 
> components??
>
> I'm using bubbling, or at least i think i am to capture an event...
> I've extended the event class to make my own event mechanism. the
> events are being dispatched, however the problem is, that
> I'm adding an event listener to my custom mxml component to receive
> the events and nothing happens. I've probably got something
> backwards...
>
> Isn't there a way to listen to events from the parent document?
>
> Doesn't bubbling set to true allow the event
> to be captured by any component in the order that they are created?
>
> my code is as follows:
>
> var evt:MeEvent = new MeEvent(MeEvent.REMOTE,true);
> dispatchEvent(evt);
>
> -----------------------------------
>
> package com.me
> {
> import flash.events.Event;
>
> public class MeEvent extends Event
> {
>
>
> public static const REMOTE:String = "remote";
>
> public var realTarget:*;
>
> public function MeEvent(type:String, bubbles:Boolean=true,
> cancelable:Boolean=false)
> {
> super(type, bubbles, cancelable);
> }
> }
> }
>
> --------------------------------------
> And inside my custom component this is the event listener.
>
> private function init():void{
> this.addEventListener(MeEvent.REMOTE, handleEvent);
> }
>
> Thanks for your time,
> Patrick
>
>  




--
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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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/
 

Reply via email to