Blogadda

Blogadda
Visit BlogAdda.com to discover Indian blogs

Wednesday, April 29, 2009

AS questions-Meebo

1. How would you determine the native width and height of the image in pixels in ActionScript?

2. How would you resize the image so that it is displayed 300px high but maintains its original aspect ratio in ActionScript?

3. What is the difference between _root scope and _global scope?

4. What is the difference between _root and _level0?

5. What is the result of this chunk of code and why?

var a = 10;
eval("a = 15");
trace(a);
6. What is the difference between the onmousedown event and the onpress event on the MovieClip class?

7. What is the result of this chunk of code and why?

var o = new Object;
o.i = 6;
with(o) {
delete i;
i = 7;
}
trace(o.i);

No comments: