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

Importing an Image

In this video we will import an image and exam it in the library where we will set it to allow smoothing.

Video Transcript

00:00And first of all, before we even create our movie clip,
00:02I wanna import into our stage a visual asset.
00:06And to do that, I could just go into my file
00:08and I could ask to import onto my stage.
00:14Then it's gonna open up my dialog box.
00:16And in the download file,
00:17you will find an asset called Color Logo Mini.
00:21And I'm going to select that.
00:24And here we go, we have our color logo,
00:27which is a movie, it's not a movie clip,
00:29but it's an image, which it's in our library already.
00:33Now, if we publish the file out directly right now,
00:35which we could definitely do that,
00:37we will see that our item is on the stage.
00:39But if we notice, it's got a bit more
00:42pixelation going on that we really wanted to.
00:44Maybe it's hard to see that in video,
00:45but it has some pixelation which we wanna address.
00:48And the way we could address that
00:50is if we go into our library,
00:51we could just right-click or command-click
00:56and then go into the properties of that image.
00:58And then we could adjust the settings,
01:01such as right now we're using
01:02a publish settings of 80,
01:03which seems good enough.
01:05So we just probably wanna set it to allow smoothing
01:08to make sure that it doesn't get pixelated as easily.
01:13And if we set that,
01:14it adds a little bit more smoothing to our image
01:17and it makes it a little bit more crystal clear.
01:19And you could always play with those properties.
01:21And again, you would actually go into your library,
01:24you would select the new element that we just had
01:27and go into the properties
01:28where you could play around with the settings,
01:29which usually you'd wanna set up to allow smoothing
01:32unless you have a lot of assets,
01:34which then could cost you in performance
01:36if you do it too often.

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!