¿Eres nuevo? ¡Lee el FAQ y ponte al día!
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
  1. // Copy the filters into a temporary array
  2. var auxArray:array = filters;
  3. // Modify the filters using the this new array
  4. auxArray[0].color = 0x333333;
  5. // Reapply the modified filters
  6. filters = auxArray;
  7.  

­

Etiquetas: ActionScript 3.0 flash filters

Insertar: