Fork me on GitHub
Not signed in (Sign In)

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

    • CommentAuthorswd120
    • CommentTimeJun 12th 2008 edited
     
    I'm having some issues using the stop method on a steady counter - how exactly to I reference it? Basically I want to be able to toggle the particles on and off.
    • CommentAuthorRichard
    • CommentTimeJun 13th 2008
     
    Either retain a reference to your counter -

    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.