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

Working with Time in AS3

In this course we will take our learning from the last course and continue and practice key concepts while adding new things into our logic, working with time and a closer look at working and dispatching events.

Duration: 36:00

Dependency warningThis course builds on concepts from Working With Classes In AS 3.0.
Intermediate Level
Intermediate Level
Medium-paced Course
Medium-paced Course

Created with

Ben Fhala

Ben Fhala

Ben Fhala is the creative force and founder behind 02geek, a pioneering platform dedicated to making web development accessible to everyone. With over 18 years of experience in the industry, Ben has a deep passion for teaching and a knack for breaking down complex concepts into easy-to-understand lessons.

Working with Time in AS3 Overview

What you'll learn

Working with the Timer, setInterval/clearInterval in flash are a continuation course based on the last course in the Indispensable AS3 group of titles. In the last session we started working on setting up a Timer. In this course we will complete the task and add a few new concepts in the process. We will start by creating a timeout using the setInterval and clearInterval these methods have been around forever and are actually the way working with time is done in JavaScript till this day so its a very important way of working with time that we should understand. You might be thinking so why learn so many ways to work with time the older way(setInterval) has many risks associated with it as all responsibilities are in your hands while working with the Timer class adobe added some extra securities to help avoid something that is called "memory leaks". We finish off with integrating some basic work with dispatching events, text fields and formatting text. Our end result will be a functioning timeout.

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!

setInterval

06:27

clearInterval

02:05

Interval Edge Cases

02:02

Dispatching Events

08:57

Updating Text

06:36

Cleaning up our Timer

07:30

HomeWork

00:43

Summary

01:41

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!