Junior: On AS mapping function and a few simple examples

Related Tags:

  Movie clip object mapping methods are mainly in the following four: 
  MoveTo (x, y); decided to start painting the location; 
  LineTo (x, y); Dra; 
  CurveTo (x1, y1, x2, y2); drawing curves, x1, y1 control, x2, y2 the end; 
  Clear (); under way to remove all the graphics graphics; 
  Lines and set up the four Color image: 
  LineStyle (a, b, c); definition color and thickness of the lines, a line for the thickness, b for the RGB color values in hexadecimal, c transparency (1-100); 
  BeginFill (a, b) definition of the beginning of color and fill the Position as a color RGB hexadecimal value, b transparency (1-100); 
  BeginGradientFill (fillType, colors, alphas, ratios, matrix); definition graded colors and the beginning of filling positions, five parameters, fillType filled type, color array of colors, from left to right [a, b], a, b, respectively 16 hex RGB color, transparency alphas color array, the array of ratios of color, gradual control of the direction of matrix; 
  EndFill (); by the end of beginFill () or beginGradientFill () began filling. 
  1, a new line drawing files, settings, the Background is black, 24, in the first frame F9 opened by the action panel, enter the following code: 
  LineStyle (2,0 xff6600, 100); 
  MoveTo (0,0); 
  LineTo (0300); 2, drawing curves to enter the following code: 
  LineStyle (2,0 xff6600, 100); 
  MoveTo (150,120); 
  CurveTo (240,300,400,250); 
  3, filled with the realization of color 
  BeginFill (0xffcc00, 100); 
  LineStyle (2,0 xff6600, 100); 
  MoveTo (0,0); 
  LineTo (0,300); 
  LineTo (400,300); 
  LineTo (400,0); 
  LineTo (0,0); 
  EndFill (); 4, filled with color graded 
  _root.createEmptyMovieClip ( "Sq," 1); 
  With (_root.sq) ( 
  Colors = [0xFF0000, 0xFFFF00]; 
  Alphas = [100, 100]; 
  Ratios = [0, 0xFF]; 
  Matrix = (matrixType: "box", x: 400, y: 400, w: 500, h: 500, r: (-45/180) * Math.PI); 
  BeginGradientFill ( "linear" colors, alphas, ratios, matrix); 
  MoveTo (31, 51); 
  LineTo (31, 331); 
  LineTo (331, 331); 
  LineTo (331, 31); 
  LineTo (31, 31); 
  EndFill (); 
  ) 

Related articles:

Flash8 brilliant rendering Example: Drawing Extreme potatoes
  First, let us look at what the effect of production after the completion of as shown in Figure 1:    Figure 1    Now we begin by:    Step 1: create contour lighting and potatoes    1) We still need to achieve more through virtual realistic lighting...
Use Dreamweaver Insert Flash in the Web page with the text button
  Flash animation button to bring dynamism to the site, which allow many readers find it very interesting, but also has increased the number of Web site visitors, in fact, Dreamweaver MX 2004, only simple steps, you can insert the Flash button.    1, page insert Flash buttons  ...
Web site promotion skills - combat the promotion of Chinese search engine
  First Please specify search engine and the difference between Categories:    1) Search engines (Search Engine):    By running a software, which is constantly scanning the Internet domain names and through various links, site automatically receive a large number of pages...
Louver effects animation, Flash production methods without AS
  Click here to download the source files    1, modify a document attributes width 300 300;    2, a new video clip "baiye"    3, animation production, the first frame shape:    Fifth Frame:    10th frame with an identical.&nb...
IIS head of the protection of the essential 15 skills
  Usually, the majority of Web site design objectives are: to the most vulnerable in a manner acceptable for visitors to provide immediate access to information.    In the past few years, an increasing number of hackers, viruses, worms and security issues arising from serious impact ...