- Create new Flash File (File->New or Ctrl + N) and Name it as Oceanwaves.
- Create (draw ) ocean image like below
- Convert this image as an movieclip using Modify->covert to symbol or press F8, choose Movieclip.and name it as ocean
- Draw wave image inside the Moviecip called "waves"
- Create wave moving animation using keyframe animation
- In first frame set alpha to zero and create keyframe on 40 th keyframe and now set alpha to 100 .
- Simillarly do vanish point also.
- Now Just drag this animated movie clip to stage and name it as "ripple_1"
- Now create new movieclip called "actionscript".
- Inside the "actionscript Movieclip" ,create 3 empty key frames for writing script
- In first keyframe, write following script
i = 1; g = 500; k = 1000; - The above script is variable declaration , and in the nexr keyframe write the following script
duplicateMovieClip(_root.ripple_1, "ripple_1"+i, i);
i = i+1;
if (i>=400) {
i = 1;
} - the above script used to generate new waves , and in the 3rd keyframe write the following code
k = k+1;
if (k>=1500) {
k = 1000;
}
gotoAndPlay(2); - Now give ctrl+Enter to run the player.
September 2, 2009
Ocean Waves Effect
Author: Rupa
| Posted at: 5:01 PM |
Filed Under:
Effects
|
Notice the following sample swf , you can view the waves effect.<