type = 'application/x-shockwave-flash'
data = 'http://sitepointstatic.com/flash/helix.swf'
width = '400'
height = '400'
bgcolor = 'black'
>

Download the sample files here.

1. Create a movieclip from an object as shown below. Give it a instance name "dna1".

1068_tool2

2. Create a new layer. We will insert the actions into this layer.

3. The idea is to dulicate the movieclip with a little diversion each time, then apply that diversion again and again.

4. In the first keyframe insert the action:

for (i=2; i<30; i=i+1)  

{  

duplicateMovieClip ("/dna1", "dna" add (i), i);  

setProperty ("/dna" add i, _rotation, getProperty("/dna"  
add (i-1), _rotation)+11);  

setProperty ("/dna" add i, _x, getProperty("/dna"  
add (i-1), _x)+10);  

}  

setProperty ("/dna1", _visible, "0");

5. In the second keyframe, insert the action:

for(i=2; i < 30; i = i+1)  

{ setProperty ("/dna" add i, _rotation, getProperty("/dna"  
add i, _rotation) + 5);  

}

6. In the third keyframe use the action

gotoAndPlay (2); 

7. Play the movie: you will get the effect shown above!

Georgina Laidlaw
Georgina has more than fifteen years' experience writing and editing for web, print and voice. With a background in marketing and a passion for words, the time Georgina spent with companies like Sausage Software and sitepoint.com cemented her lasting interest in the media, persuasion, and communications culture.

  • http://jamesbonn.us James Bonn

    Thanks for the tips & how-to stuff.
    that
    I have been working on computers since 1963(Fortranpunch cards).

    I retired a few years ago andnow find myself messing around with an old copy of Flash MX that I have.have to get back into this.

    Thanks,

    Jim

    It’s fun. I may

Related books & courses
Available now on SitePoint Premium

Preview for $1