Thursday, 14 June 2012

MMAD viva Questions


Multimedia:
Types of media: Linear, Non Linear
WWW: World Wide Web maintained & developed by World Wide Web Consortium (W3C)
HTTP: Hyper Text Transfer Protocol is stateless request/response protocol
Request Format: Response Format:
METHOD URI Version Version Status-Code Status-Phrase
Additional-Headers Additional-Headers
Message-Body Message-Body
Ex: GET http://www.google.com HTTP/1.1 HTTP/1.1 200 OK Server
HTTP methods: GET/ POST
HTML: Hyper Text Markup Language, collection of tags with format
DHTML: Dynamic HTML with CSS (Cascading Style Sheet)
XML: Extensible Markup Language: full structured language using DTD (Document Type Definition)
XSL: XML Style Sheet for XML presentation: it is CSS for XML.
XSL parts: XSL Transformations (XSLT), XML Path Language (XPath), XSL Formatting Objects
SMIL: Synchronized Multimedia Integration Language for multimedia presentation using markup language.
SMIL 2.0: is specified by XML using modularization, Language Profiles.
SMIL tags: ,
Multimedia Components: Text, Image, Video, Audio, Graphics; Color components: Red, Blue, Green (Alpha)
Types of Graphics/Image Representation:
1-bit/binary/monochrome image: 1 pixel or pel takes 1 bit with 2 colors (black (0), white (1))
8-bit gray/ bitmap scale image: 1 pixel takes 8 bit bits with 256 colors (0-255),
Resolution: number of pixels in image; Aspect ration: ratio between width & height of image Ex: 4:3
Frame buffer: used to store image in hardware.
24-bit image: 1 pixel takes 24 bits with (256)3 colors; but it takes 32 bits as R+G+B (24 bits)+ Alpha (8 bits)=32
8-bit color image: 1 pixel takes 8 bits with 256 selected colors using color histogram, with Color Look up Table.
Image file formats:
GIF: Graphics Interchange Format by UNISYS with GIF87a, GIF89a versions; GIF Components: GIF signature, Screen Descriptor, Global Color Map, Local Color Map, Image Descriptor, Raster Data, GIF terminator.
JPEG: Joint Photographic Experts Group by ISO
PNG: Portable Network Graphics; TIFF: Tagged Image File Format; EXIF: Exchange Image File;
PS: Post Script PDF: Portable Document Format WMF: Windows Meta File BMP: BitMap
Color models for Images: RGB (additive) for CRT displays, CMY (subtractive color model), CMYK for printers
Color models for Videos: YUV for PAL video, YIQ for NTSC or TV broadcasting, YCbCr for digital video.
Types of Video signals: (Analog and Digital)
Component video: 3 lines(R, G, B), used YUV/ YIQ, no crosstalk, with more bandwidth, good synchronization.
Composite Video: 2 lines (Chrominance/Color, Luminance/Intensity), uses YUV/YIQ, for VCRs.
Super Video: 2 lines (luminance, composite signal), , more cross talk, low band width.
Analog video types:
NTSC video: by North America & Japan, with 30 fps, 525 scan lines, 6.0 MHz channel width, 4:3 aspect ratio.
PAL Video: Phase Altering Line, by Germans, with 25 fps, 625 scan lines, 8.0 MHz channel width, 4:3 aspect ratio.
SECAM video: Systeme Electronique Couleur Avec Memorie, 25 fps, 625 scan lines, 8.0 MHz channel width, 4:3.
Digital Video types:
Chroma Subsampling: 4:4:4, 4:2:2, 4:1:1, 4:2:0
CCIR: Consultative Committee for International Radio, versions: CCIR 601, CCIR 601, CIF, QCIF;
Digitization: Quantization, Sampling Sample Rate: number of samples per second
Nyquest therom: falias=fsampling-ftrue or ftruesampling<2xftrue
SNR: Signal to Noise Ratio; SQNR: Signal to Quantization Noise Ration;
Basic Audio Compressing Techniques: PCM( Pulse Code Modulation), DPCM, DM (Delta Modulation)
Audio File Formats: mp3, wav
Lossless Compression Techniques: RLC (Run Length Coding), VLC (Variable Length Coding), Huffman Coding, Shannon Fano Algorithm, Dictionary based Coding, Arithmetic Coding.
Lossy Compression Techniques: DCT (Discrete Cosine Transforms), Wavelet Transforms.
Video Compression Techniques: H. 261, MPEG1, MPEG2
Video Formats: dat, avi, mpeg, 3gp, mp4,wmv
Action Script:
.fla à flash application file .asà action script file .swfàshockwave file
Procedure to create Flash application or Action script Class:
Fileà General Tab à Flash Document Option à Click OK for flash application.
Fileà General Tab à ActionScript File Option à Click OK for action script class.
Procedure to set Class Path in flash application:
Edità Preferences à ActionScript à ActionScript 2.0 Settings à Add new class path in the dialog box
Procedure to create Symbol:
Insert à New Symbol à Enter name of Symbol à Type of symbol (Movie Clip/ Button/ Graphics) àClick OK
Procedure to create MovieClip:
1. Insert à New Symbol à Enter name of Symbol à Type of symbol as Movie Clip à Click OK
2. Using createEmptyMovieClip(“mc”,1); function in the layer
Procedure to add image to library:
FileàImportàImport to Library for loading image into library, WindowàLibrary for opening library window
Procedure to add Textbox:
1. Using Text Tool on tool bar
2. Window à Componets à User InterfaceàTextInput
3. using this.createTextField(name,depth,x,y,w,h) function
Procedure to add User Interface Components (TextField, Button, TextArea, ScrollBar, ComboBox):
Window à Componets à User InterfaceàSelect required componet
Basic Data types: Number, String, Boolean, Array, Object, Date, arguments, System, Error, Function
Built in Classes: MovieClip, Math, Color, Mouse, Button, Key, TextField
MovieClip Class Methods:
attachMovie(id:String, name:String, depth:Number) : MovieClipàTakes a symbol from the library and attaches it to the movie clip.
beginFill(rgb:Number, [alpha:Number]) : Void à Indicates the beginning of a new drawing path.
beginGradientFill(fillType:String, colors:Array, alphas:Array, ratios:Array, matrix:Object) : Void àIndicates the beginning of a new drawing path.
clear() : Void à Removes all the graphics created during runtime.
createEmptyMovieClip(name:String, depth:Number) : MovieClip à Creates an empty movie clip as a child of an existing movie clip.
createTextField(instanceName:String, depth:Number, x:Number, y:Number, width:Number, height:Number) : TextField
Creates a new, empty text field as a child of the movie clip on which you call this method.
curveTo(controlX:Number, controlY:Number, anchorX:Number, anchorY:Number) : Void à Draws a curve
duplicateMovieClip(name:String, depth:Number, [initObject:Object]) : MovieClip à Creates an instance of the specified movie clip.
endFill() : Void à Applies a fill to the lines and curves added since the last call to beginFill() or beginGradientFill().
getURL(url:String, [window:String], [method:String]) : Void à Loads a document from the specified URL into the specified window.
gotoAndPlay(frame:Object) : Void à Starts playing the SWF file at the specified frame.
gotoAndStop(frame:Object) : Void à Brings the playhead to the specified frame of the movie clip and stops it there.
lineStyle(thickness:Number, rgb:Number, alpha:Number, pixelHinting:Boolean, noScale:String, capsStyle:String, jointStyle:String, miterLimit:Number) : Void àSpecifies a line style that Flash uses for subsequent calls to lineTo() and curveTo().
lineTo(x:Number, y:Number) : Void àDraws a line using the current line style from the current drawing position to (xy).
loadMovie(url:String, [method:String]) : Void à Loads SWF or JPEG files into a movie clip in Flash Player.
moveTo(x:Number, y:Number) : Void à Moves the current drawing position to (xy).
nextFrame() : Void à Sends the playhead to the next frame and stops it.
play() : Void à Moves the playhead in the Timeline of the movie clip.
prevFrame() : Void à Sends the playhead to the previous frame and stops it.
removeMovieClip() : Void à Removes a movie clip instance.
setMask(mc:Object) : Void à Makes the movie clip in the parameter mc a mask that reveals the calling movie clip.
stop() : Void à Stops the movie clip currently playing.
unloadMovie() : Void à Removes the contents of a movie clip instance.
MovieCip Class Events:
onEnterFrame = function() {} à Invoked repeatedly at the frame rate of the SWF file.
onKeyDown = function() {} àInvoked when a movie clip has input focus and a key is pressed.
onKeyUp = function() {} à Invoked when a key is released.
onLoad = function() {} à Invoked when the movie clip is instantiated and appears in the Timeline.
onMouseDown = function() {} à Invoked when the mouse button is pressed.
onMouseMove = function() {} à Invoked when the mouse moves.
onMouseUp = function() {} à Invoked when the mouse button is released.
onPress = function() {} à Invoked when the user clicks the mouse while the pointer is over a movie clip.
onRelease = function() {} à Invoked when the mouse button is released over a movie clip.
onRollOut = function() {} à Invoked when the pointer moves outside a movie clip area.
onRollOver = function() {} àInvoked when the pointer moves over a movie clip area.
Math Class Methods:
abs(x:Number) : NumberàComputes and returns an absolute value for the number specified by the parameter x.
acos(x:Number) : NumberàComputes and returns the arc cosine of the number specified in the parameter x, in radians.
asin(x:Number) : NumberàComputes and returns the arc sine for the number specified in the parameter x, in radians.
atan(tangent:Number) : NumberàComputes and returns the value, in radians, of the angle whose tangent.
ceil(x:Number) : Numberà Returns the ceiling of the specified number or expression.
cos(x:Number) : Numberà Computes and returns the cosine of the specified angle in radians.
exp(x:Number) : NumberàReturns the value of ex.
floor(x:Number) : NumberàReturns the floor of the number or expression specified in the parameter x.
log(x:Number) : NumberàReturns the natural logarithm of parameter x.
max(x:Number, y:Number) : NumberàEvaluates x and y and returns the larger value.
min(x:Number, y:Number) : NumberàEvaluates x and y and returns the smaller value.
pow(x:Number, y:Number) : NumberàComputes and returns x to the power of y.
random() : NumberàReturns a pseudo-random number n, where 0 <= n <>
round(x:Number) : NumberàRounds the value of the parameter x up or down to the nearest integer and returns the value.
sin(x:Number) : NumberàComputes and returns the sine of the specified angle in radians.
sqrt(x:Number) : NumberàComputes and returns the square root of the specified number.
tan(x:Number) : NumberàComputes and returns the tangent of the specified angle.
Color Class Methods:
getRGB() : NumberàReturns the R+G+B combination currently in use by the color object.
getTransform() : ObjectàReturns the transform value set by the last Color.setTransform () call.
setRGB(offset:Number) : VoidàSpecifies an RGB color for a Color object.
setTransform(transformObject:Object) : VoidàSets color transform information for a Color object.
Array Class Methods:
concat([value:Object]) : ArrayàConcatenates the elements with the elements in array and creates a new array.
join([delimiter:String]) : StringàConverts the elements in an array to strings, inserts the specified separator between the elements, concatenates them, and returns the resulting string.
pop() : ObjectàRemoves the last element from an array and returns the value of that element.
push(value:Object) : NumberàAdds one or more elements to the end of an array and returns the new length of the array.
reverse() : VoidàReverses the array in place.
shift() : ObjectàRemoves the first element from an array and returns that element.
sort([compareFunction:Object], [options:Number]) : ArrayàSorts the elements in an array.
toString() : StringàReturns a string value representing the elements in the specified Array object.
unshift(value:Object) : NumberàAdds one or more elements to the beginning of an array and returns the new length of the array.

Wednesday, 13 June 2012

Create an Animated Car Banner using Flash CS5


In this tutorial, you will learn how to create an animated banner using Flash CS5. You will learn how to create a car moving on a road with its tires spinning. You can also download the free .fla file of the banner animation.


Here we will create a banner of size 728x300. To start with the tutorial download the tutorial.zip file that will provide you with the necessary files to be used in the tutorial.
1.       Open a new flash file. Choose Window > Properties from the main menubar thePROPERTIES panel is displayed as shown in figure below
1.JPG
Choose the Edit button under the PROPERTIES area in the panel, the Document Settingswindow is displayed. Set the dimensions as 728(WIDTH) and 300(HEIGHT) and choose the OKbutton to make the changes.
2.       Rename the existing layer as buildings and choose File > Import > Import to Libraryfrom the main menubar and import the files downloaded at the starting of the tutorial.
3.       Choose Window > Library from the main menubar; the LIBRARY panel is displayed. Pull the building images to the stage area and align it as shown in Figure below.

2.JPG

4.       Select the image and choose Modify > Convert to Symbol from the main menubar and name this movieclip as building_animation.
5.       Double-click on the movieclip and select the building image and create a moviclip again and name it as building. Rename the layer as anim_building.
6.       Select frame 460 and add a keyframe. Select the building movieclip and open thePROPERTIES panel and se the X value to -1450. Publish the file to see the animation. If at any point of time you find a jerk in the animation please adjust the position and frames of the building movieclip accordingly.
7.       Go to the main stage area and create a new layer named road. Choose the Rectangle Tool from the Tools panel and create a box at the bottom of the building area and align it as shown in Figure below. Make sure that the color of the road is set to #171717.

