You want to invoke a Spark effect with the id “myEffect” when a button is clicked. Which syntax is correct?
A. <s:Button click=”myEffect.play();”/>
B. <s:Button clickEffect=”{myEffect}”/>
C. <s:Button mouseDownEffect=”{myEffect}”/>
D. <s:Button click=”myEffect.end();myEffect.start();”/>
Answer:A
You want to invoke a Spark effect with the id “myEffect” when a button is clicked. Which syntax is correct?
A. <s:Button click=”myEffect.play();”/> B. <s:Button clickEffect=”{myEffect}”/> C. <s:Button mouseDownEffect=”{myEffect}”/> D. <s:Button click=”myEffect.end();myEffect.start();”/>