Suddenly Sensitive

[ LiB ] 

You may have noticed that a lot of your ActionScript code started breaking when you put it in Flash MX 2004. There are a lot of changes that were made, and if you want to convert your code to the new AS 2.0 format, it will take some work. One big change is the fact that in AS 2.0, identifiers (instance names, variables) are now case-sensitive. That means that while you could use myVar and MyVar interchangeably in previous versions of Flash, now they are treated as two completely different identifiers.

This may take some getting used to for some of you, but believe me, it's much better this way. I would recommend always paying close attention to text case when doing any scripting or programming, whether the language demands it or not. I always said that they would make ActionScript case-sensitive one day, but did people listen? Well, actually, yes, a lot of them did, so never mind.

[ LiB ] 


Macromedia Flash MX 2004 Killer Tips
Macromedia Flash MX 2004 Killer Tips
ISBN: 0735713839
EAN: 2147483647
Year: 2003
Pages: 300
Authors: Shane Elliott

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net