Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 382
  • Last Modified:

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.
0
bjv211
Asked:
bjv211
  • 5
1 Solution
 
bjv211Author Commented:
you can see the finished movie and what its doing at   http://homepages.nyu.edu/~bjv211/
0
 
bjv211Author Commented:
interesting fact, it works ok if I move the mouse to left, but not to the right.
0
 
negatyveCommented:
ehehe, I think I know that slider...:)

on each inner movieclip:

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;
            }
      }
}

in the outer most (the main one):

onClipEvent (enterFrame) {
      if (this.hitTest(_root._xmouse, _root._ymouse, true) || this._parent.name_of_duplicated_one.hitTest(_root._xmouse, _root._ymouse, true) ) {
            over = true;
      } else {
            over = false;
            _root.getstandby(substring(_parent._name,7,1));
      }
}


would be better with new flash mx syntax..
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
bjv211Author Commented:
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
0
 
bjv211Author Commented:
nevermind...just got it...
0
 
bjv211Author Commented:
any thoughts on how to set a default speed for scrolling? (ie when the mouse is not on the pics)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now