TIMER stop

  • CRF2
  • Born
  • Born
  • CRF2
  • Posts: 2

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

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. }

Post Information

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

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