• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 12. Functions > Using Parameters in Functions

Using Parameters in Functions

So far you have seen how to create functions and place scripts inside them. This is not very dynamic, though, in that after the information is in the function, it cannot be adjusted for different situations. Now we'll use parameters to change this limitation.

Parameters in a function act similarly to variables in ActionScript. They can be changed on-the-fly whenever the need arises. You place the parameters in parentheses following the name of the function, which looks something like this:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint