Tuesday, November 30, 2010

Digital Clock in Flash

In this tutorial we will learn how to create a digital clock in Flash. So Lets start


Step 1 : Insert three layers in timeline window and rename them.



Step 2 : Select Frame1 of bg layer, Design the framework for digital clock. Select frame2 and press F5 .





Step 3 : Select text tool from your tool box, go to Frame1 of text layer and insert Dynamic text field in work area.  Select frame2 and press F5, Name this Dynamic text field instance as "clock_txt"





Step 4 : Go to frame1 of action layer.Press F9 Key to open the action panel, copy and paste the below mentioned script in the action panel

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;
}
clock_txt.text = hours + ":" + minutes + ":" + seconds +" "+ ampm;


Step 5
: Go to frame2 of action layer and press F6 to insert a new keyframe. Still keeping the play head on the frame2, go to action panel and copy paste the below mentioned script.
 


gotoAndPlay(1);


We have finished the clock now Press Ctrl+Enter to view your clock

This is Final Result .



Hope you enjoy. Take Care.

Labels:

احاديث مباركة


Labels:

Monday, November 29, 2010

Microsoft Word Shortcut Keys (iii)

Some more Microsoft word shortcut keys
Shortcut Key
Description
ALT+SHIFT+I
Mark Citation
ALT+SHIFT+X
Mark Index Entry
ALT+SHIFT+O
Table of Content Entry
F10
Menu Mode
ALT+SHIFT+F
Merge Field
ALT+SHIFT+F11
Microsoft Script Editor
ALT+CTRL+F1
Microsoft System Info
F2
Move Text
CTRL+N
New 
TAB
Next Cell
F11 or ALT+F1
Next Field
ALT+F7
Next Misspelling
ALT+DOWN
Next Object 
ALT+CTRL+N
Normal 
CTRL+F6 or ALT+F6
Next Window 
CTRL+SHIFT+N
Normal Style 
CTRL+0 or CTRL+F12
Open
ALT+CTRL+O
Outline  
F6 or SHIFT+F6
Other Pane   
ALT+CTRL+P
Page 
CTRL+ENTER
Page Break 
PAGE DOWN
Page Down 
ALT+SHIFT+DOWN
Outline Move Down  
ALT+SHIFT+UP
Outline Move Up  
SHIFT+PAGE DOWN
Page Down Extend  
ALT+SHIFT+P
Page Field 
PAGE UP
Page Up  
CTRL+DOWN
Para Down 
CTRL+UP  
Para Up  
SHIFT+TAB
Prev Cell  
SHIFT+PAGE UP
Page Up Extend  
CTRL+SHIFT+DOWN
Para Down Extend
CTRL+SHIFT+UP
Para Up Extend 
CTRL+V 
Paste  
CTRL+SHIFT+V
Paste Format   
SHIFT+F11
Prev Field 
CTRL+SHIFT+F6
Prev Window  
CTRL+P
Print   
CTRL+F2
Print Preview 
CTRL+Y or F4
Redo or Repeat  
SHIFT+F4
Repeat Find  

Hope you will take advantage of this, take care and have a good day.

Labels:

Ghazi Ilm Deen Shaheed


Labels:

Sunday, November 28, 2010

Namaz Kay Hairat Angaiz Awqat

Labels:

Random Equalizer Bars (Flash)



In this tutorial we will learn how to make random equalizer bars as shown above so friends lets start the tutorial.
Step 1:Open up Flash and start off with a 200 x 200 px new document (you can set any size here as mine is different), set the background color to white #FFFFFF, change the Frame Rate value to 18 , and set the ActionScript version to 2.




Step 2: Grab the Rectangular Tool from the Tool Panel on the left side of  workspace .



Step 3: Draw a Rectangular shape as shown in the screen shot. In my sample, the Rectangle I drew is 10 px wide and 17 px high.




Step 4: Now we have to convert this shape object to a Movie Clip. Click on the rectangular we just drew, press F8 and choose Movie Clip while keeping in to set the Registration Point to lower center position. Moving the registration point to this position will ensure that bar scales from the bottom up and not from the center or any other direction.


 Step 5: Now that the rectangular is a movie clip, we can add actions which will make it vertically scale in a random manner. While  rectangular is selected, press F9 to bring up the Actions Panel and input the following code.

onClipEvent(enterFrame)
{
_yscale = Math.random()*500 + 10;
}



 Now press Ctrl + ENTER  to test movie to see how the bar randomly changes in size.

We can duplicate this bar to as many times as we like by simply holding the Ctrl  button and dragging the rectangle to the position in which we would like it to be duplicated.

This is Final result. Hope you like it. Have a good day.

Labels:

Saturday, November 27, 2010

Microsoft Word Shortcut Keys (ii)

Some more MS word shortcut keys

Shortcut Key
Description
CTRL+F10
CTRL+F7
CTRL+F5
CTRL+F8
ALT+CTRL+S
CTRL+SHIFT+D
ALT+PAGE DOWN
ALT+SHIFT+PAGE DOWN
CTRL+END
END
ALT+END
ALT+CTRL+D
CTRL+F
CTRL+D or CTRL+SHIFT+F
CTRL+SHIFT+P
ALT+CTRL+F
SHIFT+F5 or ALT+CTRL+Z
CTRL+G or F5
CTRL+SHIFT+.
CTRL+]
CTRL+T
ALT+SHIFT+R
F1
CTRL+SHIFT+H
CTRL+K
CTRL+M
CTRL+I or CTRL+SHIFT+I
CTRL+J
CTRL+L
DOWN
SHIFT+DOWN
UP
SHIFT+UP
ALT+CTRL+L
CTRL+3 or CTRL+F11
ALT+F8
ALT+SHIFT+K
ALT+SHIFT+E
ALT+SHIFT+N
ALT+SHIFT+M
Document Maximize
Document Move
Document Restore
Document Size
Document Split
Double Underline
End of Column
End of Column
End of Document
End of Line
End of Row     
Endnote Now
Find
Font
Font Size Select             
Footnote Now                 
Go Back
Go To
Grow Font
Grow Font One Point
Hanging Indent
Header Footer Link
Help
Hidden
Hyperlink
Indent
Italic
Justify Para
Left Para
Line Down                    
Line Down Extend             
Line Up                      
Line Up Extend               
List Num Field               
Lock Fields                 
Macro                        
Mail Merge Check             
Mail Merge Edit Data Source   
Mail Merge to Document           
Mail Merge to Printer        










Labels: