Getting Started > What's new in Flash 5 ActionScript > User-defined functions

User-defined functions

You can define functions with parameters that return values. This allows you to reuse blocks of code in your scripts. In Flash 4, you could reuse code by using the call action, but you couldn't pass parameters or return values.