0 Replies Latest reply on Sep 20, 2007 10:14 AM by icravespam@gmail.com

    Scrolling menu with indpendent static text

    icravespam@gmail.com
      I was hoping someone would be able to help me, im not very experienced, but i learn pretty quickly.

      This is a screenshot of my menu, it is a horizontal scrolling menu. Upon rollover, the icons glow red. I copied the actionscript from something i found online.

      I need static text to appear in the bottom section when each icon is selected, thus labeling the icon. I've tried different things, but each time the text would move horizontally as the icons do. I need the text to exsist independently from the menu, but i have no idea how to do this. Any help would be greatly appreciated. I can provide the FLA file if needed.

      this is the action script i have placed on the menu, i dont know if it will help

      xm = 0;
      //function to set the xpos of the movieclip
      function xpos(bar_length,mul)
      {
      hpos = 0;
      scroll_length = 490;
      incr = bar_length/scroll_length;
      xm = _xmouse;
      if(_xmouse <= 10){xm = 10;}
      if(_xmouse >= 400){xm = 400;}
      scroll_x = hpos - xm;
      scroll_x = scroll_x * mul;
      x_pos = scroll_x * incr;
      x_pos = x_pos + hpos;
      return x_pos;
      }

      _root.onEnterFrame = function ()
      {

      // call function xpos
      x_pos = xpos(700,.20);
      with (bar)
      {
      _x += (x_pos - _x)*.4;
      }

      // call function xpos
      x_pos = xpos(950,.75);
      with (menu)
      {
      _x += (x_pos - _x)*.4;
      }

      }

      thanks it advance