Get Latest Nokia Press Release Click Here

Search in Site

Create Bubbles Effect In Flash

To Create Bubbles Effect on Mouse Move Or Touch Sense in Mobile Just Follow The below Process



Create An Empty Movie-clip Named It Bubble.
You Can See It In Library , Double Click On It .
Now You Are In Clip Editing Area
Create A circle At First Frame In A Movie Clip And Give A color To It
At 10th Frame In the  Same Movie Clip Insert a Key-frame And Just Change The Position  of The Circle Towards Top And 
Also Change Its Color To Red Or Yellow As You Wish.
Now Select The Frame Range And Right Click On It 
Click On Option Create Motion Tween .
Now Come To The Project And Insert An Action Layer And Paste The Following Code In Its Code Area By Pressing F9.


i = 1;
this.createEmptyMovieClip("mymc",1);
this.onMouseMove = function()
{
a = mymc.attachMovie("bubble","mc"+i,i+1);
a._x = _xmouse;
a._y = _ymouse;
a._xscale = a._yscale = (Math.random() * 80) + 20;
i++;
}

Now Publish Your Swf File And Examine
For Further Help Download The Attached File
Attached Files

0 comments:

Post a Comment