3.JPG

8.       Next, create a new layer named road strip and create a grey and white rectangular pattern using the Rectangle Tool from the Tools panel, as shown in Figure below. Make sure that the length of the road strip pattern is almost equal to that of the buildings.
4.JPG
9.       Select the road strip and choose the Free Transform Tool from the Tools panel and distort the road strip as shown in Figure below. Make sure  that the color of the grey part in the strip pattern is similar to that used in road.
5.JPG
10.   Choose Modify > Convert to Symbol from the main menubar and name it as road strip. Select the movieclip and choose Modify > Convert to Symbol again and name it as road strip animation. Place this animation in the center of the road as shown in Figure below.
6.JPG
11.   Animate the road strip as you did for the building movieclip. But make sure that the speed of the road strip is double as compared with the moving speed of the buildings. Publish the flash file to see the transition in the animation.
12.   Next, move back to the main stage area and create a new layer and name it as logo. Drag the logo.jpeg file from the LIBRARY panel and place it in the scene by first scaling it down as shown in Figure below.
7.JPG

13.   Create a new layer in the main stage area and rename it as footpath. Create the footpath using the Rectangle Tool as shown in Figure below. Make sure to match the length of the footpath series with the road strip.
8.JPG

14.   Align the foothpath as shown in Figure below.
9.JPG
15.   Animate the foothpath similar to the road strip with the same speed. Publish the flash file to see the effect.
16.   Next, in the main stage area create a new layer and rename it as car. Choose Modify > Convert to Symbol and rename it as car. Double click on the car movieclip and create a new layer and rename it as tyre_front.  Zoom in the to the front tyre area in the screen and create a pattern using the Rectangle Tool as shown in Figure below.
10.JPG

