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

Chapter 13. Debugging > Beware of ActionScript

Beware of ActionScript

ActionScript is based on the ECMAScript specification, which defines a loosely typed language. Loosely typed languages are not strict, and allow you to do things that would not be allowed in most other computer languages. One of the main reasons for using a loosely typed language is that it makes writing short scripts easier and far less formal.

In most traditional computer languages, you must first define a variable before using it. In ActionScript you can simply use a variable almost anywhere you please without having to define it. In fact, you can assign text, numbers, and even array lists to your variables as you please. This flexibility comes at a very high price—loosely typed languages increase the likelihood of writing scripts with hidden bugs. Strictly typed languages, such as Java, will force you to comply by simply complaining and refusing to run your script until you've weeded out everything that might even resemble a bug.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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