Thursday, December 15, 2011

Flash Interview Questions

This post mainly deals with the most popular flash interview questions that we come across now. Hope it fulfills the purpose.

Q1. What is the default frame rate?
Ans: The default frame rate is 24 frames per second (fps) for the new versions. In previous versions of Flash, the default frame rate is 12 fps.

Q2. From which version of Adobe flash player, you see the compatibility of AS 3.0?
Ans: Flash Player Version 9

Q3. How many types of symbols can be there in any flash application? Name them.
Ans: 3, namely, Button, Movieclip and Graphic.

Q4. How does the it affect the frame rates of a swf file when it is loaded into another?
Ans: The new swf file takes the frame rate of the parent swf file and runs with that.

Q5. How can you change the frame rate with the help of code, with and without using the stage property?
Ans: Refer to the post: http://bashwithflash.blogspot.com/2011/09/frames-and-frame-rates.html

Q6. Why do we need to embed fonts to a dynamic text field?
Ans: Refer to the post: http://bashwithflash.blogspot.com/2010/12/dynamic-text-look-and-feel.html

Q7. How are _root and _level different?
Ans: Refer to the post: http://bashwithflash.blogspot.com/2011/08/root-and-level.html

Q8. How are _root and parent different?
Ans: "_root" is the main timeline of the currently active movie. "parent" is the container movie of the currently active movie clip.

Q9. Write a code sample to draw line between the given two points?
Ans: We use the "lineTo(x,y)" API. Here is the example code:

    var mc:Sprite = new Sprite();
    mc.x = 50;
    mc.y = 50;
    this.addChild(mc);
    mc.graphics.lineTo(100,100);

This sample code defines a movie clip at (50,50), and draws a line from this point to (100,100). Now line is the mc. We can further draw more lines to other points also.

Q10. How do you add listener to a particular display object? What are the arguments that you need to pass to the listener?
Ans: Refer to the post: http://bashwithflash.blogspot.com/2011/01/capturing-events-in-flash-as3-part-ii.html


Apart from the above questions, OOP concepts are also asked. The candidate might also be asked to make a small flash application.

Readers are most welcome to make any correction to the answers they think is wrong. Also keep adding the questions too.

*More questions to follow soon in the next post.

No comments:

Post a Comment