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

Publish Settings

In our next lesson, we will explore our publish setting options. There are 3 tabs on the Publish Settings panel: Formats, Flash and HTML. Click "Formats" for file types to output by publishing. You'll be amazed to see the options, here! In the video, you'll learn about 'relative paths' which make it easy to share files.


Click "Flash" for the properties of the flash player running: (version of Flash player 10 is the latest.) Changing which Flash player is used can force a change in the version of ActionScript used, as you will see. 'Swf settings' by default have 'compress hidden layers,' 'include hidden layers' and 'include xmp metadata' checked . Feel free to play around, but ensure these settings are set as default.


Overall, these "Publish" settings lets you create specifications for different players such as Flash Light or Iphone (if you're running Cs5.)


One final note: if you're looking for a 'class' definition - there is a special way to do it from the Publish settings. Dig in and learn how!

Video Transcript

Video Transcript

00:00I just want to reset our properties back
00:01to the way we worked with our earlier version of Ben,
00:04which I saved earlier.
00:05So I'm just going to click on Ben,
00:07Reset Ben to set us back to the way we were before,
00:11where our properties was set,
00:13anchor it inside of our panel.
00:15And look how easy it was.
00:16So whenever we want to drag it out,
00:18we just drag it out and we just reset back
00:20to our previous saved version.
00:22And notice how when I saved it,
00:24I just overrid Ben and I just saved it,
00:26created a new workspace and just named it in the same way.
00:30So if you ever change your workspace
00:32and you want it to save that change again,
00:35just write that name again.
00:37Okay, so let's look into our publish settings.
00:39And again, the differences between the versions of Flash
00:41are really not that big,
00:42so it's quite easy to maneuver and figure it out.
00:46And as you saw a moment ago from our publish settings,
00:49we could have jumped into our publish settings.
00:53But what we want to do is let's go to the route
00:55of going through our file publish settings.
00:59By going through file publish settings,
01:00we're going to get into our publish settings as well.
01:04And clicking it that way,
01:05we'll see first of all that we have your three different tabs.
01:08We have here the HTML tab, the Flash tab,
01:11and the Formats tab.
01:13Let's toggle back into the Formats tab for a second here.
01:17And as we go into the Formats tab,
01:19you're going to see by default the file,
01:21the two file types that are going to be outputted
01:24when we click on our publish.
01:27Or when we go and it just canceled
01:29and we click on our file publish,
01:30it would generate those two files.
01:33Now where are they going to be positioned by default?
01:36Back to our formats.
01:37They're going to be positioned exactly in the same place
01:40where our FLA is.
01:42Now we don't really want that.
01:44And the best way to do it,
01:47I never really go into the select publish destination
01:50because when you do that,
01:52it's going to hard code a full path
01:53which makes it really hard
01:54to then make your application more mobile.
01:57So you could send your FLA
01:59and have multiple people working on it more easily.
02:03Instead of going through that path,
02:05what I like doing is just working
02:06with directly putting here
02:09a kind of Unix type of relative pathing.
02:14And it's quite easy.
02:15The way you relative path,
02:17there's just two rules here.
02:19One is when you want to refer to the previous directory,
02:22you take one directory back,
02:23you type dot dot and your two directories back
02:27and then you'd have a slash.
02:30Just the same as you would do on the web,
02:31the same type of slash.
02:34And then you could write another folder.
02:35So if we wanted to go into the deploy folder now,
02:38then we could set the deploy folder, set a path
02:40and now our file is going to go into the one folder back
02:44into the deploy folder
02:45which is the way we're working on our samples
02:47that we've seen earlier
02:49that we're going to open them up in a second now.
02:51But before, we're not even going to save this file,
02:53but before we go and do that,
02:55let's look at a few more properties
02:57that are important to know related to our formats.
03:01One is that we have your other options
03:03which we could publish to,
03:04which we're not going to dig into,
03:06but you're more than welcome to play around with them
03:07such as creating a Windows projector file
03:11or creating a Microsoft,
03:12or sorry, a Macintosh projector file.
03:15I'm sure I just made people shocked and awe,
03:20or in shock,
03:20that I call telling of Macintosh, Microsoft by mistake.
03:24Okay, but let's look at the two tabs.
03:27If I deselect my HTML,
03:29then my tab for HTML is going to be removed.
03:31Not everything, really.
03:34As you could see, as I'm adding,
03:36some things don't have,
03:37as you could see, my Windows projector
03:40and my Macintosh projector don't have extra properties
03:43which we could change in our published settings,
03:47but many do.
03:49And we could see that our HTML does, our Flash does
03:52and so do the other items.
03:53And we're going to focus really on our Flash.
03:55We're not even going to look into the HTML wrapper
03:57because it's not the topic right now.
04:00So if we click onto our Flash properties,
04:02let's see what our properties are
04:03and we're really just going to run through them
04:05really, really quickly.
04:08We could see one is that the Flash player
04:11that we're running.
04:12And we could see in our Flash player,
04:13they're running on 10,
04:14which is the latest version to date of making this video.
04:19And we could have made it run for Flash Player 9.
04:21That's still ActionScript 3,
04:23which is fine.
04:24We could have made it 8,
04:25but if we would made it 8,
04:26it would automatically move down to ActionScript 2
04:29because Flash Player 8 didn't support ActionScript 3.
04:33So we know that we have to work on Flash Player 9 or up,
04:36but I'm just going to leave it on the default
04:38for my CS5, which is Flash Player 10 and ActionScript 3.
04:43Now we're not going to dig too much.
04:45We're not going to dig at all
04:46into the image and sound properties,
04:48which are kind of a topic
04:50that's going to break into a different content,
04:53which is not related to our programming right now,
04:55but really just in really, really quickly saying is here,
04:58we could set global configurations for files
05:02that are visual images and sounds,
05:05such as their compression quality,
05:07their audio stream format, and so on.
05:11And we're not going to dig into it.
05:13In our Swift settings,
05:14we're not going to dig into that as well right now,
05:16but as we progress and work with ActionScript,
05:20we will start playing around
05:21and tinkering with these things.
05:24These relate to do we want to compress the movie?
05:26Yeah, we always want to compress it.
05:27Do we want to include hidden layers?
05:29We definitely do.
05:30And you want to work with your defaults.
05:35And what we want, all I'm really requesting
05:37is we're not going to dig
05:38into all these different options here right now,
05:41but what you want to do is make sure
05:43that your current profile is the default.
05:47Now, if you've changed things around,
05:50as most other panels,
05:51you would probably have a way to,
05:53if you want to change,
05:54you want to change your default.
05:56So let's see if we change things around.
05:58If I change it, change all of that.
06:01And now my default isn't really the default, right?
06:07We don't want to create a new profile.
06:09If we'd like the way we set it here,
06:10then we could create a new profile,
06:11but we don't really want to create a new profile.
06:16We want to duplicate, not really.
06:18Do we want to add a profile name?
06:21Nope.
06:22But if I click on OK now,
06:24and then I go back into my Properties, Publish Settings,
06:26we're going to see we're still in default,
06:28but our default properties
06:29are not really configured correctly.
06:33And I don't know why there isn't a button here,
06:35but you would think
06:36that there would be a button to reset back,
06:38which maybe it's just me, but where is it?
06:42How do we go back to default again?
06:44Well, let's then, let's just revert back.
06:48So what I've done is I deselected these three babies.
06:52So what you want to make sure is when you're running
06:54your flash, just really run down, flash pair nine or up,
06:57you're running action script three.
06:59We don't really care about anything here,
07:01but you want to make sure that our Swift setting
07:02is all the three first items, compress, move,
07:05include hidden layers, include XMP metadata.
07:08If you don't have it, then don't select it,
07:10but if it's there, select it.
07:12In your advanced settings,
07:14you want to make sure that nothing is selected.
07:16Okay.
07:17So that is basically our publish settings,
07:19which all these configurations are going to enable us
07:22to generate our applications and create specifications
07:27if we want it to run for different players,
07:29such as flashlight or the iPhone if we're running on CS5.
07:33Although it seems like from reading the blogs
07:37is that it's not really going to be useful for us,
07:40unfortunately, because Apple doesn't want us to use it.
07:46And the last touch up, last item I want to talk about
07:50is as we saw inside of, I'm just going to cancel this out.
07:53Well, I'm going to click okay, because we changed it earlier.
07:55If we go on into our properties again,
07:59we're going to see our class,
08:00which we said is going to be our next topic.
08:02This is where our programming life begins.
08:06If you want to find your class definition,
08:08you could always click on action script settings, right?
08:12But or you could go into your file, publish settings,
08:15make sure you're in flash.
08:17And then when you're next to your action script setting,
08:19you're just going to click on action script settings,
08:22which will take you to that same document class.
08:24And we're not going to, again, go into all these details.
08:28Only thing we want to make sure is that we have our defaults
08:31all set to work the same way.
08:33So as we're working, we'll get the same type of errors.
08:36So we want to make sure that we're in strict mode
08:38and warning mode and automatically declare stage instances.
08:42Just let's leave everything the default way
08:45as flash has it configured.

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!