Friday, March 27, 2009

Explain the difference between creating an effect and setting the target as opposed to adding an

Question :Explain the difference between creating an effect and setting the target as opposed to adding an
effectListener


Answer :To create a behavior, you define a specific effect with a unique ID and bind it to the trigger.
For example, the following code creates two zoom effects: one for shrinking the component slightly,
and one for reverting it to its original size. These effects are assigned, by using their unique IDs, to
the mouseDownEffect and mouseUpEffect triggers on the Button component.



paddingLeft="10" paddingRight="10" autoLayout="false" left="41" top="24" right="42">
mouseDownEffect="{shrink}" mouseUpEffect="{revert}"/>

No comments: