bubbling events will stop at the first parent

My application has a hierarchy of components custom; the application contains a part of the canvas, with a component tilelist with a custom itemrenderer. The itemrenderer contains an image, which, to the click, calls a function:
(imgDelete.dispatchEvent (new Event ('removeItem', true));)
I added a listener (this.addEventListener ('removeItem', removeItemHandler)); to the tilelist and which works perfectly. But the addition of the same event listener to the canvas or the application itself does not work. What should I do to get the event heard on any of the ancestors above rather than stop at the level of the parent container?
Kind regards
Paul

Too bad!
Just realized I didn't instantiates the event listener. More no coding after midnight.

Pei

Tags: Flex

Similar Questions

  • Helpppp! my flash table will play only the first image

    my flash table will play only the first image

    This is the code

    stop(); 
    var t:Timer=new Timer(100,0);
    t.addEventListener(TimerEvent.TIMER,preloadF);
    t.start();    
    var rdmFrame:Array = ["15","150","420","589","712","807","1135"]; 
    
    stage.addEventListener(MouseEvent.CLICK, fnClick) 
    
    function fnClick(e:MouseEvent):void 
    {          
    trace(rdmFrame[numberRange(0, rdmFrame.length)]); 
    } 
    
    function preloadF(e:TimerEvent)
    {
        if(this.framesLoaded>7)    
        {
            t.stop();        
            t.removeEventListener(TimerEvent.TIMER,preloadF);        
            t=null;         
            this.gotoAndPlay(numberRange(0, rdmFrame.length - 1));     
        } 
    } 
            
    function numberRange(minNum:Number, maxNum:Number):Number 
    {          
            return (Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum); 
    }
    

    Ned Murphy wrote:

    Back through ALL the suggestions that I offered and use them.

    HA! I'm sucha dooofus!  Yes it works! YAY!

    Stop();

    var t:Timer = new Timer (100.0);

    t.addEventListener (TimerEvent.TIMER, preloadF);

    t.Start ();

    var rdmFrame:Array = [15,150,420,589,712,807,1135];

    function preloadF(e:TimerEvent)

    {

    if(this.framesLoaded>7)

    {

    t.Stop ();

    t.removeEventListener (TimerEvent.TIMER, preloadF);

    t = null;

    this.gotoAndPlay (rdmFrame [numberRange (0, rdmFrame.length)]);

    }

    }

    function numberRange(minNum:Number,_maxNum:Number):Number

    {

    return (Math.floor (Math.random () * maxNum));

    }

  • The upgrade to El Capitan - I changed all my Albums events... When the upgrade takes place I guess my events will disappear and the albums newly displaced will remain

    I am upgrading to El Capitan, and have all my Albums events... I guess when the upgrade is finished that my events will disappear and the rest are my albums and will not be duplicated in "events".

    NO.

    All photos will be migrated, smart albums will be migrated insofar as their criteria is supported in the Photos and all events will be converted into albums and stored in a folder called iPhoto events

    How Photos handles content and metadata for iPhoto and Aperture - Apple Support

    and read this trick of the user - Notes on the migration of an iPhoto for iPhoto to Photos for Mac library

    LN

  • When I open a program that takes a few seconds to load and open another program while I'm waiting, it will automatically put the first window on top

    When I open a program that takes a few seconds to load and open another program while I'm waiting, it will automatically put the first window on top when it has finished loading.  How do I not do?

    Hello

    Unfortunately, it is not possible to change that outside of the modification of the order in which the programs open.

    If you have feedback or suggestions, you can express their opinion on this at:

    http://connect.Microsoft.com

    It will be useful.

  • When you buy an extended image lisence adobe stock can I use it as the back ground for a mail announcing who will be on the first page of my business profitable online store?

    When you buy an extended image lisence adobe stock can I use it as the back ground for a mail announcing who will be on the first page of my business profitable online store?

    Adobe Stock license allows you to use your assets anywhere in the world, and the license never expires. You can use the assets, in print, presentations, Web sites and even on social media sites. However, you may not distribute digital assets by posting it online or in any other way that would leave other people to use the assets without permission it is.

    from there:

    Royalty-free images, pictures and graphics. Adobe Stock

  • Printing of the .pdf of the 2013 project file will stop when the name of the file must be written. Project 2013 crashes. Anyone know what the problem is between 2013 project and Adobe Acrobat 9?

    Printing of the .pdf of the 2013 project file will stop when the name of the file must be written. Project 2013 crashes. Anyone know what the problem is between 2013 project and Adobe Acrobat 9?

    The family of products Acrobat 9.x passed in mid-2013 "end of Support".
    Using Acrobat 9 of MS Project via PDFMaker stops with Office 2007.
    To 2013 Office support, you must use Acrobat XI (11.0.1) or newer.

    A good reference:
    https://helpx.Adobe.com/Acrobat/KB/compatible-Web-browsers-PDFMaker-applications.html

    Acrobat Pro and Standard DC are what are currently available for purchase.

    Be well...

  • State of the object stops at the first Image

    Hi, I have created objects for the Images 5 States and gave an automatic slide show, it plays well and stops at the first State, but I want to freeze in the State of the object.

    Is it possible to stop.

    Thank you

    Stanly

    Select stop to the last Image in the slideshow creator overlay.

    Important: Make sure you have latest update the viewer of content from the iTunes Store. It was approved in a couple of days.

    Bob

  • flat sequence stops after the first image

    Hello

    I use USB-6218 to drive a current source and read the voltage at the terminals of shunt resistance in my circuit. In order to safely run things, I wanted to make sure that when I stop my blood 'on demand' vi, I updated the current 0. To do this, I tried to use the sequence of dish (find in annex vi), but my program never leaves the first image, even after it hit the stop on my front button.

    Can someone help me with this?

    Thank you
    Katarina

    Does not change the value of Stop inside the Subvi and the loop runs continually.

    -Suggest to check this example: http://www.ni.com/example/28769/en/

  • HP 6525 all in one will only print the first document in the queue

    I use a HP 6520 all-in-one printer with my MAC OS x 10.6.8.  The problem is when I print a document the printer will work normally but if I try to print another document, that it won't work at all.  When I put them in queue printer it shows by the percentage that the printer is always finishing the first document (which has already been printed) and the second document is in the queue waiting for the first to be filled.  The only way to move forward with the next impression is to remove both documents in the queue. I have installed the latest driver and updates and unplugged & repluged the printer and restarted the computer.  Would appreciate any help

    Bernsie

    Hi Bernsey,

    I want to help you to be able to print without jobs get stuck in the print queue. Please follow the instructions below to rest your printing system, repair your disk permissions and add the printer again.

    Reset the printing system

    1. Click on the Apple icon ( ), then click on System Preferences.
  • Stop at the first time (on the first picture)

    Hello

    It there a way to "stop" a framework when you first launch?

    I want the user to play a frame when the user a touchscreen.

    For the first time, the stage must be stopped.

    Thank you.

    Yes.  You can add the code via the Actions Panel (window > Actions or press F9).

    For the ActionScript documents, use:

    Stop();

    Or to HTML5 canvas documents, use:

    This.Stop ();

    To learn more about adding code/interactivity here: Add interactivity with code to animate CC

  • Draw the stop at the first image method

    I need to make an animated film flower using a bitmap tile. I use the code below, and write only the first image then stop, how can I get more images?

    createEmptyMovieClip("triangle",2);
    triangle.beginFill(0x000000,100);
    triangle.moveTo(width_map/2,height_map/2);
    triangle.lineTo(width_map/2+(height_map*Math.tan(angle)/2),0);
    triangle.lineTo(width_map/2,0);
    triangle.endFill();
    triangle._visible = false;
    
    attachMovie(elm_link,"elm",1);
    
    elm.setMask(triangle);
    
    sl_bmp = new flash.display.BitmapData(height_map*Math.tan(angle), height_map/2, true, 0x00000000);
    angl = 0;
    for (i=1; i<=slices; i++) {
         createEmptyMovieClip('elm'+i,10+i);
         this['elm'+i].createEmptyMovieClip('elm',0);
         this['elm'+i].elm.attachBitmap(sl_bmp,0,"always",true);
         this['elm'+i].elm._x = -height_map*Math.tan(angle)/2;
         this['elm'+i].elm._y = 2-(height_map/2);
         this['elm'+i]._x = width_map/2;
         this['elm'+i]._y = height_map/2;
         if (angl>0) {
              this['elm'+i]._rotation = angl;
         }
         angl += 360/slices;
    }
    function onEnterFrame() {
         elm._rotation += rotspeed;
         elm._x += transpeed;
         elm._y += transpeed;
         var tmp_bmp = new flash.display.BitmapData(height_map*Math.tan(angle)/2, height_map/2, true, 0x00000000);
         tmp_bmp.draw(elm,new flash.geom.Matrix(1, 0, 0, 1, -(width_map/2), 0),null,"normal",null,true);
    
         sl_bmp.draw(tmp_bmp,new flash.geom.Matrix(-1, 0, 0, 1, tmp_bmp.width, 0),null,"normal",null,true);
         sl_bmp.draw(tmp_bmp,new flash.geom.Matrix(1, 0, 0, 1, tmp_bmp.width, 0),null,"normal",null,true);
    
    }
    

    This is a typo and should be Elm

  • Satellite P300D 10V will stop when the game

    Hello everyone

    I bought a satellite P300d 10v last month. At the beginning it was very good, but it was still very hot.
    I thougt that the cause is the weather, but it wasn't.

    When I try to play a game (cod4-prostreet - same easy dos games) my camera turns off in the first 10 minutes! and he always did that to any game all resolation.

    And another problem too; If I turn on music to aircraft 50% was a "diiizzzz" sound from all points of the keyboard and the connection of the plastic parts.
    First of all, I couldn't have thought them too big problems but when I search online in Turkey, I found a lot of people who have same problems on their P300D 10V
    and some of them gave their pc in the technical service and take their money back so I gave my too.
    But of course, I have problems to tell my problems of technical service right now.

    Is there anyone experiencing the same problems with this pc or the knowledge to solve problems?

    Erman Manas
    BURSA/TURKEY

    You have COOLING method in energy savings of Toshiba to the maximum level?

    While playing do not forget the laptop is placed correctly on the desktop and make sure that nothing obstructs the cooling rack.

  • Video playback will stop while the buffering

    video buffering

    When I try to play videos from the internet they keep stop while the buffering so I can't get the video to play video and sound as well as keep stop.

    When I try to play videos from the internet they keep stop while the buffering so I can't get the video to play video and sound as well as keep stop.

    ==============================
    Just some thoughts...

    Could be a slow internet connection...

    Could be high traffic on the hosting site...

    Maybe the server is to halfway around the world...

    Maybe you can download the videos to your hard drive and view them from there?

    John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • after delete the classified, the cursor will move to the first column

    Hi all

    After that I selected the lov and click the clear button, it erases that filed and went to the 1st column, for that I clearly want the column & stay with this column only, how to put in shape?

    Thank you



    Hi, sorry for this, put the code is the "back" button. When you press the button Search, that he will go to the block of data you press back button to find the right block. So, can you please put GO_ITEM(:global.goitem); this code button at the rear of the block of data

  • FPGA code will stop when the code RT

    I developed a FPGA code to manage a piece of hardware. It's the installer to read some default Panel control configuration values and then sit there constantly respond to signals input and output signal.  The bitfile FPGA is written in flash to load FPGA memory and starts almost immediately. So far, everything is good.

    Then I layered on the code of RT (cRIO-9075) system that opens a reference FPGA to the FPGA façade and allows me to follow a few indicators and change configuration settings and cause the configuration settings is changed be used by the FPGA.   So far, it seems to work too when I run the RT code interactively (eventually there will be an interface for a host system).

    The problem occurs when the code RT is ordered to stop. If you stop the RT code also, the judgment of the FPGA code and I will not stop the FPGA code. The RT code does not all calls to order the FPGA code to stop execution. When the RT code is stopped, the only thing she does in regards the link to the FPGA is to close the reference FPGA VI which was opened when the RT code was started.

    What should I do to cause the code FPGA to continue to operate as the RT code is started and stopped?

    I have to wait that I return to the office tomorrow to test this, but I think that this link has the answer to my problem.

    http://lavag.org/topic/16412-confusion-regarding-FPGA-Deployment/#entry100294

    It is said: "close FPGA VI reference. If you right click you have an option to close or by default close and reset. This means the VI FPGA is reset (read aborted in standard LV talking) when we close the reference. »

Maybe you are looking for