beginGradientFill not working in v7 player?
Hi
The code below is copied directly from the helpdocs - and when published as player version 6 it works fine - BUT when publishing as v7 it apparently does nothing... Does anyone know what is going on here?
Code:
_root.createEmptyMovieClip( "grad", 1 );
with ( _root.grad )
{
colors = [ 0xFF0000, 0x0000FF ];
alphas = [ 100, 100 ];
ratios = [ 0, 0xFF ];
matrix = { a:200, b:0, c:0, d:0, e:200, f:0, g:200, h:200, i:1 };
beginGradientFill( "linear", colors, alphas, ratios, matrix );
moveto(100,100);
lineto(100,300);
lineto(300,300);
lineto(300,100);
lineto(100,100);
endFill();
}
cheers
idi