Flint Particle System Forum - Adding and removing actions Sat, 25 Dec 2010 18:46:51 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Adding and removing actions http://flintparticles.org/forum/comments.php?DiscussionID=46&Focus=232#Comment_232 http://flintparticles.org/forum/comments.php?DiscussionID=46&Focus=232#Comment_232 Fri, 11 Jul 2008 12:41:46 +0100 madaerodog
How do you remove an action ..

I put a button on the stage and I add an action like this

emitter.addAction( new MouseGravity(100));

All nice and working , and if i put the following action on another button

emitter.removeAction( new MouseGravity(100));

... nothing happens

tried

emitter.addAction( new MouseGravity(0));

still no result the gravity is there ..

So how do you correctly remove an action? ]]>
Adding and removing actions http://flintparticles.org/forum/comments.php?DiscussionID=46&Focus=234#Comment_234 http://flintparticles.org/forum/comments.php?DiscussionID=46&Focus=234#Comment_234 Fri, 11 Jul 2008 12:55:53 +0100 Richard
var mg:MouseGravity = new MouseGravity( 100 );
emitter.addAction( mg );

and later

emitter.removeAction( mg ); ]]>
Adding and removing actions http://flintparticles.org/forum/comments.php?DiscussionID=46&Focus=235#Comment_235 http://flintparticles.org/forum/comments.php?DiscussionID=46&Focus=235#Comment_235 Fri, 11 Jul 2008 13:24:15 +0100 madaerodog