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

Chapter 8. Welcome to ActionScript 2.0 > Strict Data Typing with Functions

Strict Data Typing with Functions

A common problem in ActionScript 1.0 is building a function that is supposed to return a certain data type, a number for example, but, somehow it sends out a Boolean value instead. Or worse yet, you have parameters set to receive a certain data type, but another developer passes it a different data type, and then that developer cannot figure out where the error is.

Strict data typing in functions comes to the rescue. You can not only data type the result of a function, but also all parameters in that function.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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