5 Replies Latest reply on Feb 1, 2010 1:20 PM by kglad

    rollover works 1st time but not 2nd time

    velocity-vector

      /* _parent._parent._parent._parent.rackImage.loadMovie("test.jpg", rackImage_mc) */ works fine the FIRST time, but not the second time.

       

      is it deleting the variable /* var rackImage */?

       

                function rackBtn (item) {

                     _parent[item+"_mc"].onRollOver = function () {

                          _parent._parent._parent._parent.rackImage.loadMovie("test.jpg", rackImage_mc);

                     }

                     _parent[item+"_mc"].onRollOut = function () {

                          _parent._parent._parent._parent.rackImage.removeMovieClip();

                     }

                }

       

      it accesses this variable...

       

                var rackImage = this.createEmptyMovieClip("rackImage_mc", 30);
                rackImage._x=0;
                rackImage._y=-300;