MaxFarago
06-04-2005, 06:07 PM
Hi, I'm trying to make a movieclip that is essentially a bunch of pictures lined up next to each other, and only a portion of that movieclip is seen at any given time (via mask). I have arrows on either end that, onRollOver, I want to tell the movieclip to move either forward or backwards.
The problem I am having is that I can imagine there being to solutions to this problem. One is by having in the timeline of the movieclip the motion of the pictures from one end to the other end, and when the mouse rolls over the forward arrow, it tells the movieclip to play. The only problem is that if I want the back arrow to make the clip move the other direction, I would have to play the timeline in reverse, which I don't think is possible.
The other possible way to do this would be to change the _x value of the mc when the mouse is over the arrow. But the onRollOver call only goes once, so that if I made a function and told it to move the mc._x over 5 pixels onRollOver, it would perform that action only once when the mouse rolls over the arrow, but would not continue to scroll the mc.
Any ideas?
Thanks,
Max
The problem I am having is that I can imagine there being to solutions to this problem. One is by having in the timeline of the movieclip the motion of the pictures from one end to the other end, and when the mouse rolls over the forward arrow, it tells the movieclip to play. The only problem is that if I want the back arrow to make the clip move the other direction, I would have to play the timeline in reverse, which I don't think is possible.
The other possible way to do this would be to change the _x value of the mc when the mouse is over the arrow. But the onRollOver call only goes once, so that if I made a function and told it to move the mc._x over 5 pixels onRollOver, it would perform that action only once when the mouse rolls over the arrow, but would not continue to scroll the mc.
Any ideas?
Thanks,
Max