4 Replies Latest reply on Oct 21, 2011 11:28 AM by Venkom

    tooltips not working

    Venkom Level 1
      contrlbar_mc.play_mc.onRollOver = function()
      {
                tooltipTimer = setInterval(showTooltip, 100, "Play");
      }
      
      contrlbar_mc.stop_mc.onRollOver = function()
      {
                tooltipTimer = setInterval(showTooltip, 100, "Stop");
      }
      
      
      contrlbar_mc.play_mc.onRollOut = contrlbar_mc.stop_mc.onRollOut = function()
      {
                _root.contrlbar_mc.Tooltip._visible = 0;
                clearInterval(tooltipTimer);
      }
      
      function showTooltip(tip)
      {
                _root.contrlbar_mc.Tooltip._visible = 1;
                _root.contrlbar_mc.Tooltip._x = _xmouse;
                _root.contrlbar_mc.Tooltip1_y = _ymouse;
                _root.contrlbar_mc.Tooltip1.tip.text = tip;
      }
      

       

       

      here tooltips not working  &

       

      not calling this Rollover function.

      what is wrong.

        • 1. Re: tooltips not working
          Ned Murphy Adobe Community Professional & MVP

          To confirm whether or not the rollovers are working, use the trace function in your functions to see if they process at all.   If not, you might have a targeting issue. Your Strings (Play and Stop) should be in quotes.

          1 person found this helpful
          • 2. Re: tooltips not working
            Venkom Level 1

            trace function working, paths correct. But tooltips not working.

            and onemore thing tooltips working at out side the contrlbar_mc MovieClip. I mean Main Timeline.

            • 3. Re: tooltips not working
              Ned Murphy Adobe Community Professional & MVP

              Continue to use trace function to track down where something is getting lost... meaning trace the values and the conditions you expect to see.  Also, do not use setInterval if the intention is to only have the function called once.  You need to either use a setTimeout call or clear the interval, or don't use any kind of delay at all since 100 msec is barely worth the lack of wait.

              • 4. Re: tooltips not working
                Venkom Level 1

                finally i got the problem.

                 

                i removed this

                 

                //_root.contrlbar_mc.Tooltip._x = _xmouse;
                //_root.contrlbar_mc.Tooltip1_y = _ymouse;

                 

                after i saw tooltips. so position changed.

                 

                Thanks!