Cascading Style Sheets Tutorial

Flash Case study: a randomized-ray results

  Animation effects: 

pluginspage=’http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash’

type=’application/x-shockwave-flash’ width=400 height=400>

  Click here to download the source files 

  This result is mainly to the procedures to complete, of course, Lo animation can be designed to achieve similar results, but the merits of the program and can greatly reduce the volume of documents.    Below a brief introduction of the design process: 
  First to be a simple single-ray gradual animation, depositors do a mc known as movie1_mc, this estimate can be easily done by everyone, not said. 

  Next, the production of the second links the name ID movie2_mc the mc, the time frame placed on a first-ching movie1_mc examples, examples of the same name, also known as movie1_mc, and then write code as follows: 

  Var j = 12; 
  For (var i = 1; i <= 29; i) 
  ( 
  Movie1_mc.duplicateMovieClip ( "movie" i, i); 
  SetProperty ( "movie" i, _rotation, j); 
  J = 12; 
  ) 

  Mean every angle to 12 degrees on a copy movie1_mc example, a total of 29 replication. 

  Well, the basic elements to now we do a good job, and now back to the time frame in the first-ching on the preparation of the code below: 

  AttachMovie ( "movie2_mc", "movie2_1_mc" 1); 
  SetProperty ( "movie2_1_mc" _x, 200); 
  SetProperty ( "movie2_1_mc" _y, 200); 
  / / Set examples above coordinates 
  Movie_color = new Color (movie2_1_mc) p1 = random (256); 
  P2 = random (256); 
  P3 = random (256); 
  Pp = String (p1) p2 p3; 
  Movie_color.setRGB (Number (pp)); 
  / / Set up more than its color, we can see that the color is a random change. 

  13-ching, and then prepare a similar code, the case is nothing more than a name change yourself, it should be noted that not forget the depth to remove, or otherwise it will be a reproduction of the front of the Chongdiao examples. 

  Finally, in the 25-ching wrote: 

  GotoAndPlay (1); 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • DZone

Popular Articles

  • Flash produced video tutorial examples: Tachun animation (4)
  • Flash bombs in the simple tracking algorithm
  • Asp.net datagrid on the application of CSS style BUTTON
  • JS achieve with the CSS website and the variety of styles set
  • Flex Quick Starts Chinese translation (2)

This entry was posted on Sunday, September 30th, 2007 at 12:00 am and is filed under CSS Tutorial By Examples. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

« Louver effects animation, Flash production methods without AS
Flash production of rolling buffer zone »

Leave a Reply

  • Categories

    • CSS Properties (491)
    • CSS Tutorial (1154)
    • CSS Tutorial By Examples (1201)
    • Css+Div Web Design (3274)
    • Xhtml and Web Design (1797)
  • Archives

    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • January 2007
  • Pages

    • About us

Cascading Style Sheets Tutorial