on mouseover pause/play movie clip

  • tiffix
  • Student
  • Student
  • User avatar
  • Joined: Jun 03, 2009
  • Posts: 65
  • Loc: kenya
  • Status: Offline

Post November 27th, 2009, 7:27 am

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

:(
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 27th, 2009, 7:27 am

  • zhaojany
  • Student
  • Student
  • User avatar
  • Joined: Aug 03, 2006
  • Posts: 78
  • Status: Offline

Post December 18th, 2009, 12:17 am

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 51 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.