Notes for more details method reference

You can also encapsulate specific behaviors inside class methods. In this example, we provide the class with a method called changeSize that changes the component size by the positive or negative number of pixels passed as an argument. LZX's animation API is used to make the size transition smoother. The onmouseover and onmouseout event handlers call the changeSize method to respectively increase and decrease the component size by 50 pixels. To define a method, you use the <method> tag. You use the name and args attributes to specify the method's name and argument(s). If the method has more than one argument, you can use a comma separated list of argument names.