Ignore this Code

[ LiB ] 

I think it's wise to write code (ActionScript) that Flash pays attention to, but there are certain reasons you would want code to be ignored. This is referred to in programming circles as "commenting out code." There are two ways to comment out code in ActionScript. The first way lets you comment out a single line of code; it's done like this:

 // Anything I type on this line will be ignored by Flash 

The second way enables you to define a start point (/*) and end point (*/) for your commented code, and it can cover many lines:

 /* Nothing on any of these lines will be compiled by Flash's ActionScript engine so I can write whatever I want. */ 

You can use either method to disable code for testing, to add a note about the code, or just to save your grocery list, and it will be ignored. All commented code is shaded in gray by default.

[ 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