4 Replies Latest reply on Nov 18, 2010 9:46 PM by Flex harUI

    Event handlers:  click in mxml tags or in AS?

    learner_doug Level 1

      Is there an advantage to putting click event handlers in AS rather than in the mxml tags?  For example

       

      in AS

      button_1.addEventListenter(MouseEvent.CLICK, someFunctionName);

       

      or in mxml tags

       

      <s:Button click="someHandlerName(event) />

       

      Thanks