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

Summary

Going over one more time the logic we worked on seeing how we worked with events and setting up expectations.

Video Transcript

00:00As long as you get the concepts, and if you don't please rewatch the videos, do the exams,
00:04get a bit comfortable with it, and obviously we're going to add more content and more
00:08rehearsals because the more that you rehearse, the more you see it in action, the more it's
00:12going to make sense.
00:13But what I wanted to do is just talk about the event dispatch, again, just for one
00:17more minute.
00:18So we said for us to be able, to be capable, we've seen already until that, we've seen
00:22how we could listen to events.
00:24That's easy.
00:25Until now, we were passive.
00:26Until now, we didn't really have access to the classes themselves, we didn't have access
00:30to building those classes.
00:32So throughout the last few videos, we built out our own class.
00:36We discovered that some stuff are kept as secret, which are private, and some stuff are public.
00:41So some stuff are available to anyone that wants, and some stuff are not.
00:45On top of that, we learned that we could dispatch events just as much as we could
00:49listen to events.
00:50And now that we could dispatch events, you're going to see it in a few different variations,
00:53you're going to see details in future videos.
00:56But at the end of the day, especially if you look at the event listeners, there's
01:00a correlation between how you work with event listeners and how you dispatch events.
01:03All we really care about, all we really want for now, is right now, we're just using
01:08a basic, simple, new event, which we're setting right here in the first parameter.
01:14And then we're just giving it a name.
01:16And in this scenario, we're giving it the name of complete.
01:18In the second scenario, we're giving it the name of change.
01:21And then we're capable of listening to the complete event, and we're capable of listening
01:25to the change event, and have them actually work.
01:27In future releases, and we're not going to dig into it right now, because the main topic
01:31right now is not events, but our main topic is objects and working in an object-oriented
01:36world.
01:37But we're going to have releases that are focused really on event dispatchers.

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!