on mouseover pause/play movie clip

  • tiffix
  • Student
  • Student
  • User avatar
  • Posts: 65
  • Loc: kenya

Post 3+ Months Ago

hi everyone,
i have this flash movieclip that loop over and over just as i want, but there is this effect am trying to achieve in action script 3 using flash cs3. i need it to pause on mouseover and play on mouserollout. please help with this. thanks in advance

:(
  • zhaojany
  • Student
  • Student
  • User avatar
  • Posts: 79

Post 3+ Months Ago

import flash.events.MouseEvent;

yourMovieClip.addEventListener(MouseEvent.MouseEvent.MOUSE_OVER,mcPlay);

yourMovieClip.addEventListener(MouseEvent.MouseEvent.MOUSE_OVER,mcStop);

private function mcPlay(evt:MouseEvent):void{
yourMovieClip.play();
};
private function mcStop(evt:MouseEvent):void{
yourMovieClip.stop();
}

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 5 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.