swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] swfc gradient example


From: Chris Flowers
Subject: Re: [Swftools-common] swfc gradient example
Date: Mon, 25 Oct 2004 07:17:54 -0400

Does this help?

#
#  Example Radial Fill ActionScript
#

.flash bbox=400x400 fps=30 version=6 compress background=#CCCCCC

  .action:
  _root.createEmptyMovieClip( "grad", 1 );
  with(_root.grad){
   colors = [0xFF0000,0x0000FF];
   alphas = [100,100];
   ratios = [0,0xFF];
   matrix = { matrixType:"box", x:50, y:50, w:200, h:200,
r:(45/180)*Math.PI };
   lineStyle(1,0x000000,100);
   beginGradientFill( "radial", colors, alphas, ratios, matrix );
   moveto(100,100);
   lineto(100,300);
   lineto(300,300);
   lineto(300,100);
   lineto(100,100);
   endFill();
   }
  .end

  .frame 1
.end





reply via email to

[Prev in Thread] Current Thread [Next in Thread]