5 Replies Latest reply on May 28, 2007 3:44 PM by kglad

    double click

    zibber
      Hi

      I want to add a double clik detect to a movie clip which works fine and dandy if the movie clip jsut has gaprhics in it. However, i really could do with having th emovie clip also house other movie clips. But when i od this the double click doesnt seem to work. heres the cide bewlow:

      var bubble:MovieClip;
      bubble = new bubble_container();
      this.addChild(bubble);
      bubble.doubleClickEnabled = true;
      bubble.addEventListener("doubleClick", doubleClick);

      bubble.addEventListener("click", singleClik)

      function doubleClick(event:Event){
      trace("im double clikked");

      }

      function singleClik(event:Event){
      trace("im single clikked");
      }

      is there a way of basically listenting for anything in bubble being double clicked?

      thanks v much in advance

      a