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

The Properties Panel

In our next video we take a deeper look into the Flash properties panel: if you have your properties panel open, click anything on the stage and see its properties. With nothing clicked/selected, you'll see general properties for the application such as "Publish" -- where "Class" is (more on that later,) or "Properties" where you can change FPS (frames per second,) size, or background color

In this video, you'll learn some of the functions, controls, and buttons available on your property panel: where properties like 'size' are and when to use them, a complete breakdown of the Document properties, and using the document class. Join us, as we explore what pixels are!

Video Transcript 

Video Transcript

00:00We created some objects, we added them to the stage,
00:03I'm just gonna delete them quickly
00:05and add a new object onto the stage.
00:08Not that I really had to, just for fun.
00:12Okay, click on V to make sure
00:15that I'm back in my arrow mode.
00:18Now the next thing I wanna do
00:19is talk about the properties panel.
00:21And as we said before, there's a lot of ways
00:23to get to your properties panel.
00:26Most likely if you can't find it on your stage
00:28and you'd always just go to your window,
00:30search for properties and open it up.
00:33But I know where my properties is
00:34because I set it up to be minimized here on the side.
00:38So I'm just gonna click on it
00:39and clicking on my properties
00:40will reveal to me my properties.
00:42And it's basically what the properties are.
00:45And the most easy way to explain it
00:47is that the property panel is kind of a dynamic panel
00:50and that's the reason why I really need
00:52it to have something on the stage.
00:54And what does that mean?
00:56The properties panel, and let me just for this example,
00:59I'm just gonna set, everything's good here.
01:06And just save my workspace bin again.
01:08I'm gonna override myself
01:09because I wanna make sure that we get back
01:11to be exactly this way.
01:13Because I'm gonna change my panel
01:14and I'm just gonna grab properties
01:15and throw it outside of that
01:17because I don't want it to toggle on and off
01:19every second right now, even though usually I do.
01:23So now I have our properties panel out.
01:24Let's see what happens when you select something
01:26that's on the stage.
01:28As soon as I click on something on the stage,
01:30for one, you'll see that it's selected.
01:32It will have like this mesh on it
01:34showing you that it's selected.
01:36And now that it's selected,
01:37our properties panel changed.
01:39And it's true with anything in Flash.
01:41I've had other visual items on the stage.
01:44You'll see that every time I have a visual item
01:46on the stage, and again, I'm gonna click on V.
01:48If I select it, you'll see that we have a shape
01:50and it gives us details about that shape,
01:52which we could then modify if we wanted to
01:54and change around.
01:56We could go to our object, we could change its color.
02:00Really, this is kind of an overview that says,
02:01okay, what is my properties?
02:03My properties gives me information
02:04about my currently selected element,
02:07whatever that element is.
02:09If I select nothing, in other words,
02:11I'm selecting the stage.
02:13When I select the stage, then Flash will generate
02:16the properties panel from a thing that's called,
02:20well, it's kind of a mixture between our publish settings
02:23and our document settings.
02:26And before we dig into them, really,
02:29let me just highlight our most important thing
02:32that really is our focus, which is our document class,
02:35which is right here.
02:36And that's exactly what we're gonna work with
02:38to actually configure our application
02:40to work with an external class.
02:43But until we get to that point where we reach that point
02:47where we kind of make, we're in the decision path
02:51of loading an external asset
02:53and working with an external asset,
02:55let's just see an overview of some of the properties
02:58that are related globally to our application.
03:01And as we said previously when we were talking
03:03about the timeline, is that Flash re-renders
03:06the application, the visual things in the application
03:10in a frame rate, in a certain frame rate.
03:12And currently, we are set to 24 frames a second,
03:17which we could change.
03:19And we could change them in our frame rate as well.
03:21Now, it doesn't really matter what you see
03:24in your properties, because really depending
03:26on your Flash version, you're gonna see different things.
03:28But basically, when you have nothing selected,
03:31you're in your editing mode to like enabling you
03:33to editing things that are related to your publishing
03:36and things that are related to properties
03:38that are global to your application.
03:40And if you can't get to them through your properties,
03:43we're gonna see how to get to them in a second.
03:44So I'm not gonna make any edits here.
03:47And we're gonna see how we could edit directly
03:49from our properties panel.
03:50Now, do we edit from our publish settings as well?
03:54So in our publish settings, we could see
03:56that we're running Flash 10,
03:57but we could have ran Flash 9 as well.
04:00We're running in ActionScript 3,
04:03which is exactly the version of Flash we run and run.
04:05And we can see that we can't really tinker
04:06that from our publish settings,
04:07it's just giving us that information.
04:09And here, we would put our class path.
04:12Now, in our properties panel, we said we could see
04:14our frame rates, which we could change manually
04:16right here, or go into our properties panel,
04:19properties, well, overlay, you probably would call it.
04:24We could change the size of our application,
04:26which we can't manually do it right here,
04:28but we could go into our properties overlay as well.
04:31Or we could change our background color
04:33if we wanted to, and change the background color.
04:36Now, an interesting new addition, I guess,
04:38where I haven't seen it before, is the Swift history,
04:41which I don't believe existed in previous versions.
04:43It's just here to show you that Flash evolves and changes,
04:47and it really isn't critical for our mission,
04:52but it's really great to know the properties panel,
04:55and seeing all these different things
04:57that are related to items, and it's the best way
04:58to explore and find things inside of our properties.
05:02Now, before we wrap our discussion about properties,
05:04let's touch back into our properties,
05:06which is half, or a very big portion of our properties.
05:10How do we edit our properties?
05:13We could click, obviously, on the edit button right here
05:15to get into our document properties.
05:17But if we don't know how to get here,
05:20or we couldn't find it,
05:21because we're working in a different version of Flash,
05:22again, we could always go through our menus.
05:25And our menu, this time around, would be in Modify Document,
05:29which Modify Document would open up our document settings.
05:32So we could either go through Modify Document,
05:36or we could just click on our edit button,
05:38and that would enable us to change
05:41the dimensions of our applications,
05:43or let's say, we would want to change it to be 100,
05:48and the height we would want to remain the same,
05:50then if we click OK, we're going to see
05:52that our application size has now changed.
05:56So one thing is, if we look at our application,
05:59we don't really see our, oh, what am I doing here?
06:07We can't really see our bounding anymore.
06:09Why is that?
06:10Why is that if I delete?
06:12I delete.
06:14Where are we?
06:14The reason is, is because if I just close the properties
06:16for a second, let's search for it.
06:19Where is our, well, it's kind of disappeared, isn't it?
06:24Let me try here, maybe,
06:25let's get to a really, really small view.
06:28It's 25%, and I still can't see it.
06:32So let's see what's going on here.
06:33Let's go into our library.
06:37Not library, sorry, let's go back into our properties,
06:39which this is great, because I am kind of lost right now,
06:41and we'll see our stage, here we go.
06:43Our stage background color is now the same
06:46as the color of our non-stage,
06:50so we can't even see our stage.
06:51So let's set it back to being white
06:53so we could actually see it.
06:55Excellent, so now we could see
06:56that we actually did grow smaller.
06:57So let me just go back to our 100% view,
07:01and put our content again in our view.
07:06Very good.
07:08Just a bit more, a little bit less.
07:10Okay, perfect, so let's go back into our edit.
07:13And in our edit, we probably want to go back to 550.
07:18Now, I would recommend never really change your ruler unit.
07:21Well, we're working in an application,
07:26and it's going to be served on an application,
07:28and applications don't really work
07:30on any other measurement besides pixels.
07:33It's here, really, just for print, I think.
07:36Well, to be honest, I've never changed it,
07:37and I would love to hear why would anyone change it.
07:40And you could see also that right now,
07:42we're set to 550 pixels, but we could have set it
07:45to not work with pixels, but why would we work
07:48with anything but pixels when we're working
07:51inside of a program?
07:53Pixels, by the way, are basically,
07:57their size really depends on the browser,
08:00or well, it really depends on the resolution you're in,
08:03and it really depends on the computer you're in.
08:05And that's a great way to work,
08:07because when you're working in an application,
08:09there's no such thing as an application that's 10 inches,
08:13or an application that's five inches,
08:14because it really just depends on your monitor,
08:16how big it is, and what your resolution is, and so on.
08:19So it's really not relevant.
08:20And in the world of programming where you know
08:23your resolution is a certain amount of pixels,
08:26it makes it much easier to work,
08:28because then you know you're working
08:29in the same type of system, which is pixels,
08:32which is basically all the world of web and applications
08:36is really, really, well, really, really is,
08:39there's a duplication of the word really.
08:42It works with pixels.
08:43So that's all I have to say right now about pixels,
08:45and when we go in working on deeper into
08:48working with visual items,
08:49obviously we'll revisit this concept,
08:51but let's just keep it in working with pixels.
08:54We could change our frame rate,
08:56but for our sake, our samples,
08:59it really doesn't matter, we wouldn't want to change it,
09:01because 24 is good for us.
09:03And we could change our background,
09:05which you don't really need to,
09:06but we could if we wanted to.
09:07And we could set our default
09:09to be whatever changes we make.
09:11So we could just set it and make our default
09:13and change our default to be whatever we want it to be.
09:15So if we wanted our background to be a different color,
09:18we could set that to be the default.
09:19But we're good with the default settings that Flash has.

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!