0 Replies Latest reply on Nov 21, 2009 10:07 AM by S-Mitch-07

    Help with AS2 on scrolling panels please

    S-Mitch-07

      I am a novice with ActionScript (2 and 3) and have experimented with the AS2 script below but haven't figured out how to do the following:

       

      I want the top panel to stop when the mouse is placed on a shop. Like the bottom panel does. Maybe the scripts are conflicting, since the this works with script for the bottom panel is absent.

       

      It would be great if the scrolling goes in the opposite direction when the mouse is over the right white arrow.

       

      Code below. You can view the site here.

       

      Any help with this much appreciated.

       

       

      gotoAndStop(1);
      
      /*preloader ends*/
      
      
      /*script for top bar*/
      
      _root.onEnterFrame = function () {
      
      if(_root._ymouse>225){
      
      myVar=false;
      
      }
      
      if(_root._ymouse<226){
      
      myVar=true;
      
      }
      
      if (_root._xmouse<21 and myVar==true) {
      
      imgBarTop.prevFrame();
      
      imgBarTop.prevFrame();
      
      } else {
      
      imgBarTop.stop();
      
      }
      
      if (_root._xmouse>801 and myVar==true ) {
      
      imgBarTop.nextFrame();
      
      imgBarTop.nextFrame();
      
      } else {
      
      imgBarTop.play();
      
      }
      
      if (_root._xmouse>21 && _root._xmouse<801 && myVar ==true){
      
      imgBarTop.stop();
      
      }
      
      }
      
      
      /*script for bottom bar*/
      
      _root.onEnterFrame = function () {
      
      if(_root._ymouse<304){
      
      myVar=false;
      
      }
      
      if(_root._ymouse>303){
      
      myVar=true;
      
      }
      
      if (_root._xmouse<21 and myVar==true) {
      
      imgBarBtm.prevFrame();
      
      imgBarBtm.prevFrame();
      
      } else {
      
      imgBarBtm.stop();
      
      }
      
      if (_root._xmouse>801 and myVar==true ) {
      
      imgBarBtm.nextFrame();
      
      imgBarBtm.nextFrame();
      
      } else {
      
      imgBarBtm.play();
      
      }
      
      if (_root._xmouse>21 && _root._xmouse<801 && myVar ==true){
      
      imgBarBtm.stop();
      
      }
      
      }