17.   Make this pattern as a movieclip and renmae it as tyre_mask. Double click on this movieclip and rename the existing layer as bg and selec the cross pattern again and choose Modify > Convert to Symbol from the main menubar and rename it as spokes. Choose Window > Properties from the main menubar and add blur filter to it.
18.   Next, create a new layer over it and rename it as mask. Create an oval shape exactly the shape of the rim of the car as shown in Figure below.
11.JPG

19.   Activate the bg layer and create keyframes at frames 3 and 6. Rotate the spokes movieclip at frame 3 by around 180 degrees and add motion tween between the keyframes.
20.   Next, activate the mask layer and chose frame 6 and press F5 to extend the frames. Now, right click on the mask layer and choose Mask from the drop-down list, spokes will be visible only in the rim area as shown in Figure below.
12.JPG

21.   Similarly, add the same effect to the rear wheel. Move back to the main stage area and double click on the car_animation movieclip and create a keyframe on frame number 40. Move the car movieclip a bit in the top right position. Next, add another keyframe at frame number 75 and place the car in the bottom right position. Add one more keyframe at frame 115 and place the movieclip in the top left position. Add the last keyframe on frame 190 and place the moviclip at the same position as it was on frame1. Add motion tween between the all the keyframes.
22.   Position the car on the main stage area as shown in Figure below.
13.JPG
23.   Publish the flash file to see the banner animation.
24.   You can also use this banner animation for creating an banner advertisement for mercedes benz. To do so, create one more layer in the stage area and rename it as text and add it in the scene and make it fly in the stage area and then stop as shown in Figure below.
14.JPG
25.   Publish the flash file to get the animation as shown below.
15.JPG

Motion Guide in Flash


What is Motion Guide?

Motion Guide is nothing but moving your symbol in a predefined path such as curves or circles. Learn how to move Flash objects in circular, zig zag or curved paths using Flash motion guide. Download .fla is included at the end of the tutorial. 


This tutorial will explain on how to create motion guide in Flash MX 2004.
Please note: 
1. You need to have Flash Player 7.0 installed to view the Flash animation. 
2. Flash MX 2004 must be installed in your system to download the .fla file.

