Wednesday, December 15, 2010

Humaqtoon ke Dhai'i

Labels:

Tuesday, December 14, 2010

Kashmir Main Chund Roz



Labels:

Sunday, December 12, 2010

Wagha Pr ChraghaN





Labels:

The King is Dead (A Column by Rauf Klasra)


Labels:

Saturday, December 11, 2010

America K Khufia Adaray ....... ...

Labels:

Thursday, December 9, 2010

Scarf Kay Sath Bhee........(A Column By Javed Chaudhry)


Labels:

Wednesday, December 8, 2010

WikiLeaks.....?


Labels:

Zameer FroshoN ke Almi Mandi or Bikaao Log



Labels:

Monday, December 6, 2010

How to Create Analog Clock ( Flash )

In this Tutorial we will learn how to create anolog clock in Flash MX.  Lets Start ,
Step 1 : Create a background for clock, We can either draw it in firework or Photoshop and import it onto our stage or draw it in flash itself. I use this one which i create in Photoshop.

Step 2 : Add 5 Layers in Timeline window. Name them - interface, seconds, minutes, hours and action. Similar to the Timeline window shown below.



Step 3 :
 Import clock background design mention above into interface Layer .
Step 4 : Draw a vertical line in seconds Layer. Select the line and press F8 to convert it to Symbol. Call this Symbol sec_mc, choose Movie clip behavior and select the bottom center square in registration. Similar to the Symbol window shown below.




Press OK.

Step 5 : In seconds Layer, place sec_mc right at the center of the clock background design. Name it "sec" in instance text box of property window. This is going to be seconds needle.




Step 6 : 
Drag sec_mc into minutes Layer from library. If library window is not open, press (Ctrl+L) to open it. Reduce sec_mc's height, may be by 10-20 pix (or as you want for your minutes needle). Place it right at the center of the clock background design. Name it "min" in instance text box of property window. This is going to be minutes needle.




Step 7 : 
Drag sec_mc into hours Layer from library. Reduce its height, may be by 30 to 40  pix (or as you want for your hours needle). Place it right at the center of the clock background design. Name it "hour" in instance text box of  property window. This is going to be Hours needle.




Step 8 : 
Copy and Paste the code given below in  actions window in 
first frame of actions Layer.

time=new Date(); // time object
seconds = time.getSeconds()
minutes = time.getMinutes()
hours = time.getHours()
hours = hours + (minutes/60);
seconds = seconds*6; // calculating seconds
minutes = minutes*6; // calculating minutes
hours = hours*30; // calculating hours
sec._rotation=seconds; // giving rotation property
min._rotation=minutes; // giving rotation property
hour._rotation=hours; // giving rotation property


Step 9 : Now go to second frame of each layer and press F5 to insert new frame.
Our Analog Clock is ready press Ctrl+Enter to view the clock.

This is our final Result.  
Hope you enjoy.


Labels:

Thursday, December 2, 2010

Guggly or Reverse Swing (A Column by Javed Chaudhry)


Labels: