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

Answer To Math Question

This video is a revision and practice to help understand new concepts learned in the last video. We'll follow all the steps mentioned in the previous video to get an answer to a complicated math equation. When we evaluate the equation according to the priority of the math symbols, the calculation becomes easier. So, practical knowledge on evaluating the math equation is a must before moving forward in the courses.

Lets review this with an example: (2-3)*3+8/(4-2). When we write this equation in trace without double quotes, Flash evaluates the final answer and prints it on the output panel. Let's now discuss the steps taken by Flash to evaluate the answer to this equation.

Firstly, the highest priority symbols will be evaluated as discussed earlier. We can see that the order of priority in this equation is

  1. () – whatever is in parenthesis is calculated first.
  2. * or / – multiplication or division next
  3. + or - – addition or subtraction last

So (2-3) and (4-2) are evaluated first which gives the first result: -1*3+8/2. We know that * and / are higher priority than + and -, so after the next evaluation the penultimate answer is -3+4. This is evaluated easily as 4-3 which gives the answer 1. Therefore anytime you need to calculate something in code strip out the complex parts based on the priority levels of (parenthesis, multiplication or division, and lastly plus or minus).

After watching this video, you might wonder how easy mathematics is. Yes, the part of math related with Flash is very simple as it's based on basic mathematical operations. If you need a refresher or you're finding yourself lost, please don't hesitate to contact your assigned trainer, use our community channels or contact us directly.

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!

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