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

An overview of GreenSock

Before we jump at deep into the world of animations let's explore the various classes available in GreenSock. In this lecture, we will take a birds view of the various classes available in the GreenSock library.

Video Transcript

00:00Let's take a quick overview of the main Tween animation libraries that are provided inside of the Gsapp library.
00:09So the first one is Tween.nano, and this is only available for the Flash version.
00:15We'll take a quick look at it. It really works similarly to the Tween Lite and Max. It's only a lot more limited.
00:22What I would say about that is when would you want to use Nano?
00:25Obviously only if you're working inside of Flash currently.
00:29It's super light. It's only two kilobytes versus about four to seven of Tween Lite, or four to seven more of Tween Lite.
00:37So it's a really, really light component, and really you're going to use it mainly when you have a very strict limitation of kilobytes
00:43and you have to shave down and create a really, really small banner.
00:47Now, in most cases you really want to start from Tween Lite, which is really small as is,
00:52but in a scenario where you must cut those Ks and you just don't have any other option,
00:57you're going to use Tween.nano.
01:00Now, the price of that is one is Tween.nano is not really part of the whole construction of the Tween library.
01:06It's kind of a standalone, minimized version of the library.
01:10And that means you cannot add plug-ins. We're going to see what those are later on.
01:15It's not compatible with the timeline Lite or Max, which we're going to look at in a few minutes and understand what that is.
01:22So it's much more limited. It has fewer methods. It doesn't have the whole set of methods that even Tween Lite has.
01:30We're going to go quickly and kind of explore those methods very quickly and create a separate video just for a.nano.
01:36But then we're going to go over them all over again in the Lite one, so it's going to be kind of a quick introduction.
01:41We're not going to go into the in-depth every detail of it.
01:44But what you just have to get out of it is that when you work with Tween.nano, you don't have access to plug-ins.
01:50You won't be able to use any advanced timeline animations with it.
01:55You'll have to create them on your own, and you wouldn't be able to use the library.
01:58So it's a really small subset if you have small animations that you want to create.
02:02And usually you'd want to use Start from the Tween Lite because it has more features.
02:06But again, it's really just a matter of file size, so that's the decision you're making.
02:10And again, only if you're working on ActionScript 3.
02:13Now, Tween Lite has really the core of the library.
02:16It has all the functionalities of animation that we're going to explore momentarily.
02:21Tween Max, on the other hand, has expanded features which we're going to look at them.
02:25So it's really, these are kind of like very linear where nano is the minimalistic.
02:29Lite is kind of the core that could interact then with the libraries Tween Lite and Tween Max.
02:35And then you have the Tween Max itself, which has all the bells and whistles, which is much larger.
02:40And you have the Timeline Lite, which basically is a library that enables you to create a Timeline of animations,
02:48sequential Timeline of animations, and control it as a whole.
02:52So instead of having creating 10 animations and if you need to change something in them,
02:56needing to control it manually yourself, the Timeline Lite enables you to basically
03:02interact with the Timeline and give commands that are global to everything there,
03:06such as speeding things up or slowing things down.
03:10While the Timeline Max, similar to the Tween Max, just adds more bells and whistles and methods and controls,
03:17such as going backwards or repeating the animation, the timeline animation a few times and so on and so forth.
03:23So it's going to be much more logical by the end of this session.
03:27But all you really need to know at this stage before we start working is the Tween Nano is a standalone.
03:31You only really use it if you have a very limited amount of kilobytes that you could be working with.
03:37The Tween Lite is really your default go-to that you're probably going to be working with,
03:40unless there's extra features that you need and then you'll move up to the Tween Max,
03:44which we're going to explore them as we go along in this course.
03:47And later, later, later on, we're going to talk about Timeline Lite and Max,
03:54which will enable you to string along a sequence of animations,
03:57making it easier for you to control a batch of animations instead of controlling them only on a singular level.
04:04So that's it. There we go. So let's get started.
04:07In the next video, we're going to jump right into seeing how do we get the library hooked up
04:12and set up on the Flash side of things.
04:15And there we go. So we're going to do that in the next lesson.

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!