Get Latest Nokia Press Release Click Here

Search in Site

Showing posts with label Flash Tutorials. Show all posts
Showing posts with label Flash Tutorials. Show all posts

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

RainDrops Effect In Flash

Learn to Make Beautiful Rain Drops Effect In flash Lite

To Download My Projects. Click The Links Below:


Tutorial:
For This Create A new Project flash 8,As2
Insert A New Symbol 
Enter the Name "Circleclip" In Name Field And Select Movie Clip As Type From Option 
Now Double Click On It .
Create A Ellipse Shaped Rain From Tools 
Come Back To Scene 1 (Main Area Of our Project).
Now Press F9 And Paste The Following Codes.


//Creating an empty movieclip to attach the clip from library
_root.createEmptyMovieClip("holder",this.getNextHighestDepth());
//settig variables
holder.maxdrops=30;//no of drops
var downspeed=15;//speed of the drops
var dropslop=10;//slop of the drops
//Part 1 attaching the clips with loop
for(i=0;i<holder.maxdrops;i++){ 
holder.attachMovie("circleclip","drop"+i,i+5);
focuseddrop=holder["drop"+i]
focuseddrop.cacheAsBitmap=true;
focuseddrop._x=random(Stage.width);
focuseddrop._y=random(Stage.height);
focuseddrop._yscale=random(100);
focuseddrop._rotation=-dropslop;
}

//part 2 setting an interval for motion of drops
var dropup=setInterval(movedrop,1)
//function to repeat in the interval
function movedrop(){
for(i=0;i<holder.maxdrops;i++){
focuseddrop=holder["drop"+i]
focuseddrop._rotation=-dropslop;
focuseddrop._y+=25+downspeed/focuseddrop._yscale;
focuseddrop.x+=Math.tan(dropslop);
if(focuseddrop._y>=Stage.height+20){
focuseddrop._y=random(30);
focuseddrop._x=random(Stage.width);
}
}
}
After it Save Your File And Run The Swf File.

Create Analog Clock In Flash

Learn To Create Analog Clock In Flash
Here You Have To Follow The Simple Steps To Make Your Own Flash Analog Clock.


Create 3 MovieClips Of Clock's Hands. Named These MovieClips As:

  • hh_mc for Hours.
  • mm_mc for Minutes.
  • ss_mc for Seconds.
After It Create A New Layer Named Action
Press F9 To Enter The Action Dialog
Now Type The Following Codes In Red Color

Fscommand2("fullscreen",true);
var n:Date = new Date();
var hhh = n.getHours();
var mmm = n.getMinutes();
var sss = n.getSeconds();
hhh = hhh + (mmm/60);
mmm = mmm + (sss/60);
hhh = hhh*30;
mmm = mmm*6;
sss = sss*6;
hh_mc._rotation = hhh;
mm_mc._rotation = mmm;
ss_mc._rotation = sss;

You Can Download My Project For Help

Create Digital Clock In Flash Lite 2.0

Learn How To Create Simple Digital Clock In Adobe Flash Lite 2.0 AS2




It Has The Following Simple Step To Follow Carefully.

First Of You Need To Download Adobe Flash Cs3,Cs4, or Later Version Depends on You.
After Download & Install Open It. The Following Screen Will Appear If You Are Using Adobe Flash Cs3.
Fig 1

Select The Option Flash File(ActionScript 2.0) As Shown in Fig 1
After Click On It Your Screen Will Be Shown As.
Fig 2

There Are Two Buttons Shown In Property Tab "Size" And "Setting"
Click On Setting Button And Change The Version Flash Lite 2.0
Goto Size Button And Choose The Screen Resolution According To Your Mobile Screen Size.
After It Change The Name Of Layer From "Layer 1" To "DigClock". It Is Not Necessary To Change The Name Of Layer But It Becomes easy For Us To Identify The Area So I Recommand You To Change The Name
Now In That Layer Insert Four text Boxes for hours, Minutes, Seconds And Am/Pm.
In First text Box Goto Its property And Select "Dynamic Text" Type.
In Instant Name Write "hr_txt". See The Fig 3.


Fig 3

Now Follow The Same Procedure For other 3 text Boxes And Give The Following Names In Instant Name
mn_txt For minute Text Box
sc_txt For seconds Text Box And
ampm_txt For am/pm Text Box

Now Right Click On Layer And Insert A New Layer Named As "Action".
At This Layer Press F9 To Open The Action Tab.
In Action Tab Type The Following Text 
 time=new Date(); // time object
var seconds = time.getSeconds()
var minutes = time.getMinutes()
var hours = time.getHours()
if (hours<12) {
ampm = "AM";
} 
else{
ampm = "PM";
}
while(hours >12){
hours = hours - 12;
}
if(hours<10)
{
hours = "0" + hours;
}
if(minutes<10)
{
minutes = "0" + minutes;
}
if(seconds<10)
   {
seconds = "0" + seconds;
}
hr_txt.text = hours;
mn_txt.text = minutes;
sc_txt.text = seconds;
ampm_txt.text = ampm;
Now At Both Layer Insert A frame Likewise Shown In Fig 4





























After It Just Publish Your Flash File From File Menu -->Publish And Save It Where You Want .
open The Save Swf File And See it.
To Use In Your Mobile Simply Copy It In Your Memory Card And On That File Choose Option --> Set as Wallpaper In S40 Mobiles
In S60 Mobile You Have To Use Animator For To Apply It As Wallpaper Or ScreenSaver