Welcome, Guest
Want to take part in these discussions? Sign in if you have an account, or apply for one below
-
- CommentAuthormadaerodog
- CommentTimeJul 11th 2008 edited
So , big thumbs up for your work, like it alot.
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? -
- CommentAuthorRichard
- CommentTimeJul 11th 2008 edited
You need to retain a reference to the action that you want to remove. Sovar mg:MouseGravity = new MouseGravity( 100 );
emitter.addAction( mg );
and lateremitter.removeAction( mg ); -
- CommentAuthormadaerodog
- CommentTimeJul 11th 2008
tx for the fast answer . It works :)
1 to 3 of 3
