mc2008 0 Denunciar post Postado Julho 19, 2009 boas gostaria de saber se é possível fazer um degrade horizontal apenas com AS? obrigado Compartilhar este post Link para o post Compartilhar em outros sites
leila•trupe 1 Denunciar post Postado Julho 20, 2009 Sim. Pesquise por: beginGradientFill(tipoPreenchimento, cores, alfas, proporções, matriz), no próprio help do flash você encontra como fazer. Compartilhar este post Link para o post Compartilhar em outros sites
mc2008 0 Denunciar post Postado Julho 21, 2009 encontrei isto this.createEmptyMovieClip("gradient_mc", this.getNextHighestDepth()); with (gradient_mc) { colors = [cor, cor2]; fillType = "linear" alphas = [100, 100]; ratios = [0,250]; spreadMethod = "pad"; interpolationMethod = "linearRGB"; focalPointRatio = 0.4; matrix = {a:200, b:0, c:0, d:0, e:200, f:0, g:200, h:200, i:1}; beginGradientFill(fillType, colors, alphas, ratios, matrix, spreadMethod, interpolationMethod, focalPointRatio); moveTo(100, 100) lineTo(100, 300); lineTo(300, 300); lineTo(300, 100); lineTo(100, 100); endFill(); } mas como coloco o efeito na horizontal , de baixo para cima? obrigado Compartilhar este post Link para o post Compartilhar em outros sites
Public2004 79 Denunciar post Postado Julho 21, 2009 Isso é meio matemático... Utilize o método "rotate" da classe "Matrix". Abs. Compartilhar este post Link para o post Compartilhar em outros sites