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

Multi line Comments

<p>In every developers life there comes a time where he just wants to <a href="/courses/video/4/32/Single-Line-Comment.html">comment</a> 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?</p> <p>We have already studied commenting in <a href="/courses/video/4/32/Single-Line-Comment.html">earlier videos</a> 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 <a href="http://02geek.com/courses/video/4/151/Answer-To-Math-Question.html">previous video</a> before moving ahead to multi-line comments.</p> <p>We all know that at times we need to hide part of a lengthy piece of code. As we said earlier, we do <b>not</b> 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.</p> <p>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.</p> <p>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 <a href="/courses/video/8/65/Brackets.html">opening and closing the block</a> 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 <a href="/courses/video/5/35/What-Opens-Must-Close.html">parenthesis</a>: if you open one you must close it as well.</p> <p>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.</p>

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