1 Reply Latest reply on Dec 8, 2010 7:14 AM by jaswerl

    Scrollpane content not responding

    _Scrumpy
      I have content in a scrollpane which I would like users to be able to drag (content is larger than the pane). There are also rollover areas in the content that are only accessable when scrolldrag is false (makes sense). So, I've set the scrollpane scrolldrag property to false until the user presses the Ctrl key:

      //Listener for Ctrl key to allow drag
      createEmptyMovieClip('_keyListener',999);
      Key.addListener(_keyListener);
      _keyListener.onKeyDown=function(){
      if (Key.getCode() == 17) {
      spFloorplan.scrollDrag = true;
      }
      }
      _keyListener.onKeyUp=function(){
      if (Key.getCode() == 17) {
      spFloorplan.scrollDrag = false;
      }
      }

      Unfortunately, once the Ctrl key is pressed and released, the content is no longer responding to onRollOver events. I've tried doing a setFocus on the content, redraw on the scrollpane; nothing seems to get back to the initial state. Help!

      Jeff