Link to home
Start Free TrialLog in
Avatar of bjv211
bjv211

asked on

Onclipevent problem with mouse over

I have a scrolling slideshow that scrolls left or right depending which way you move the mouse.  When you hover a picture the text changes at the bottom, however I want to set it so that when you mouseoff it switches to a generic text.  I have coded the actionscript for the message switching as
onClipEvent (enterFrame) {
      if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
            over = true;
            if (_alpha>0) {
                  _alpha -= 5;
            _root.getinfo(substring(_parent._name,7,1));
            }
      } else {
            over = false;
            if (_alpha<50) {
                  _alpha += 5;
            _root.getstandby(substring(_parent._name,7,1));
            }
      }
}

The problem is that when I move the mouse left to right off the current picture it defaults to the standby string of text and doesn't change with each picture.  I only want the standby if my mouse isn't over any pics.
Avatar of bjv211
bjv211

ASKER

you can see the finished movie and what its doing at   http://homepages.nyu.edu/~bjv211/
Avatar of bjv211

ASKER

interesting fact, it works ok if I move the mouse to left, but not to the right.
ASKER CERTIFIED SOLUTION
Avatar of negatyve
negatyve

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bjv211

ASKER

I changed the syntax, but still giving me problems...you can click the link again to view, if you would like to see the FLA goto http://homepages.nyu.edu/~bjv211/slide_rev.fla
Avatar of bjv211

ASKER

nevermind...just got it...
Avatar of bjv211

ASKER

any thoughts on how to set a default speed for scrolling? (ie when the mouse is not on the pics)