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

Runtime vs. Compiler Errors

There is a difference between runtime errors and compiler errors: this is vital to understand so we won't get confused or frustrated when unexpected things happen. Unexpected things will happen: part of the fun comes from figuring out why!

Compiler errors are errors that Flash catches while it's trying to compile your application, preventing it from finishing compilation. On the other hand, runtime errors are warnings that Flash triggers to you after the application is compiled (and it's already running) that it didn't catch before. It is also important to know that these two panels are not visible to the end user.

What are compiling errors?

Compiling errors happen when you build your application, and there are mistakes that Flash knows are mistakes. For example, you assign something the wrong value, you type something incorrectly, you missed a parameter, or you added too many things. Flash will know that you made an error or did something that you didn't mean to do: it will give you a warning.

All of the errors are related to your mistakes in syntax (typing errors, wrong arguments or the like.) They will be put into your compiling errors panel as soon as Flash tries to compile your application into an .SWF file. Any such error will prevent you from completing your compiling.

What is a runtime error?

Run-time errors, on the other hand, happen after your application is compiled and running. If Flash hits an unexpected something (could be anything) as your application is running it will warn/announce it to you. For example, if it couldn't find a file that you tried to load, it triggers a runtime error letting you know about it in the output panel (well true only for us as we are working in the Flash editor.) So, on the fly, flash will output into the output panel warnings and errors that it didn't catch during compilation. Additionally, you can send messages to the output panel as you're trying to run your application. It is also important to know that the output panel and compiling error panels are not visible to the end user, but programmers will be able to see your output panel if you don't omit the capability.

Compile Errors vs. Runtime Errors Video Transcript 

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!

Developer Basics Overview

Pro or new, this course is for you. Our custom exams speed learning by filtering exams: zero to geek in no time! Always wanted to learn Flash? Take this free thorough 02geek tutorial, join the fun.

03:19

Starting Point Overview

In this overview we talk about what you get out of the next hour of this course: Know the Flash Environment, Files & Publishing, Output & Troubleshooting, OOP vs. Timeline, Sample files and resources.

03:08

File Types

Learn to code the right way, beginning with the different file types that are important to know about Flash: exactly what .as and .swf files are.

12:44

Where Is It?

The difference between CS5 and Cs3 layouts: Cs4 and Cs5 as well. . This Flash tutorial is the perfect starting point for those of you that have never used Flash before.

09:52

Workspace

Looking at our Cs5 workspace working area. Also, Cs4 and Cs3: how to use Flash As3 so we're on the same page.

06:43

Runtime vs. Compiler Errors

What is the difference between runtime and compiler errors? What are runtime errors and when do they happen? What are compile time errors?

03:39

Overall Things To Know

What are the things needed to know about Flash? Flash is a time-based programming language, which means it compiles, (unlike Javascript). Educate yourself with the basics of coding and learn how to bu

07:36

The Properties Panel

In this session we meet the properties panel and see how it's dynamic and flexible. By the end of this session you will know all you need to know to roll in it.

09:22

Publish Settings

The Flash Publish settings in action. In this session we get to learn the basics of the publish settings and how to work with it.

08:47

Split Paths

Hint Hint we want you to pick OOP. in this intro we will explain why its important to go the transition into OOP way of coding.

03:32

Split Paths : OOP

In this video, we take a step further into our object orientated programming world.

07:31

Split Paths : Timeline Coding

In this title we outline the options you have as a developer and help you understand why it would be a good idea to move to OOP

03:15

How To Use Samples

We walk through the source files of our Flash ActionScript project

01:12

Building It Up From Scratch

In this video we redo our work and build together a class and connect it to our flash interface.

05:09