button functionality on an movie clip

  • buzzby
  • Novice
  • Novice
  • buzzby
  • Posts: 25

Post 3+ Months Ago

i have this code on a frame:
Code: [ Select ]
function moveClip3() {
if (myClip3_mc._x < 1200) {
myClip3_mc._x += 0.5; // move the clip 1 px to the right
} else {
myClip3_mc._x = -150;
}
}
myInterval = setInterval(moveClip3, 5);
  1. function moveClip3() {
  2. if (myClip3_mc._x < 1200) {
  3. myClip3_mc._x += 0.5; // move the clip 1 px to the right
  4. } else {
  5. myClip3_mc._x = -150;
  6. }
  7. }
  8. myInterval = setInterval(moveClip3, 5);

i have 2 other clips that move with this one. i would like to pause all clips when i put my mouse over any of the clips. can anyone show mehow to do that? i have searched all day for tutes on this but nothing. i dont think i need to place individ scripts as buttons on the clips (make them buttons and then...)

what is the best way of doing this?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.