PDA

View Full Version : DNA Effect Tutorial



denacioust
April 27th, 2003, 09:41 AM
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);