Home » course catalog » Starting Point » Runtime vs. Compiler Errors

Runtime vs. Compiler Errors

There is a difference between runtime errors and compiler errors, this is very important for us to understand that way we won't get confused or frustrated when things that we didn't expect happen. 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 is warnings that Flash triggers to you after the application is compiled(its running already), 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 a mistake or you did something that you didn't mean to do. Flash will want to give you a warning.

All of the errors are related to your mistakes in syntax, or to your clear cut mistakes that flash picks up on. They will be put into your compiling errors panel as soon as flash tries to compile your application into language that flash knows how to run with. Any error will show up in your compiling errors panel, and 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 want warn/announce it to you. For example, if it couldn't find a file that you tried to load, it trigger 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 panel are not visible to the end user; but, programmers would be able to see your output panel if you don't omit it.

Compile Errors vs. Runtime Errors Video Transcript

Got A Question?

'I love being Prime'

Have a question but don't want to ask it publicly? If you are a prime member just ask right here and we will get back to you within 48 hours. Not prime yet? no worries you can ask publicy below.

Calling all Limited Time Offer lovers

Any day now we will need to update our prices, lock in before our rates go up.
It’s not limited, It’s a no-brainer.
try use out