I l @ ve RuBoard |
Some of the most important lines of code in your programs don't do anything at all. They are comments, which Flash just ignores. Comments, however, help you organize your code and remind you what a particular piece of code does. Here is a simple example: // add 2 to the number num += 2; The previous example shows a line that is completely a comment. It begins with two forward slashes . The rest of the line is whatever you want it to be. You can also place a comment at the end of a line. Here is an example: num += 2; // add 2 to the number Whenever you use the double slashes, the rest of the line is ignored by Flash.
There are many different ways to use comments in your code. Programmers usually place one or more lines of comments before each function that explain what the function does. You can also place comments before individual lines if you feel they need more explanation. |
I l @ ve RuBoard |