TIMER stop

  • CRF2
  • Born
  • Born
  • No Avatar
  • Joined: Nov 15, 2010
  • Posts: 2
  • Status: Offline

Post November 15th, 2010, 5:07 pm

How do i stop a TIMER? i want to stop it on click

var Nextimage: Timer = new Timer (5000);
nextImagen.addEventListener (TimerEvent.TIMER, playNext)
nextImagen.start ();

playNext function (event: TimerEvent): void
{
nextFrame ();
}
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 15th, 2010, 5:07 pm

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post November 17th, 2010, 4:34 am

Code: [ Select ]
this.addEventListener(MouseEvent.CLICK, this_Click);
function this_Click(evt:MouseEvent)
{
 Nextimage.stop();
}
  1. this.addEventListener(MouseEvent.CLICK, this_Click);
  2. function this_Click(evt:MouseEvent)
  3. {
  4.  Nextimage.stop();
  5. }
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”

Post Information

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