1k visitas
How to change filters at run time (Flash)
In ActionScript 3.0, you can not change the properties of a filter directly from the filters array; you have to "reapply" the modified filters every time you make a change. This is one way to do it.
ActionScript 3
- // Copy the filters into a temporary array
- var auxArray:array = filters;
- // Modify the filters using the this new array
- auxArray[0].color = 0x333333;
- // Reapply the modified filters
- filters = auxArray;
Enviado por miguelSantirso hace about 1 year — modificado por última vez hace less than a minute