Reverse event bubbling/dropping

Hi!
I use custom components to organize my application. Event
bubbling from a nested component to the application works fine. Is
it also possible to notify any component tested in the application
with an event triggered by the appplication or another component at
the same level?
THX

Components have to listen/register to receive events, either
during the capture or bubble phase. So a child component can listen
for a component by its using parent.addEventListener( "eventname",
eventHandlerFunction );

Similar Messages

  • Event Bubbling Custom Object not inheriting from control

    One of the new things flash flex and xaml have are ways which
    the event easily bubbles up to a parent that knows how to handle
    the event. Similar to exceptions travel up until someone catches
    it.
    My goal is to use the frameworks event system on custom
    objects. My custom objects are:
    ApplicationConfiguration
    through composition contains:
    SecurityCollection which contains many or no SecurityElements
    and
    FileSystemCollection.cs which contains many or no
    FileSystemElement objects
    ect ect basically defining the following xml file with custom
    objects.
    [code]
    <ApplicationConfiguration>
    <communication>
    <hardwareinterface type="Ethernet">
    <ethernet localipaddress="192.168.1.2" localport="5555"
    remoteipaddress="192.168.1.1" remoteport="5555" />
    <serial baudrate="115200" port="COM1" />
    </hardwareinterface>
    <timing type="InternalClock" />
    </communication>
    <filesystem>
    <add id="location.scriptfiles" value="c:\\" />
    <add id="location.logfiles" value="c:\\" />
    <add id="location.configurationfiles" value="c:\\" />
    </filesystem>
    <security>
    <add id="name1" value="secret1" />
    <add id="name2" value="secret2" />
    </security>
    <logging EnableLogging="true"
    LogApplicationExceptions="true" LogInvalidMessages="true"
    CreateTranscript="true" />
    </ApplicationConfiguration>
    [/code]
    basically these custom objects abstract the xml details of
    accessing attributes, writing content out of the higher application
    layers.
    These custom objects hold the application configuration which
    contains the users options. The gui application uses these
    parameters across various windows forms, modal dialog boxes ect.
    The gui has a modal dialog that allows the user to modify these
    parameters during runtime.
    basically i manage: load, store, new, edit, delete of these
    configuration files using my custom objects.
    Where would event propagation help in custom objects like
    described above?
    ConfigurationSingleton.getInstance().ApplicationConfiguration.CommunicationElement.Hardwar eInterfaceElement.EthernetElement.RemoteIPAddress
    =
    System.Net.IPAddress.Parse(this.textBoxRemoteEthernetIpAddress.Text);
    The EthernetElement should propagate a changed event up to
    the parent ApplicationConfiguration which would persist this to the
    registry, db, file or whatever backend.
    currently this logic is maintained else where. I serialize
    the root node which compositely serializing the nested nodes and i
    check of the serialization is different from that in the backend
    … This tells me if the dom was modified. It works but i would
    like an event driven system.
    how should i implement bubbling using custom objects?
    3 implementation ideas:
    1) A simple way is to implement a singleton event manager:
    EventManager.RegisterRoutedEvent
    http://msdn2.microsoft.com/en-us/library/ms742806.aspx
    I like this idea but how can you tell which object is nested
    in who… this way the event can be stopped and discontinue
    propagation?
    2) If i use binders as discussed in Apress’s book:
    Event-Based
    Programming Taking Events to the Limit
    basically a binder connects the events between seperate
    objects together… although it would work for my app, I would
    like a more generalized approach so i can reuse the event system on
    future project.
    3) how does flash flex handle this..
    objectproxy.as?
    http://www.gamejd.com/resource/apollo_alpha1_docs/apiReference/combined/mx/utils/ObjectPro xy.html#getComplexProperty()
    >Provides a place for subclasses to override how a complex
    property that needs to be either proxied or daisy chained for event
    bubbling is managed.
    how does these systems all work....? Reflection ?
    this way i can simulate this on my own custom classes.
    Thanks!

    I have a strong sensation that the OSMF project is quite dead.
    no new submits since 2010, the contact form on the offical OSMF
    project website http://www.opensourcemediaframework.com/
    returns a PHP error.
    and many unanswered questions about OSMF in this forum.
    i think it would be wise to not use OSMF if possible, although
    I'm also stuck with it since we are utilizing HDS/PHDS
    protocols which are utilized in the framework.
    otherwise its quite a head-ache.
    I'm unable to get to a video element coming from a proxied element
    that is being produced via an HDS connection.
    and haven't found any solution that works.

  • Custom Event Bubble

    I'm new to flex and how it handles Event Bubbling.  I can make a custom event work with this code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   applicationComplete="init()" name="app">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import flash.events.Event;
                import mx.controls.Alert;
                private function init():void {
                    addEventListener("myEvent",testListener);
                    var testEvent:Event = new Event("myEvent",true);
                    dispatchEvent(testEvent);
                private function testListener(event:Event):void {
                    Alert.show("Trigger Worked");
            ]]>
        </fx:Script>
    </s:Application>
    But when I break out the code so the Event fires in a class the parent does not catch it.
    MyEvent.as file:
    package comp {
        import flash.display.MovieClip;
        import flash.events.Event;
        public class MyEvent extends MovieClip{
            public function MyEvent() {
                var testEvent:Event = new Event("myEvent",true);
                dispatchEvent(testEvent);
    TestEvents.mxml file:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   applicationComplete="init()" name="app">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import comp.MyEvent;
                import flash.events.Event;
                import mx.controls.Alert;
                private function init():void {
                    addEventListener("myEvent",testListener);
                    var tempEvent:MyEvent = new MyEvent();
                private function testListener(event:Event):void {
                    Alert.show("Trigger Worked");
            ]]>
        </fx:Script>
    </s:Application>
    I know I'm missing something simple.  Could someone please point me in the correct direction.
    Thanks,
    Sol

    Thanks for the help!!!  I got it to work using most of your code.  The only change I had to make was move the dispatchEvent out of the construtor and into it's own function.  That way the listener is definded before it fires.
    Now I noticed you added the listener to the object itself is this bubbling?  I thought if you have bubbling turned on the main app can have the listener and if a child fires an event it would bubble up.  If the listerner is not on the MyEvent class it does not work.
    Here is the new Working code if you take the : tempMyEvent off this line:
    addEventListener(MyEvent.MY_EVENT, myEventHandler);
    it does not work
    Should it?  Should the event bubble up and still be fired?
    Below is working code:
    MyEvent.as
    package comp {
        import flash.display.MovieClip;
        import flash.events.Event;
        public class MyEvent extends MovieClip{
            public static const MY_EVENT:String = 'myEvent';
            public function MyEvent() {}
            public function disEventTest():void {
                dispatchEvent(new Event(MyEvent.MY_EVENT,true));
    TestEvents.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   applicationComplete="init()" name="app">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import comp.MyEvent;
                import flash.events.Event;
                import mx.controls.Alert;
                private function init():void {
                    var tempMyEvent:MyEvent = new MyEvent();
                    tempMyEvent.addEventListener(MyEvent.MY_EVENT, myEventHandler);
                    tempMyEvent.disEventTest();
                private function myEventHandler(event:Event):void {
                    Alert.show("Trigger Worked");
            ]]>
        </fx:Script>
    </s:Application>
    Thanks again for your help this will at least get me moving forward again.
    Sol

  • Event on Drop Down in UI

    Hi All,
    I need event for Drop Down field in UI, once selected any value then need this event to get trigger?\
    my coding is like this in GET_P :
      CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
    -> field type: event link
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.
        WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
    -> event
          rv_value = 'SR_CNT'.                                        "#EC NOTEXT
      ENDCASE.
    Also in Event handler method I define this event & exists with name EH_ONSR_CNT.
    But not getting triggered.
    What I am missing?
    Thanking you.
    Best regards,
    VIJHyd

    Hi Justin Hill,
    actually drop down is already available in my case as I am doing this for already existing field,
    I did coding like below to get it work:
    my coding is like this in GET_P :
    CASE iv_property.
    WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
    -> event
    rv_value = 'SR_CNT'. "#EC NOTEXT
    ENDCASE.
    once u did like this, completely logoff from Web Ui then login again to get it reflected....

  • My calendar events are dropped after the month is over.  How can I stop that from happening?

    My calendar events are dropped after the month is over.  How can I prevent this from happening?

    Settings > Mail, Contacts, Calendars > [scroll way down to the Calendars section] Sync = "All events"

  • Stop Event Bubbling w/ VidPlayer Component

    Hello
    I am having trouble with event bubbling when using the flash video player
    I've tried several methods to stop the player,before submitting here - but nothing I've tried seems to work
    The example is posted at http://64.50.167.136/~natures/NaturesReflections.html
    The scenraio is:
    The site loads great - the buttons function correctly
    When the fourth button is click - it loads a frame with an embeded FLV player
    (the default vid player Flash uses when importing video into the swf)
    When the fourth button is click (Cheetah Coloring System)
    The video starts to play
    When any other button is clicked
    The video continues to play
    The embeded vid clip is named movie1
    and i've tried using move1.stop();
    but that stops the entire swf
    Any suggestions on how to stop the movie - when another button is clicked?
    Thank you for your time and attention
    COde used for the buttons::::
    btn1_mc.addEventListener(MouseEvent.MOUSE_DOWN, bhp1DownHandler);
    function bhp1DownHandler(event:MouseEvent):void {
    gotoAndStop(15);
    btn2_mc.addEventListener(MouseEvent.MOUSE_DOWN, bhp2DownHandler);
    function bhp2DownHandler(event:MouseEvent):void {
    gotoAndStop(16);
    btn3_mc.addEventListener(MouseEvent.MOUSE_DOWN, bhp3DownHandler);
    function bhp3DownHandler(event:MouseEvent):void {
    gotoAndStop(17);
    btn4_mc.addEventListener(MouseEvent.MOUSE_DOWN, bhp4DownHandler);
    function bhp4DownHandler(event:MouseEvent):void {
    gotoAndStop(18);

    don't embed your flv in your swf.  add an flvplayback component to your frame where you want the flv to be displayed, assign it an instance name (say flv) and use:
    flv.source="pathtoyourvideo.flv";
    and, if publishing for fp 10, use:
    flv.unloadAndStop();
    when about to exist that frame.
    if publishing for fp9, use:
    flv.stop();

  • Event Bubbling from inside a MediaElement

    Hi,
    Does anyone know how to bubble a custom event from inside a ProxyElement? My ProxyElement wraps the target media inside a SerialElement and prepends a clip. I'm wondering how to dispatch an event which I could capture outside of OSMF (bubbles all the way up to Stage).
    I've tried dispatching from the ProxyElement, the SerialElement it creates, the VideoElement inside the serialElement, and also from the DisplayObjectTrait of each of those. I'm unable to successfully capture it via bubbling.
    In contrast I've modified the AdProxy example (org.osmf.examples.ads.AdProxy) and I can successfully capture a bubbled event dispatched via the displayObject it creates. I believe this may be due to its use of a custom AdProxyDisplayObjectTrait? It doesn't seem to do anything fancy so I'm not sure why it works yet my other attemps don't.
    Speaking of the AdProxy example. If i modify it to create a SerialElement and prepend a clip only the first clip plays correctly, all subseqwuent clips are heard but not seen. Is this a bug or do I need to somehow remove the custom AdProxyDisplayObjectTrait to resolve this issue? The child media claims it correctly has its own DisplayObjectTrait and the dimensions are correct. I'm using OSMF 1.6.1.
    Cheers,
    Tim

    I have a strong sensation that the OSMF project is quite dead.
    no new submits since 2010, the contact form on the offical OSMF
    project website http://www.opensourcemediaframework.com/
    returns a PHP error.
    and many unanswered questions about OSMF in this forum.
    i think it would be wise to not use OSMF if possible, although
    I'm also stuck with it since we are utilizing HDS/PHDS
    protocols which are utilized in the framework.
    otherwise its quite a head-ache.
    I'm unable to get to a video element coming from a proxied element
    that is being produced via an HDS connection.
    and haven't found any solution that works.

  • [ANN] Find Static Events Quick Drop Plugin

    Hi,
    Just added a quick drop pluging over here (.ogp).
    It will list all static events linked to a selection of controls, indicators, terminals, locals or static control references.
    Hope it's usefull to someone.
    Wiebe.

    Christie wrote:
    Hi GerdW,
    (Tongue in cheek) I don't like terminals!  Whenever I need to copy a piece of code, terminals get duplicated.  I move all my terminals off to the right of the diagram of my main VI, except for booleans that are used in event structures.  Whenever I need to show a hidden control, I know where to find the terminal... sort of.
    Well I guess I don't use them much in subVIs, but in front end VIs it would really help a lot if it was easier to create local variables for the 20 configuration input controls or sensor display indicators I've just created.
    Cheers
    Control click drag will copy without copying the terminal
    CLA, LabVIEW Versions 2010-2013

  • Avoiding server events of drop downs, table rows--serious discontent:Users

    Hi All,
      We have developed Timesheet, satffing request system, Visa Requisition System, Dash board using WEB DYNPRO for JAVA. Each application has UI elements->drop downs,Table.
    <b> We are facing serious discontent from onsite users( US,Germany, UK etc..) who get lot of server events while using each UI element( mentioned above). "It is absolutely unfriendly" is the comments we are getting from users</b>.
    <u>CAN'T WE AVOID THIS....by upgrading EP version(currently we are using 6.40) or some other way.....</u>
      Please let us know how can we OVERCOME this issue...
    Thanks in advance,
    Gangadharayya.

    Hi,
    See if you can find the "CompatibilityMode" property for the table. Set this property to "nw04plus" value. This should eliminate your issue.
    Hope this helps.

  • Event bubbling from PopUp

    How to listen to a event dispatched from a PopUp? The PopUp from an Application (as parent). However, the Application is not able to listen to the event.

    Hi,
    as an example
    _customWindow = TitleWindow(PopUpManager.createPopUp(this, TitleWindow, true));
    _customWindow.addEventListener(CloseEvent.CLOSE, onCloseCustomVars);
    _customWindow.addEventListener("settingsChanged", onChangeCustomVars);
    PopUpManager.centerPopUp(_customWindow);

  • AS2 ... how to NOT capture an event, how to pass the event onwards through the event bubbling flow

    hello;
    I have:
    Class my_class
      { public function my_class( an_mc )
             an_mc.onUnload = function()
               { // this capture prevents other listeners from getting it also;
                 //  in Adobe Director's Lingo, there is a pass method.

    true;
    I have two requests for some_mc.onUnload, one of which is built into a flipbook 'component' that I am using, and the other one which I need;
    it seems that mine is preventing the flipbook component from receiving it's;
    so ideally I would like to 'pass' the event onwards to any other listeners ( ie the flipbook's );
    for now I am not including mine in order to allow the flipbbook to do what it needs, and using some hacky approach to realise that some_mc has been removed from the stage;

  • Event bubbling

    On my root timeline I have the following event dispatch.
    dispatchEvent(new Event("TICK_CLICK", true));
    Then in a class that is attached to a movie clip, I want to listen to this event, but can't seem to do so.
    Here is what is in the class:
    addEventListener("TICK_CLICK", closeQuiz);
    Why is this not working?
    Thank you for any help!!!

    only the object that dispatched the event can listen to the event.  in your case, that's the root timeline.

  • How to handle the drop event

    Hi everyone,
    Now I'm developing the function about drag-drop source(image & text) from Panel Tree to the document.
    I also have a look at the basic drag/drop & Panel Treeview, but all of them is not the source code mentions to how to handle the drop event, almost about drag event only.
    Now when user Drags(image, text) from PanelTreeView(example) and drops them to document and then new page Item contains source(image, text) created, so I want to get the page item after drop event.
    so anyone know about this please give me suggestion
    thanks so much.

    i dont think you can.
    ~~~~~~~~~~~~~~~~
    --> Adobe Certified Expert
    --> www.mudbubble.com
    --> www.keyframer.com
    ~~~~~~~~~~~~~~~~
    keyoke_za wrote:
    > Hi,
    > How can I get my flash movie to handle the drop event
    when dropping objects from outside the flash window.
    > Thanks for your help..

  • I have an event in my calendar that was sent by someone who does not work for the company anymore and I am reminded 2 times a week. How can I remove it?

    I have an event in my calendar that was sent by someone that does not work for the company anymore and I am reminded 2 times a week. How do I delete it?

    Tap on the event to open the event. Click the 'Edit' button in the event bubble, then press the 'Delete Event' button at the bottom of the Edit pop-up. It's a little different for events that come through Microsoft Exchange, you tap the event to bring up bubble and click the 'Details' button, and then press 'Decline' to remove the event.

  • Can't edit an event in my Calendar.

    Yesterday I noticed that I can't edit an event in my Calendar. Also when I type a new event it drops some of the type off when I hit return. And it's not necessarily dropping off the end of the sentence! I'm using OSX10.8.5. The only thing that's different is last week I loaded Adobe CC. Not sure if that has anything to do with it or not. I've turned off Calendar in iCloud and turned it back on and that didn't fix anything. Any suggestions?

    FOUND IT!!!
    Found a previous post on here about it. I removed Lucida Grande and it's fixed!
    "It appears the problem font for me was Lucida Grande. Resolving Duplicates didn't work properly, so I had to pull the old version manually."

Maybe you are looking for

  • How to set condition in CFL which are alredy assign in EditText

    Hi   All I create a Screen Printer Form where i assign a edit text to ChooseFromList as follow- 1)1st create a CFL using Collection Tab in screen printer and set the Object type=2 and Unique Id=CFL_2 2)Then assign CFL_2 to EditText in Item Tab window

  • Finding audio files on Classic not added through iTunes?

    I'm using a different podcast aggregator and digital music storage program than iTunes.  And so I downloaded a podcast episode on it, and tried to add it to my iPod Classic.  How do I find that file on the iPod itself? If I can't, is it time to switc

  • Updated Premiere Pro CC and now it won't launch; was working before

    I decided to update my Premiere Pro CC and I haven't gotten past the splash page launch ever since.  Now, all I get is the splash page for a second and then the Windows alert that it has stopped working. There's not even an "initalizing" log running

  • Where  can i find table for field condition rating

    hi all , where  can i find table for field condition rating& its decription, please help me thanks in advance to all

  • Iphone protection plan options

    Does anyone know when apple will have the iphone applecare available?? Squaretrade is also supposed to have one and I've read that they will even cover accidental damage unlike apple's. Squaretrade doesn't have it yet but do any of you know when and