|
||
Check out the ColorMatrixFilter! word. Since version 1.0.2 it possible to use such a shortcut. Without this shortcut I would need to write full path: flash.filters.ColorMatrixFilter. At this moment, there are defined these shortcuts: background 255.255.255 shp_circle: shape [ gradient [ radial colors [0.0.0 0.0.255 0.255.0 255.0.0] ] circle 160 ] spr_circle: sprite shp_circle circle: place spr_circle [ at 160x160 actions [ load [ cacheAsBitmap: true _parent.info: "Move your mouse over this circle to change it's color" ] mouseMove [ xPercent: 1 - ((_xmouse / 160)) yPercent: 1 - ((_ymouse / 160)) matrix: [ yPercent 0 0 0 0 ;red 0 xPercent 0 0 0 ;green 0 0 xPercent 0 0 ;blue 0 0 0 1 0 ;alpha ] filter: make ColorMatrixFilter! [matrix] filters: [filter] _parent.info: reform ["MM:" _xmouse _ymouse xPercent yPercent] ] ] ] include %includes/txt_info.rswf showFrame end |