02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoPrevious Video

Multi line Comments

In every developers life there comes a time where he just wants to comment a few things out without deleting them. You already know how to comment line by line but wouldn't it be nicer (for you and your fingers) if you could cancel out a full block of code?

We have already studied commenting in earlier videos and discussed the single line comment in detail. We won't go in detail about this but will just have a quick review of the previous video before moving ahead to multi-line comments.

We all know that at times we need to hide part of a lengthy piece of code. As we said earlier, we do not want to delete it – just hide it through commenting it out so we can use it again when required. This is the main reason we use the concept of comments, and we use the single line comment to hide one line in the program by placing // before the line.

Now let's dive into multi-line comments. We have studied how to hide single line of code which is not required. What if there are multiple lines to be hidden for future use? One option is to use single line comments for each unwanted line of code. This is a good answer and a correct one, but is it the easiest or smartest way to do it? If you need to comment out a large block of code, will you still use the same process? There must be a better solution.

And presto – there is! The best way to save your fingers and comment out multiple lines in code is to use Multi-line comments. The way we create multi-line comments is by opening and closing the block of code using two symbols: /* to open a comment and / to close one. This will comment out any number of lines between / and */. This way you can skip about 50 or 100 lines within 5 seconds. You must close a multi-line comment, contrary to the single line comment. Multi-line comments are like parenthesis: if you open one you must close it as well.

Comments are more than just to ignore code, as we said before. Comments are a very powerful and useful documenting feature from "by the way" notes to yourself all the way to really advanced commenting structures known as ASDocs – those are comments that have a structure, but are not used as part of the code. They actually create Flash help documentation.

Intro

In this video, we will learn the basics concepts of coding in Flash. The main focus is on the output panel. Once we understand Flash's environment, then we learn how to manage the output panel.

03:16

Publish Settings Recap

Get into a rhythm of efficiently setting up your files so you can smoothly transition into writing code. This video shows you how to compile your .swf and .html files..

03:41

Setting Up Our Main Class

Get into a rhythm of efficiently setting up your files so you can smoothly transition into writing code. This video shows you how to set up your script for all the code you'll write from here on out.

04:51

Test Movie

The basics of working with Flash, focusing on the publish settings and testing movies.The basics of working with Flash, focusing on the publish settings and testing movies.

00:58

Trace

For your first programming task, you'll experiment with the 'trace' function and learn how to output data from your application. This can be used to print the desired text at will.

04:08

Single Line Comment

In this video we will learn the syntax of single line comment and the need for its existence in programming, and explore how to create them in actionscript 3 flash.

01:25

Numbers And Basic Math

In order to do great things in flash, all you need is a grasp of basic math. So let's work on computing mathematical equations using the 'trace' function.

06:42

Answer To Math Question

In order to do great things in flash, all you need is a grasp of basic math. So let's work on using the Trace function to compute mathematic equations. We ended the last video with a question, let's s

01:40

Multi line Comments

You already know how to comment line by line but wouldn't it be nicer for you and your fingers if you could cancel out a full block of code? Yes, it is possible using multi line comments.

01:40

What Are Variables?

Learn how to create different kinds of variables and see how they can make your life easier as your code gets more complex. They play a major role in writing the code efficiently.

02:20

Strings As Our First Variable

learn how to create your first string variable in actionscript flash. This video helps you understand how to declare a variable and assign a string to it.

03:42

Error 1067: Implicit Coercion

Help-I just got the dreaded 1067 error... ohh actually it is not that bad it is telling me something... but what? Let’s learn about 1067 error and know how it is helpful to the user

01:21

Numbers As Our Second Variable

Learn how to create different kinds of number variables and see how they can make your life easier as your code gets more complex. Also learn the syntax for declaring all types of numbers

01:56