Steps to follow :

  1. Create a graphic symbol or drag a pre-existing graphic symbol from library onto the stage. Name the layer as "graphic"
  2. Right click on the "graphic" label and select "Add Motion Guide" from the pop-up window.
  3. A new layer will appear on top of the "graphic" layer with the label "Guide:graphic" along with the guide icon.
  4. Draw the path for your symbol in this new layer using pencil or line tool.
    For example: I drew a circle for my car.
  5. Select frame 50 of guide layer and press "F5" to insert frames.
  6. Now go to "Frame 1" of "graphic" layer and drag your symbol to one end of your path. While dragging, you will see a bubble on the symbol. That bubble should go right below the path. Something like the one shown below.
  7. Now go to "Frame 50" of "graphic" layer and press F6 to insert a new keyframe.
  8. Now drag your symbol to other end of your path. Again, the bubble should go right below the path.
  9. Select any frame between 1 to 50 of your "graphic" layer. Right click and select "motion tween" from the pop-up menu.
That's it, you are through. Press Ctrl+Enter to view your work.

Bouncing Effect in Flash


Demonstration
This tutorial will teach you how to create a bouncing effect animation using Motion Tween and Shape Tween in Flash MX 2004. The .fla download file is included at the end of the tutorial.
Please note:
1. You need to have Flash Player 7.0installed to view the Flash animation.
2. Flash MX 2004 or higher must be installed in your system to download the .fla file.

In the demonstration, the bouncing heart animation is created using motion tween and the shadow effect using shape tween.

TO CREATE MOTION TWEEN
Steps to Follow :
Create a Symbol
  • First draw an object for Motion Tween.
    Like in the above demonstration I used heart.
  • Select the object you have drawn and press F8 to convert this object to a Symbol.
  • In the Symbol window which appears now. Name this object heart_mc, choose Movie clip behavior and bottom center square for registration. Press OK.
Create a Motion Tween
  • Double click on the Layer and type "Heart".
  • Select Frame 30 and press F6 to insert a keyframe.
  • Select Frame 15 and press F6 to add another keyframe.
  • With the playhead still on Frame 15, hold the Shift key to move the heart_mc in a straight line, and drag the heart_mc up.
  • Select any frame between Frames 2 and 14 and select Motion from the tween pop-up menu in the Property inspector.
  • Select any frame between Frames 16 and 29 and select Motion from the tween pop-up menu in the Property inspector.
  • Press Ctrl+S to save your changes.
Create a Shape Tween
  • Insert a new Layer and call it "Shadow".
  • Select the first frame in the Shadow Layer, draw borderless shadow relevant to your Symbol.
  • If your Color Mixture Window is not open, press Shift+F9 to open it.
  • Select Eyedropper tool from your Tool box. Click it on your shadow. Now go to Color Mixture Window and type 25% for Alpha value.
  • Select Frame 30 and press F6 to insert a keyframe, then select Frame 15 and press F6 to insert a keyframe.
  • With the playhead on Frame 15, select the Free Transform tool. Slightly reduce the size of the Shadow.
  • With Frame 15 still selected, select the Eyedropper tool in the toolbar, and then click on your shadow object. Now go to Color Mixture Window and change Alpha value to 10%.
  • Select any frame between Frames 2 and 14 on the Shadow layer. In the Property inspector, select Shape from the Tween pop-up menu.
  • Select any frame between Frames 16 and 29 on the Shadow layer. In the Property inspector, select Shape from the Tween pop-up menu.
Now its time for Final touch up
  • Select Frame 1 of the Heart layer. Press F6 to add a keyframe. A new keyframe is added, and the playhead moves to Frame 2.
  • Go back to frame 1, select the Free Transform tool from your toolbox.
  • Select the transformation center point (the small circle near the center of the movie clip) and drag it to the bottom of the heart. On the Stage, drag the upper middle transform handle down to slightly compress the heart shape.
  • Right-click Frame 1 of the heart layer and select Copy Frames from the context menu. Go to 29th frame and press F8 to insert a new keyframe. Right-click 29th frame and choose Paste Frame from the context menu.
  • Click on the Stage, away from any objects. Type "28" in the Frame Rate text box of your Property inspector window.
  • On the heart layer, select any frame between Frames 2 and 14. Then in the Property inspector, in the Ease text box, type 100. Similarly select any frame between Frames 16 and 29 in the same layer, then go back to Property inspector window and type -100 in the Ease text box. Do the same thing to the Shadow layer.
Press Ctrl+Enter to view your animation.

Thursday, 7 June 2012

JNTUK MCA 5th Semester Syllabus




This is the Syllabus for the MCA students of JNTUK who joined in or after 2009. 

Click the following link to download MCA 5th Semester Syllabus 


Saturday, 2 June 2012

resident evil 5 pc game


DOWNLOAD GAME FROM HERE and the password of the rar file is {ir-dl.com}