This code actually works and do what i want, simply to know if there is another way to do it more simple.
I have an Slider, and for each value i assign to enable a FX on a sprite but i want the other gets disable when the value is not their one.
So the solution is when other is selected create a function that is called at the starts disabling all efects, and then enable the selected one.
Any other way to solve it or the actual aproach is ok? There are lots of Blend FX, live about 20, so before do all i want to be sure this is the correct way in case is wrong and i have to build again all the FX system.