39 Replies Latest reply on Mar 17, 2010 7:27 AM by kglad

    need dynamic scroller mc to work in main timeline

    mariareig Level 1

      I have a dynamic image scroller that scrolls right or left following where the mouse is.  When you hover over the images, a pop-up box also appears with information.

      This scroller works perfectly fine within the mc scene, but once i drag the mc into the main timeline the mc doesn't smoothly scroll right or left.  It's jumpy and the infobox doesn't work at all.

      How can I get it to work smoothly on the main timeline?

        • 1. Re: need dynamic scroller mc to work in main timeline
          kglad Adobe Community Professional & MVP

          what do you mean by, it ".. works perfectly fine within the mc scene"?

          • 2. Re: need dynamic scroller mc to work in main timeline
            mariareig Level 1

            when it's in the movie clip scene and I test it out, it works perfectly and it'll scroll and all.

            Once i drag the movie clip into a different scene, (my main timeline), and I test it out there, that's when it won't work.

            • 3. Re: need dynamic scroller mc to work in main timeline
              kglad Adobe Community Professional & MVP

              there is no such thing as a "movieclip scene".  you could have another scene and use control/test scene.  and you could have a movieclip and click control/play.  or, you might be doing something else.

               

              so again, what do you mean?

               

              and, are you exactly dragging a movieclip from your library and placing it on the stage of the main timeline?

              • 4. Re: need dynamic scroller mc to work in main timeline
                mariareig Level 1

                when i said "movieclip scene" i mean that when i double-click the movieclip to edit it, it opens it. and in there, it works fine. 

                and this movieclip is the one i'm dragging from my library to the stage of the main timeline.

                does that make sense?

                • 5. Re: need dynamic scroller mc to work in main timeline
                  kglad Adobe Community Professional & MVP

                  when you double click a movieclip, you open the movieclip's timeline.  you can see the movieclips frames, layers and any on-stage objects in the frame where the playhead is located.  but you can't see anything "working" unless you do something else.  ie, the playhead is stationary, there will be no on-stage animation and no code will execute.

                   

                  so, no that doesn't make sense.  are you sure you're not doing something to make that movieclip's timeline play, like i mentioned above?

                  • 6. Re: need dynamic scroller mc to work in main timeline
                    mariareig Level 1

                    right, everything is stationary.  The movieclip "works" when it's tested within its own timeline (control>test scene), because it's based on the actionscript that I have on one of the layers.

                    so, in my movie clip:

                    -i have a layer for actions

                    -a layer for my "panel", it's own MC (which are my images all laid out next to each other horizontally)

                    -a mask, that makes only a few images show at a time

                    -and a stroke for my mask

                     

                    this is the tutorial i followed to create it: http://www.gotoandlearn.com/play?id=25

                     

                    so after I made that, I made the entire thing into a movie clip. But then when i place it on my stage in my main scene, that's when it quits working.

                     

                    I can copy the actionscript if that would help...

                    • 7. Re: need dynamic scroller mc to work in main timeline
                      kglad Adobe Community Professional & MVP

                      when you use test/scene while viewing a movieclip's timeline, the following 3 keywords refer to the same movieclip:

                       

                      this

                      _level0

                      _root

                       

                      in addition, when you use no movieclip and reference a property or method, flash treats that, in most situations, as is you were referencing the movieclip's timeline. ie, this.

                       

                       

                      when you place your movieclip on another timeline,

                       

                      this

                       

                      does not reference the same movieclip as

                       

                      _level0

                      _root

                       

                      so, if you've used _level0 or _root anywhere in your movieclip's code, you must fix that.

                      1 person found this helpful
                      • 8. Re: need dynamic scroller mc to work in main timeline
                        mariareig Level 1

                        ok i understand now,

                        there are places in the code that say "this". to fix that, what should i replace it with? just with the movieclip instance name?

                        • 9. Re: need dynamic scroller mc to work in main timeline
                          kglad Adobe Community Professional & MVP

                          you don't need to replace "this".   if you used any other movieclip references though, especially _root or _level0, you need to replace those.

                           

                          any use of _parent would be problematic too but, it's unlikely you used that.

                          • 10. Re: need dynamic scroller mc to work in main timeline
                            mariareig Level 1

                            this is the actionscript for the scrolling part of the movie clip. I see where it has "_root" (in red), I'm not sure what to replace it with though...

                             

                             

                             

                            //roll over is equal to the function

                            panel.onRollOver = panelOver;

                             

                            //when it enters the box, it makes the "scrollPanel" function work

                            function panelOver() {

                            this.onEnterFrame = scrollPanel;

                            delete this.onRollOver;

                            }

                             

                            var b = stroke.getBounds (_root);

                             

                            //makes the panel scroll with the mouse

                            function scrollPanel () {

                            if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {

                            this.onRollOver = panelOver;

                            delete this.onEnterFrame;

                            }

                             

                            if(panel._x <= -707.8) {

                            panel._x = -707.8;

                            }

                             

                            if(panel._x >= 332.4) {

                            panel._x = 332.4;

                            }

                             

                            var xdist = _xmouse - 275;

                             

                             

                            panel._x += -xdist / 7;

                             

                            }

                            • 11. Re: need dynamic scroller mc to work in main timeline
                              kglad Adobe Community Professional & MVP

                              replace _root with this

                              • 13. Re: need dynamic scroller mc to work in main timeline
                                mariareig Level 1

                                sorry to bother again, I thought I could figure the second part out, but I couldn't.

                                 

                                the second part is that a box pops up when you hover over the buttons and it follows the mouse position.  There's a bunch of "_root" but replacing it with "this" won't work... what should I replace it with?

                                 

                                 

                                //tip box is set to invisible to not be seen

                                infobox_mc._visible = false;

                                 

                                var tipInt;

                                 

                                //when rollover on button, tip box will say "blank"

                                panel.pic1_btn.onRollOver = function () {

                                tipInt = setInterval(showTip, 100, "Piece 1");

                                }

                                 

                                panel.pic1_btn.onRollOut = function() {

                                hideTip();

                                }

                                 

                                panel.pic4_btn.onRollOver = function () {

                                tipInt = setInterval(showTip, 100, "Piece 2");

                                }

                                 

                                panel.pic4_btn.onRollOut = function() {

                                hideTip();

                                }

                                 

                                 

                                //counts the time that the mouse is over the button

                                var count = 0;

                                 

                                //clears the text in the textbox and makes the box follow the mouse, and if the count is at 3 then, it appears, otherwise, it adds "1"

                                function showTip(tiptext) {

                                if(count == 3) {

                                clearInterval(tipInt);

                                count = 0;

                                infobox_mc.tiptext.text = tiptext;

                                infobox_mc._x = _root._xmouse;

                                infobox_mc._y = _root._ymouse;

                                infobox_mc._visible = true;

                                _root.onMouseMove = function() {

                                infobox_mc._x = _root._xmouse;

                                infobox_mc._y = _root._ymouse;

                                updateAfterEvent();

                                }

                                }

                                else {

                                count++;

                                }

                                }

                                 

                                //hides the box when rolled off the button

                                function hideTip() {

                                clearInterval(tipInt);

                                infobox_mc._visible = false;

                                delete _root.onMouseMove;

                                }

                                • 14. Re: need dynamic scroller mc to work in main timeline
                                  kglad Adobe Community Professional & MVP

                                  when you replace _root with this, is the tooltip off-position?

                                  • 16. Re: need dynamic scroller mc to work in main timeline
                                    kglad Adobe Community Professional & MVP

                                    then try:

                                     

                                    infobox_mc._x = _root._xmouse;

                                    infobox_mc._y = _root._ymouse;

                                    infobox_mc._visible = true;

                                    this.onMouseMove = function() {

                                    infobox_mc._x = _root._xmouse;

                                    infobox_mc._y = _root._ymouse;

                                    updateAfterEvent();

                                    }

                                    }

                                    else {

                                    count++;

                                    }

                                    }

                                     

                                    //hides the box when rolled off the button

                                    function hideTip() {

                                    clearInterval(tipInt);

                                    infobox_mc._visible = false;

                                    delete this.onMouseMove;

                                    }

                                    • 17. Re: need dynamic scroller mc to work in main timeline
                                      mariareig Level 1

                                      it didn't seem to do anything different.

                                      • 18. Re: need dynamic scroller mc to work in main timeline
                                        kglad Adobe Community Professional & MVP

                                        then try:

                                         


                                         

                                        infobox_mc._x = _root._xmouse+this._x;

                                        infobox_mc._y = _root._ymouse+this._y;

                                        infobox_mc._visible = true;

                                        this.onMouseMove = function() {

                                        infobox_mc._x = _root._xmouse+this._x;

                                        infobox_mc._y = _root._ymouse+this._y;

                                         

                                        }

                                        }

                                        else {

                                        count++;

                                        }

                                        }

                                         

                                        //hides the box when rolled off the button

                                        function hideTip() {

                                        clearInterval(tipInt);

                                        infobox_mc._visible = false;

                                        delete this.onMouseMove;

                                        }

                                        • 19. Re: need dynamic scroller mc to work in main timeline
                                          mariareig Level 1

                                          that time the location of the infobox moved but doesn't follow the mouse.  It appears in the same location every time.

                                          • 20. Re: need dynamic scroller mc to work in main timeline
                                            kglad Adobe Community Professional & MVP

                                            then you didn't copy the code correctly.  check the mousemove code.

                                            • 21. Re: need dynamic scroller mc to work in main timeline
                                              mariareig Level 1

                                              i made sure the code was copied correctly, and it is.  Is there code elsewhere that could be throwing it off?

                                              • 22. Re: need dynamic scroller mc to work in main timeline
                                                kglad Adobe Community Professional & MVP

                                                any  this.onMouseMove function executed after the one i suggested will overwrite the one i suggested and if you delete  this.onMouseMove it will no longer exist.

                                                • 23. Re: need dynamic scroller mc to work in main timeline
                                                  mariareig Level 1

                                                  ok, well I can't see where the problem would be. Here's the entire code for the image scroller:

                                                   

                                                  //roll over is equal to the function

                                                  panel.onRollOver = panelOver;

                                                   

                                                  //when it enters the box, it makes the "scrollPanel" function work

                                                  function panelOver() {

                                                  this.onEnterFrame = scrollPanel;

                                                  delete this.onRollOver;

                                                  }

                                                   

                                                  var b = stroke.getBounds (this);

                                                   

                                                  //makes the panel scroll with the mouse

                                                  function scrollPanel () {

                                                  if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {

                                                  this.onRollOver = panelOver;

                                                  delete this.onEnterFrame;

                                                  }

                                                   

                                                  if(panel._x <= -707.8) {

                                                  panel._x = -707.8;

                                                  }

                                                   

                                                  if(panel._x >= 332.4) {

                                                  panel._x = 332.4;

                                                  }

                                                   

                                                  var xdist = _xmouse - 275;

                                                   

                                                   

                                                  panel._x += -xdist / 7;

                                                   

                                                  }

                                                   

                                                  //tip box is set to invisible to not be seen

                                                  infobox_mc._visible = false;

                                                   

                                                  var tipInt;

                                                   

                                                  //when rollover on button, tip box will say "blank"

                                                  panel.pic1_btn.onRollOver = function () {

                                                  tipInt = setInterval(showTip, 100, "Piece 1");

                                                  }

                                                   

                                                  panel.pic1_btn.onRollOut = function() {

                                                  hideTip();

                                                  }

                                                   

                                                  panel.pic4_btn.onRollOver = function () {

                                                  tipInt = setInterval(showTip, 100, "Piece 2");

                                                  }

                                                   

                                                  panel.pic4_btn.onRollOut = function() {

                                                  hideTip();

                                                  }

                                                   

                                                   

                                                  //counts the time that the mouse is over the button

                                                  var count = 0;

                                                   

                                                  //clears the text in the textbox and makes the box follow the mouse, and if the count is at 3 then, it appears, otherwise, it adds "1"

                                                  function showTip(tiptext) {

                                                  if(count == 3) {

                                                  clearInterval(tipInt);

                                                  count = 0;

                                                  infobox_mc.tiptext.text = tiptext;

                                                  infobox_mc._x = _root._xmouse+this._x;

                                                  infobox_mc._y = _root._ymouse+this._y;

                                                  infobox_mc._visible = true;

                                                  this.onMouseMove = function() {

                                                  infobox_mc._x = _root._xmouse+this._x;

                                                  infobox_mc._y = _root._ymouse+this._y;

                                                  updateAfterEvent();

                                                  }

                                                  }

                                                  else {

                                                  count++;

                                                  }

                                                  }

                                                   

                                                  //hides the box when rolled off the button

                                                  function hideTip() {

                                                  clearInterval(tipInt);

                                                  infobox_mc._visible = false;

                                                  delete this.onMouseMove;

                                                  }

                                                  • 24. Re: need dynamic scroller mc to work in main timeline
                                                    kglad Adobe Community Professional & MVP

                                                    the first problem i see is you're repeatedly executing that onMouseMove.  use:

                                                     


                                                     

                                                    //roll over is equal to the function

                                                    panel.onRollOver = panelOver;

                                                     

                                                    //when it enters the box, it makes the "scrollPanel" function work

                                                    function panelOver() {

                                                    this.onEnterFrame = scrollPanel;

                                                    delete this.onRollOver;

                                                    }

                                                     

                                                    var b = stroke.getBounds (this);

                                                     

                                                    //makes the panel scroll with the mouse

                                                    function scrollPanel () {

                                                    if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {

                                                    this.onRollOver = panelOver;

                                                    delete this.onEnterFrame;

                                                    }

                                                     

                                                    if(panel._x <= -707.8) {

                                                    panel._x = -707.8;

                                                    }

                                                     

                                                    if(panel._x >= 332.4) {

                                                    panel._x = 332.4;

                                                    }

                                                     

                                                    var xdist = _xmouse - 275;

                                                     

                                                     

                                                    panel._x += -xdist / 7;

                                                     

                                                    }

                                                     

                                                    //tip box is set to invisible to not be seen

                                                    infobox_mc._visible = false;

                                                     

                                                    var tipInt;

                                                     

                                                    //when rollover on button, tip box will say "blank"

                                                    panel.pic1_btn.onRollOver = function () {

                                                    mmF();

                                                    tipInt = setInterval(showTip, 100, "Piece 1");

                                                    }

                                                     

                                                    panel.pic1_btn.onRollOut = function() {

                                                    hideTip();

                                                    }

                                                     

                                                    panel.pic4_btn.onRollOver = function () {

                                                    tipInt = setInterval(showTip, 100, "Piece 2");

                                                    }

                                                     

                                                    panel.pic4_btn.onRollOut = function() {

                                                    hideTip();

                                                    }

                                                     

                                                     

                                                    //counts the time that the mouse is over the button

                                                    var count = 0;

                                                     

                                                    //clears the text in the textbox and makes the box follow the mouse, and if the count is at 3 then, it appears, otherwise, it adds "1"

                                                    function showTip(tiptext) {

                                                    if(count == 3) {

                                                    clearInterval(tipInt);

                                                    count = 0;

                                                    infobox_mc.tiptext.text = tiptext;

                                                    infobox_mc._x = _root._xmouse+this._x;

                                                    infobox_mc._y = _root._ymouse+this._y;

                                                    infobox_mc._visible = true;

                                                    }

                                                    else {

                                                    count++;

                                                    }

                                                    }

                                                     

                                                    function mmF(){

                                                    this.onMouseMove = function() {

                                                    infobox_mc._x = _root._xmouse+this._x;

                                                    infobox_mc._y = _root._ymouse+this._y;

                                                    }

                                                    }

                                                     

                                                    //hides the box when rolled off the button

                                                    function hideTip() {

                                                    clearInterval(tipInt);

                                                    infobox_mc._visible = false;

                                                    delete this.onMouseMove;

                                                    }

                                                    • 25. Re: need dynamic scroller mc to work in main timeline
                                                      mariareig Level 1

                                                      this time the infobox didn't appear at all...

                                                      • 26. Re: need dynamic scroller mc to work in main timeline
                                                        kglad Adobe Community Professional & MVP

                                                        what are you trying to accomplish with that tooltip?  what's the count supposed to do?

                                                        • 27. Re: need dynamic scroller mc to work in main timeline
                                                          mariareig Level 1

                                                          the tooltip appears when you rollOver one of the scrolling images.  It'll have text inside it with information about that image. And it'll disappear when you rollOff the image.

                                                          the count is a delay for the tooltip to appear.  I probably don't actually need a delay at all, but that's what it's for.

                                                          • 28. Re: need dynamic scroller mc to work in main timeline
                                                            kglad Adobe Community Professional & MVP

                                                            a delay seems pointless but if you want a 300ms delay there are better ways to achieve that:

                                                             


                                                             


                                                             

                                                            //roll over is equal to the function

                                                            panel.onRollOver = panelOver;

                                                             

                                                            //when it enters the box, it makes the "scrollPanel" function work

                                                            function panelOver() {

                                                            this.onEnterFrame = scrollPanel;

                                                            delete this.onRollOver;

                                                            }

                                                             

                                                            var b = stroke.getBounds (this);

                                                             

                                                            //makes the panel scroll with the mouse

                                                            function scrollPanel () {

                                                            if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {

                                                            this.onRollOver = panelOver;

                                                            delete this.onEnterFrame;

                                                            }

                                                             

                                                            if(panel._x <= -707.8) {

                                                            panel._x = -707.8;

                                                            }

                                                             

                                                            if(panel._x >= 332.4) {

                                                            panel._x = 332.4;

                                                            }

                                                             

                                                            var xdist = _xmouse - 275;

                                                             

                                                             

                                                            panel._x += -xdist / 7;

                                                             

                                                            }

                                                             

                                                            //tip box is set to invisible to not be seen

                                                            infobox_mc._visible = false;

                                                             

                                                            var tipInt;

                                                             

                                                            //when rollover on button, tip box will say "blank"

                                                            panel.pic1_btn.onRollOver = function () {

                                                            mmF();

                                                            clearTimeout(tipInt);

                                                            tipInt = setTimeout(showTip, 300, "Piece 1");

                                                            }

                                                             

                                                            panel.pic1_btn.onRollOut = function() {

                                                             

                                                            hideTip();

                                                            }

                                                             

                                                            panel.pic4_btn.onRollOver = function () {

                                                            mmF();

                                                            clearTimeout(tipInt);

                                                            tipInt = setTimeout(showTip, 300, "Piece 2");

                                                            }

                                                             

                                                            panel.pic4_btn.onRollOut = function() {

                                                             

                                                            hideTip();

                                                            }

                                                             

                                                             


                                                             

                                                            //clears the text in the textbox and makes the box follow the mouse, and if the count is at 3 then, it appears, otherwise, it adds "1"

                                                            function showTip(tiptext) {

                                                            infobox_mc.tiptext.text = tiptext;

                                                            infobox_mc._x = _root._xmouse+this._x;

                                                            infobox_mc._y = _root._ymouse+this._y;

                                                            infobox_mc._visible = true;

                                                            }

                                                            function mmF(){

                                                            this.onMouseMove = function() {

                                                            infobox_mc._x = _root._xmouse+this._x;

                                                            infobox_mc._y = _root._ymouse+this._y;

                                                            }

                                                            }

                                                             

                                                            //hides the box when rolled off the button

                                                            function hideTip() {

                                                            clearTimeout(tipInt);

                                                            infobox_mc._visible = false;

                                                            delete this.onMouseMove;

                                                            }

                                                            • 29. Re: need dynamic scroller mc to work in main timeline
                                                              mariareig Level 1

                                                              would it make it easier to take out the count then?

                                                              because even after using the code you gave me, the infobox doesn't appear at all.

                                                              • 30. Re: need dynamic scroller mc to work in main timeline
                                                                kglad Adobe Community Professional & MVP

                                                                rollover one of those buttons for a second or two.  the text should appear.

                                                                • 31. Re: need dynamic scroller mc to work in main timeline
                                                                  kglad Adobe Community Professional & MVP

                                                                  oh, you're losing scope because of setTimeout and setInterval.  use:

                                                                   


                                                                   


                                                                   

                                                                  var tl:MovieClip=this;

                                                                   

                                                                  //roll over is equal to the function

                                                                  panel.onRollOver = panelOver;

                                                                   

                                                                  //when it enters the box, it makes the "scrollPanel" function work

                                                                  function panelOver() {

                                                                  this.onEnterFrame = scrollPanel;

                                                                  delete this.onRollOver;

                                                                  }

                                                                   

                                                                  var b = stroke.getBounds (this);

                                                                   

                                                                  //makes the panel scroll with the mouse

                                                                  function scrollPanel () {

                                                                  if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {

                                                                  this.onRollOver = panelOver;

                                                                  delete this.onEnterFrame;

                                                                  }

                                                                   

                                                                  if(panel._x <= -707.8) {

                                                                  panel._x = -707.8;

                                                                  }

                                                                   

                                                                  if(panel._x >= 332.4) {

                                                                  panel._x = 332.4;

                                                                  }

                                                                   

                                                                  var xdist = _xmouse - 275;

                                                                   

                                                                   

                                                                  panel._x += -xdist / 7;

                                                                   

                                                                  }

                                                                   

                                                                  //tip box is set to invisible to not be seen

                                                                  infobox_mc._visible = false;

                                                                   

                                                                  var tipInt;

                                                                   

                                                                  //when rollover on button, tip box will say "blank"

                                                                  panel.pic1_btn.onRollOver = function () {

                                                                  mmF();

                                                                  clearTimeout(tipInt);

                                                                  tipInt = setTimeout(showTip, 300, "Piece 1");

                                                                  }

                                                                   

                                                                  panel.pic1_btn.onRollOut = function() {

                                                                   

                                                                  hideTip();

                                                                  }

                                                                   

                                                                  panel.pic4_btn.onRollOver = function () {

                                                                  mmF();

                                                                  clearTimeout(tipInt);

                                                                  tipInt = setTimeout(showTip, 300, "Piece 2");

                                                                  }

                                                                   

                                                                  panel.pic4_btn.onRollOut = function() {

                                                                   

                                                                  hideTip();

                                                                  }

                                                                   

                                                                   


                                                                   

                                                                  //clears the text in the textbox and makes the box follow the mouse, and if the count is at 3 then, it appears, otherwise, it adds "1"

                                                                  function showTip(tiptext) {

                                                                  infobox_mc.tiptext.text = tiptext;

                                                                  infobox_mc._x = _root._xmouse+tl._x;

                                                                  infobox_mc._y = _root._ymouse+tl._y;

                                                                  infobox_mc._visible = true;

                                                                  }

                                                                  function mmF(){

                                                                  this.onMouseMove = function() {

                                                                  infobox_mc._x = _root._xmouse+tl._x;

                                                                  infobox_mc._y = _root._ymouse+tl._y;

                                                                  }

                                                                  }

                                                                   

                                                                  //hides the box when rolled off the button

                                                                  function hideTip() {

                                                                  clearTimeout(tipInt);

                                                                  infobox_mc._visible = false;

                                                                  delete this.onMouseMove;

                                                                  }

                                                                  • 32. Re: need dynamic scroller mc to work in main timeline
                                                                    mariareig Level 1

                                                                    i'm afraid it still didn't appear...

                                                                    • 33. Re: need dynamic scroller mc to work in main timeline
                                                                      kglad Adobe Community Professional & MVP

                                                                      then you changed something.

                                                                       

                                                                      use the trace() function to debug.  first, make sure showText() is being called and the textfield exists.

                                                                      • 34. Re: need dynamic scroller mc to work in main timeline
                                                                        mariareig Level 1

                                                                        I still can't seem to figure out what's wrong.  If I copy all the actionscript and paste it into the actions layer on my main timeline, will it still work?  could I make it work that way? and what things would I have to change to make it work?

                                                                        • 35. Re: need dynamic scroller mc to work in main timeline
                                                                          kglad Adobe Community Professional & MVP

                                                                          probably not.

                                                                           

                                                                          you need to learn how to debug your app.  the single most effective tool for doing that is the trace() function.  it's very rare that anything else is needed to pinpoint a problem.  once you pinpoint the problem, you can get help.

                                                                          • 36. Re: need dynamic scroller mc to work in main timeline
                                                                            mariareig Level 1

                                                                            alright, I was looking at it again, and the tooltip does work and appears and follows the mousemove.  The only problem is the position, it's off way to the bottom right corner...

                                                                            what's the tl variable that is added to the mouse_x and mouse_y values? 

                                                                            • 37. Re: need dynamic scroller mc to work in main timeline
                                                                              kglad Adobe Community Professional & MVP

                                                                              tl is the movieclip that contains that code.  tl.x and tl.y make a correction for the position of the movieclip.  remove that code and see if the tool tip is positioned correctly.

                                                                              • 38. Re: need dynamic scroller mc to work in main timeline
                                                                                mariareig Level 1

                                                                                well, because this was for a project that is due today, I had to change my plan a little bit for the info box.

                                                                                 

                                                                                (when i removed the tl.x and tl.y code, it brought the infobox closer to the mouse, but it was still way off position. )

                                                                                 

                                                                                but the project is finished now.  thanks for all your help, I appreciate it so much! You helped me out a lot.