Adobe Flex Actionscript Question:
Download Questions PDF

What is the problem with calling setStyle()

Answer:

Calling the setStyle() method can result in decreased performance. Use it only when necessary.
You should try to apply style sheets rather than use the setStyle() method because it is computationally expensive. This method should only be used when you are changing an object's styles during run time.
You cannot get or set style properties directly on a component as you can with other properties. Instead, you set style properties at run time by using the getStyle() and setStyle() ActionScript methods.

Download Adobe Flex Actionscript Interview Questions And Answers PDF

Previous QuestionNext Question
What does calling preventDefault() on an event do? How is this enforced?Explain the difference between creating an effect and setting the target as opposed to adding an effectListener?