# DNA Effect Tutorial

**URL:** <https://forum.kirupa.com/t/dna-effect-tutorial/19383>\
**Category:** design\
**Created:** [April 27, 2003, 1:41pm UTC](https://forum.kirupa.com/t/dna-effect-tutorial/19383 "2003-04-27T13:41:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![denacioust](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@denacioust](https://forum.kirupa.com/u/denacioust)\
**Post date:** [April 27, 2003, 1:41pm UTC](https://forum.kirupa.com/t/dna-effect-tutorial/19383/1 "2003-04-27T13:41:35Z")

</div>

Well heres the tutorial for the DNA Effect I posted yesterday.

Create an object like the one shown below.Give it an instance name of dna1

![](http://www.newezone.com/hosting/denacioust/DNA.jpg)  
You can use any colours but the colours I used are as follows:  
A radial gradient set with colours from left to right:  
255.255.255 at alpha 100%  
255,255,200 at alpha 50%  
255,255,255 at alpha 100%  
243,126,12 at alpha 40%  
255,255,255 at alpha 0%

**Now create a layer and name it actions. In the first keyframe give 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”);  
**In the next keyframe give action**  
for(i=2; i \< 30; i = i+1)

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

}

**And finally give the third keyframe**  
gotoAndPlay (2);
