0 Replies Latest reply on Oct 17, 2006 2:35 PM by Mr Binitie

    useHandCursor not working

    Mr Binitie Level 1
      I use this function to populate a moving picture slide navigation bar. However the useHandCursor property does not work when used witht the buttonEnable property

      public function createNewChildren(n:int):void
      {
      this.width = 500;
      pContainer0 = new Image();

      for (var i:int = 0; i<(n*2); i++)
      {
      var pImage:* = "p"+i;
      pImage = new Image();
      pImage.width = 120;
      pImage.height = 95;
      pImage.maintainAspectRatio = false;
      pImage.mouseEnabled = true;
      pImage.useHandCursor = true;
      pImage.x = i*pImage.width;
      pImage.source = "images/"+aXML.children()[i%n].attribute("id");
      pImage.data = {path:aXML.children()[i%n].attribute("path")}
      pImage.addEventListener(MouseEvent.CLICK, clickHandler)
      pContainer0.addChild(pImage);

      }

      this.addChild(pContainer0);
      pContainer0.width = n*120;
      //pContainer0.mouseEnabled = true;
      //pContainer0.useHandCursor = true;
      pContainer1.x = pContainer0.x + pContainer0.width;
      this.addEventListener(MouseEvent.ROLL_OVER, rollOverHandler);
      this.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);

      }