Flint Particle System Forum - Stop Method for Steady counter Sat, 25 Dec 2010 18:54:20 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Stop Method for Steady counter http://flintparticles.org/forum/comments.php?DiscussionID=40&Focus=214#Comment_214 http://flintparticles.org/forum/comments.php?DiscussionID=40&Focus=214#Comment_214 Thu, 12 Jun 2008 21:25:30 +0100 swd120 Stop Method for Steady counter http://flintparticles.org/forum/comments.php?DiscussionID=40&Focus=215#Comment_215 http://flintparticles.org/forum/comments.php?DiscussionID=40&Focus=215#Comment_215 Fri, 13 Jun 2008 13:04:51 +0100 Richard
var steadyCounter:Steady = new Steady( 100 );
emitter.counter = steadyCounter;
steadyCounter.stop();


or cast the counter reference from the emitter

emitter.counter = new Steady( 100 );
Steady( emitter.counter ).stop();


A future version will require all counters to have a stop method, so stop can be rolled into the Counter interface and there will be no need for the type cast. ]]>