navigate site menu

Start learning with our library of video tutorials taught by experts. Get started

Creating a First Web Site with Flash Professional CS5

Creating a First Web Site with Flash Professional CS5

with Paul Trani

 


Creating a First Web Site with Flash Professional CS5 shows how to make a fully functional, dynamic web site in Flash Professional CS5. This course covers the fundamentals of creating and importing content, adding smooth 2D and 3D transitions, and adding button functionality that goes beyond links. This course will also show how to integrate and control video and audio as well as how to implement a gallery and a contact form. Exercise files are included with the course.
Topics include:
  • Understanding web design
  • Creating buttons and web graphics in Photoshop
  • Formatting text with the Text Layout Framework
  • Using the Timeline
  • Creating a custom looping animation
  • Loading images in a gallery
  • Creating invisible buttons
  • Adding music and video to a site
  • Customizing video playback controls
  • Optimizing and publishing a web site

show more

author
Paul Trani
subject
Web, Interaction Design, Projects
software
Flash Professional CS5, CS5.5, Illustrator CS5
level
Beginner
duration
2h 45m
released
Jul 27, 2010

Share this course

Ready to join? get started


Keep up with news, tips, and latest courses.

submit Course details submit clicked more info

Please wait...

Search the closed captioning text for this course by entering the keyword you’d like to search, or browse the closed captioning text by selecting the chapter name below and choosing the video title you’d like to review.



Introduction
Welcome
00:04I'm Paul Trani and welcome to Creating a First Web Site with Flash Professional CS5.
00:09I'm going to show you how to create a web site from the ground up.
00:13We'll take a look at the fundamentals of web design and how to apply them to
00:17a real-world project.
00:19We'll start with a dynamic design and add some eye-catching animation.
00:24I'll then show you how easy it is to add interactivity, as well as a gallery
00:28that can dynamically load in as many images as you want.
00:32I'll also demonstrate how to incorporate video with custom controls.
00:37That's actually synched with other graphics.
00:40And to round out the experience, we'll add audio.
00:42I'm going to show you how to do all of this and much more using Flash CS5, which
00:49really makes it easier than ever to create great content.
00:52So let's roll up our sleeves and get started in creating your first web site
00:56with Flash Professional CS5.
Collapse this transcript
Using the exercise files
00:00If you have access to the Exercise Files for this course, you can put them on
00:04your Desktop as I have done here.
00:06I'm going to go ahead and double-click on that file and you'll notice that it
00:09will contain chapter folders for each chapter, and notice they contain Begin and
00:16then Final folders as well.
00:18Also notice that there is an Assets folder and Final folder, which contains
00:23the final web site.
00:25Now, if you don't have access to these files, you can also follow along with
00:29your own files as we proceed through this course.
Collapse this transcript
1. Getting Started
Understanding web design
00:00I'd like to start off by giving you good overview of web design.
00:04So web design at a high level is the design of online content, regardless of
00:09what that content is.
00:11In this case it happens to be a web site.
00:13And a web site should really do a couple of things.
00:16It should achieve your specific business goals and it should be well
00:20organized and easy to use.
00:22So just keep in mind the user has goals as well.
00:25When it comes to your web site goals, you need to of course figure that out.
00:29Is it to inform or kind of tell about yourself or your services?
00:34Is it to sell something?
00:35Is it to connect with potential clients?
00:37It could be all of those things, but clearly define what those goals are and
00:42then any decisions you make should be made based on those goals.
00:45The result ultimately is going to be the content for your web site.
00:49So in this example I might have Jill Simons who is interested ultimately in
00:55gaining more clients.
00:57So she might start selling herself, talking about her education, her
01:01experience, show off some of her work, and of course give users the ability to
01:07get in touch with her.
01:08So the next step is keeping in mind the users' goals, because they want it to be
01:13easy and intuitive. A simple to navigate site, which has clearly to use
01:18navigation, everything is really buttoned up, and they want it to be easy, with
01:23minimal clicks to get at their next destination.
01:26So result is going to be all of the web content in a site map form.
01:31So back to our example, we might have, again, the URL, people come through to
01:36the homepage and from the homepage or from any page for that matter, they can
01:41get to any other page, and there might be some other external links as well, but
01:46again, simplicity is the key here.
01:48Some additional design considerations.
01:51You do want to clear hierarchy of information.
01:53You want the title potentially at the top or at least larger than everything else.
01:58You don't want information fighting with one another, but a clear flow of
02:02information is really important.
02:04Next, you definitely want your navigation grouped logically and in a really
02:08clean sort of easy to use way.
02:10And then also, if you have any hyperlinks, you want to clearly differentiate
02:14those from the content or the text itself.
02:17The result is really going to be the web design.
02:19So here's the design.
02:21As you can see, it has a hierarchy of information.
02:23I know this is Jill's site. She is a graphic designer.
02:26I can read more about her.
02:28My navigation is nested at the top, really easy to use.
02:31And then also, I can clearly see that the content is off in the center point,
02:35where we have other content up at the top as well, which happens to be our buttons.
02:40So everything flows pretty nicely.
02:42So there are also some technical considerations you need to keep in mind as well.
02:46Well, quite frankly, can everybody find the web site?
02:48So the first thing you need to do is really register a URL and make sure you
02:52have a web site hosting plan potentially for your web site, and once the site is
02:57uploaded at this URL, you need to make sure that everyone can see this content.
03:03So do they have maybe a newer browser with the Flash Player?
03:07Luckily, so many people have the Flash Player this is hardly an issue, but
03:10it's definitely of note. All right!
03:13So once they arrive at your site, you need to determine and make sure your
03:16content fits nicely on that page.
03:20So we want to go ahead and take the browser and subtract all the chrome from it
03:25and what we get is sort of a canvas size or a document size, if you will, of
03:311000 pixels wide by about 600 pixels high.
03:35So within those dimensions, I can go ahead and make sure my design fits nice and
03:40neat, and it will be ready to go.
03:43To conclude, you want to keep in mind all of your business goals and your users'
03:47goals, as far as what they're trying to do, and of course your technical
03:51requirements as well.
03:53Do all that and your site should be good to go.
Collapse this transcript
Creating the first Flash file
00:00The first thing I am going to do is I am going to create a new file.
00:03And it's pretty straightforward.
00:05I am given the Start menu here.
00:07I do want to point out that you can create files from templates.
00:10So these are pre-built files that are actually pretty powerful.
00:14But again, what I want to do is create a new file, and I am going to
00:17select ActionScript 3.0.
00:18So here is my new file. As you can see,
00:21I can see the properties for it off to the side.
00:24I can see my toolbar over on this side as well.
00:27I am not crazy about this workspace, so I can change it.
00:31I am going to go to Window, down to the bottom, Workspace, and I am going to go
00:36ahead and select Classic.
00:38So Classic actually gives me my toolbar on this side.
00:41It gives me the Timeline at the top, some additional icons right here, and
00:46again, I can sort of click on any one of these to expand it out.
00:49But what I want to do is I just want to sort of open up a couple of panels that
00:52I know are important.
00:53Such as the Properties panel and the Library panel.
00:57So I really want to sort of put these sort of on top of each other.
01:00So I am just going to go ahead and drop this one, sort of nest it right down
01:04here underneath the Properties panel.
01:07Because I know I am going to be using the Library a lot, where I am going
01:09to store a lot of graphics, and I am going to be modifying those graphics'
01:13properties as well.
01:15And of course everything is going to exist on the Timeline.
01:18So again, these are the important panels I want to be aware of and again they
01:22allow me to do certain things.
01:23In this case, for this document, with it selected, I can go ahead and Edit the Size.
01:29So again, the sort of first step is just modifying the document size to
01:34something more appropriate for a web.
01:371000 pixels wide by about 600 pixels tall will ensure that it fits in a browser nicely.
01:44Click OK and there I am.
01:46So all the Adobe shortcut keys work just fine in Flash.
01:52So if I hold on the Spacebar, I can pan around like that.
01:55I can hold down the Command and do a Plus or Minus, or Ctrl key if you are on a PC.
02:01But you can see I can start to manipulate this area here.
02:04I can also use this tool here, Fit in Window.
02:07But in general, I am actually ready to design.
02:10I can go ahead and start designing.
02:11But what I definitely want to do for sure is make sure my file is saved.
02:16So I am going to File > Save.
02:18I am going to save out this FLA file.
02:20This is my working file, so I don't want to throw this file away for sure, but
02:24any file I create is going to be based on this working file.
02:28So I will click Save and now I am ready to go.
02:30I can start designing in Flash.
Collapse this transcript
2. Creating Graphics and Text
Creating the first graphic
00:00The first thing I am going to create is a horizontal bar that will be my navbar,
00:05as well as a quick graphic that will eventually be a button.
00:08So I am going to come down here in my toolbar and I am going to select
00:12this Rectangle tool.
00:13And from there what I can also do is start to select maybe a stroke color, such
00:20as black and then even a fill color as red.
00:25And then I can go ahead and draw sort of this navbar, and I will just roughly
00:29draw it in up here at the top.
00:31So that's what I have drawn and I then want to go ahead and select the
00:35Selection tool, and I can go ahead and click on this fill area.
00:40And this is a common mistake.
00:41You will click and just grab the fill and not the stroke.
00:44So I will just an Undo.
00:46So you might want to double- click in order to capture both.
00:50So with both selected, I can now move them around. Okay.
00:54One thing I can do, because I want this to be actually a smaller size, well,
00:58I can go ahead and use the Free Transform tool, third tool down, and I can adjust
01:03it by any one of these nodes and sort of shrink it up like that.
01:07If you want to get more exact, what you are going to want to do is open up the
01:11Properties panel, and from there you can determine its exact size and position.
01:16So again, I want this to be in the upper left-hand corner so I will just type in 0, 0.
01:22And for the width, I actually just want it to be 1000 pixels wide and about 35 pixels high.
01:29That's more like it.
01:30And next up, I want to go ahead and change my fill and stroke.
01:34So regardless of what you started with, you can always sort of remove the
01:39stroke, if you want, by again clicking this button right here and then I can
01:43go ahead and select black for the fill color. So far, so good.
01:46There is my graphic.
01:48And what I have done is I have actually drawn it on this layer, layer 1.
01:51So I probably want to rename this to navbar, just like that.
01:56I am going to create another graphic really fast and I am going to put it on a
02:00new layer, so I am going to click this New Layer icon, and from there I can go
02:05ahead and type in button.
02:07Just right here, I am going to just create this quick button graphic.
02:10So I am going to use the Rectangle tool again and I am going to go ahead and
02:13select medium to dark gray.
02:17And I am going to draw it sort of at the same height.
02:19And notice actually Flash will snap sort of into view.
02:23It will snap to other graphics, so I can see that this button actually snaps to
02:27the height of that navbar.
02:29So again, I can select the Selection tool and my graphic and I can check out its size.
02:36So again, it's 35 pixels high, and I can go ahead and make it about 100 pixels wide.
02:41But overall that looks pretty good and I just want to be aware always of what
02:45layer I am on when I am drawing.
02:47But again, those are just two quick graphics and now I am sort of set up to
02:50take this to the next step and turn this into symbols.
Collapse this transcript
Creating a symbol
00:00At the backbone of Flash are symbols, which are basically graphic stored in the
00:05Library that can be reused over and over.
00:07But it really goes beyond that, because symbols can be animated and have
00:11interactivity associated with them, just to name a few things.
00:15That's what I want to do with this navbar right here.
00:18As you can see, I have it selected, and in order to convert it to a symbol, all
00:24I really need to do is click and drag it into the Library.
00:28As soon as I let go, it gives me the opportunity to convert it to a symbol.
00:32From there, I can just call this navbar.
00:36I am just going to really make a movie Clip symbol right now, so I am going to
00:39select a movie clip, keep my registration point where it is, select OK.
00:43So now as I take a look at this graphic in my Properties panel, you can see that
00:50it's an instance of the navbar.
00:51So you can have many instances.
00:54In fact, that's what I want to do right now is drag out another instance of that navbar.
01:00In fact, what I can do is I can sort of move it down the page.
01:04So I am going to just sort of zoom out, Command+Minus or Ctrl+Minus if you are
01:09on a PC, and I can nest it right down there. Okay.
01:13So with it selected, I want this to be sort of more of a footer.
01:17Well, I can select it. I can use the Free Transform tool, kind of scrunch it up
01:22a little bit more, and then sort of use my Selection tool and snap it into place down there.
01:28But just because these are from the same symbol called navbar doesn't mean he
01:33has to look exactly the same.
01:35Because in my Properties panel, I'm given all of these other options.
01:39So I can change, for instance, the color effect.
01:42I can change this to alpha.
01:44This is a common way to make something transparent is by adjusting the alpha.
01:48You could even tint it as well.
01:50So I can go ahead and tint this red.
01:53As you can see, it is red, and I can crank that all the way up like that.
01:57Or I can even go to Advanced.
01:59That's what I want to do.
02:00I want to go to Advanced, because I want to tint this red, but I want it to
02:04be about 50% Opaque.
02:07So now I can see that even though it's a different size and a different color,
02:11it's still part of that same navbar.
02:14This is going to make my file size pretty small, because I have two sort of
02:18unique graphics all based on this one file, and all Flash does is store in this one file.
02:24So I can go on down the line, I can add some blending modes, I can add some
02:27various filters, if I want to add a drop shadow, whatever the case may be.
02:31It's all done, but again, this has to be a symbol or at least an instance of a
02:35symbol in order for me to do that.
02:37So really, symbols are going to be really flexible for you, and I just encourage
02:40you to get in the habit of making everything a symbol.
Collapse this transcript
Creating buttons
00:00Buttons are the foundation of most interactivity and Flash makes them easy to create.
00:05That's what I want to do here.
00:06I am going to scroll up to the top and right here, you notice here is my graphic,
00:10and I am just going to go ahead and take this rectangle, and I am going to drag
00:14it to the Library, because that enables me to convert it to a symbol.
00:19And in this case, I am going to call it generic button.
00:24And then I am going to make sure that it's of type Button as well.
00:27Click OK and now you can see it in my Library panel there is my generic button.
00:33In fact, I can start to drag on sort of multiple buttons on to the Stage.
00:38I am going to have a home section, about, portfolio, and then a contact.
00:43So I'll just scroll over because I want to put one more over here off to the
00:47side and this is going to be my Twitter button.
00:51So I am going to use my Free Transform tool, and I am just going to hit Q
00:55because here it gives me this hint that says hey,
00:57hit Q, and you can go ahead and change that to the Free Transform tool and
01:01adjust it like that.
01:03So again here is all of my buttons. So far so good, but now that I've created them,
01:09what's unique about buttons?
01:10How do I modify them?
01:12Well, I can take sort of any one of these instances and I can double-click on it.
01:17Notice now I am inside of this generic button, okay.
01:21In fact, I'll even zoom in closer on that.
01:24So here is my generic button, and in my Timeline panel it gives me this Up state,
01:30so these are the default states.
01:32Again, since this is a button it also gives me this Over state.
01:36So I can do a right-click and insert a keyframe.
01:39Okay, in this second keyframe for the color of this rectangle I can change it to
01:46red using my Properties panel.
01:47I am going to do the same thing for the Down state.
01:50I am going to insert a keyframe.
01:51So when the user clicks as they press down on their mouse, well, I want to
01:56change it to white, just like that.
01:59And then there is also the Hit state so I am going to insert a keyframe for that Hit state.
02:04You know what I can do again is hit Q, hit that Q key, and I can start to
02:08stretch this out because what this Hit frame is is this actually gives me the
02:14active area for this button.
02:16So if the user gets close to this button it's going to highlight.
02:20Okay, so this is going to be the sort of active area.
02:22All right, with this all set up it seems to look pretty good.
02:26Well, my next step is to test this out.
02:29So, remember I am inside of generic button.
02:31Well, I can go back to Scene 1, so this is my sort of main document.
02:36What I want to do now is I want to go ahead and test this out.
02:39So I am going to go to Control > Text Movie. Go down to Test.
02:44Now I can take a look at these buttons.
02:46Remember, I dropped on a total of 5, and you can see them light up accordingly.
02:51Everything looks good and again this is my Over state.
02:54If I click down, you can see it turn white.
02:57And then remember that hit area is larger so even as I get close to that button,
03:01it highlights, and that's the same for all of them because all of these are just
03:05instances of that one button.
03:07So it looks pretty darn good, but it wouldn't be very helpful in navigation if
03:11it didn't have any labels.
03:12So let's go ahead and add some text labels to this.
03:16How I am going to do that is I am going to add another layer.
03:19So in my Timeline panel I am going to click New Layer, and I am just going to
03:22call this button text, just like that, and I am going to select my Text tool.
03:29So from there I am going to go to my Properties panel just like I have been
03:32doing. I'll come in here and set this up.
03:37So I do want to make sure this is set to Classic Text.
03:40I don't need this heavier sort of framework of text.
03:43I just want this to be a simple label, so I'll make sure this is set to Classic Text.
03:47I am going to make sure it's of the font family Arial, and I will make sure
03:52it's bold, and then the size is going to be about 12 point.
03:56So that's what's set up.
03:58It's going to be white text to make sure it stands out, and then I can just
04:01click on the Stage and start typing in Home.
04:05All right, also note that this does say Static Text, so make sure your settings
04:10are all set up like this and it's going to work out just fine for you.
04:14All right, so there is my Home label.
04:15I'll select the Selection tool, kind of position that down here, and what I can
04:19do is - this is a nice little trick - I can hold down the Option+Shift on a Mac,
04:26and that duplicates it. Alt+Shift on Windows.
04:30But as you can see it will duplicate that item and move it off to the side,
04:34therefore I can rename this to About.
04:37So that's just a quick way using my Selection tool to sort of duplicate items.
04:43Again, hold down Option+Shift on Mac, Alt+Shift on PC, and you are good to go.
04:48So, I'll just do this a couple of times.
04:54And then we have Contact, just like that.
04:58All right, remember right over here I have this other button, so let's just
05:07scroll down because right here I am going to have "follow me on Twitter."
05:15So this is going to be sort of an external link, but note that it is set up just like that.
05:20In fact, let's go ahead and fit this all in Window, and you can se all of my buttons.
05:25So it's going to zoom in on this.
05:27I am not start to sort of adjust this a little more appropriately because these
05:31are just like way off, but I can easily just click and drag these over.
05:35Hold down the Shift key to constrain it horizontally in this case.
05:39I am going to nudge these over a touch, so I am going to just hit the right
05:43arrow on my keyboard, select these two, hit the right arrow, and I start to get
05:47that sort of little divider line. It really starts to make this look good.
05:51And now I can position these into place.
05:53It's kind of like that.
05:54And again the power of this is the fact that this text is outside of the button.
06:01If this text was baked into the button, in here if you will, as I double-click I
06:07would only be able to use it once for the Contact section.
06:10But since it's a generic button I can reuse it many, many times.
06:14It makes it easy, makes my file size smaller and simpler to update so I'll click
06:19back on Scene 1, and there is my Nav.
06:21We'll do one final test and everything looks appropriate. It's perfect.
06:27Now really the next steps would be starting to set this up to add some
06:30interactivity to it.
06:32But again, using and making generic buttons is a very effective way of
06:36making navigation.
Collapse this transcript
3. Importing Graphics
Importing an image
00:00You will eventually find yourself wanting to import imagery rather than created in Flash.
00:05And that's what I want to do now is I want to import a nice cloud image and that's
00:10going to go in the background.
00:12So the first thing I need to do is create a new layer.
00:14So in my Timeline panel, I'll click New Layer and I'll just call this clouds.
00:20Now I do want this to be in the background, so I'm going to just click and drag
00:23this layer to the bottom, and that it will appear behind everything else.
00:27Now with that layer selected, I can go ahead and go to File > Import and import
00:33it directly to the Stage.
00:34Now before I select my file it happens to be this cloud's JPEG file which is
00:39already kind of a crunched down if you will.
00:41Notice that if I had just to open up this dropdown list, you can see all the
00:45various file types that you can import.
00:48And these are sort of the most popular audio, video, and imagery formats, and
00:54Flash can take them all.
00:56In this case, again it just happens to be JPEG.
00:58I'll click Open, and here's my graphic.
01:02Notice it is pretty long because eventually I will be animating it, kind of
01:06moving across sort of in the background, but for now all I'm going to do is
01:10just kind of nest it right there in the upper left-hand corner.
01:13Now, once you start importing imagery, you'll notice that you might want to edit
01:17it as well and you'll probably want to edit it in Photoshop.
01:22So if I right-click on this file, notice how I can go ahead and edit it
01:26with Photoshop CS5.
01:29It automatically opens Photoshop and displays that graphic.
01:32Now what I can do is just sort of do a quick adjustment.
01:35I'm going to go to Image > Adjustments and just adjust the HDR Toning, which
01:39happens to be a Photoshop CS5 feature, and notice the default is already making
01:44it look really good.
01:46And again, if I turn that on and off, you can kind of see what I'm getting.
01:49Or I can go down to Photorealistic high contrast, and that's looking pretty good as well.
01:55But so far, I like the default.
01:57I like the high contrast.
01:58Either one. I'll go with high contrast, click OK and save this file.
02:03But in general, you can make any edits you want to make, save your file, close
02:07it out, go back into Flash, and you can see it just added all that depth to this image.
02:13But again as you notice, you can import any file you want, put it where you want to,
02:17just be mindful of the layer that you're on, and also know that it'll appear
02:21in your Library panel.
Collapse this transcript
Importing Photoshop files
00:00Flash can import all popular image formats, including Photoshop files, while
00:05maintaining layers and editability and it really is going to save a ton of
00:09time when I bring this into Flash.
00:12But notice that I can do all of my design work in Photoshop, such as how I have
00:16this homepage set up, then import this file.
00:19But let's take a look at it because in this home folder for instance.
00:23This just happens to be the content for this page.
00:27Notice it consists of just a text layer and then this panel there.
00:30Same thing for the home background.
00:32It just has some text in there, as well as the background, so the goal is to
00:36bring this information in and keep this text as editable.
00:41And of course I'll maintain all the layers.
00:43So that's my Home page.
00:45I also want to import the About page.
00:47You can see that it also maintains sort of a layer in here in the about folder.
00:52Let's take a look at the Portfolio page.
00:55It just has some text right up here, and then the Contact page.
00:59So this is probably the most complex of all of them because it does have this
01:04contact form, which in general is just a bunch of text layers.
01:08Okay, so I want to bring all of the stuff in as editable.
01:11But that's how everything is set up, and I'm going to start off with the Home
01:14page and notice that I also have that Jill logo.
01:18So, all I need to do is to save this file.
01:20I'm not doing anything tricky with it, just saving it out, and then I can jump into Flash.
01:26So here I am.
01:26I'm going to go to File > Import > Import to Stage, just like it's any other
01:31graphic, and I can locate sectionHome.
01:35Click Open and now I can define how to import these files.
01:40Starting with this sort of a logo file layer right here.
01:43So I'm going to go ahead and make this a movie clip because with it selected,
01:48I can convert it to a movie clip, in case I want to animate it or add in our
01:52activity to it or anything else like that.
01:54The next folder is this Nav folder.
01:57Well, if you notice, I already have a navigation there, so let's not worry about that.
02:01It's going to that home folder, and the first thing I want to do is I actually
02:04want this to be a movie clip as well.
02:07So I'm going to control this sort of as one unit.
02:09This is my home content.
02:11And inside of this movie clip, these layers are going to exist.
02:15And I'm going to make sure any time I see some text, I am going to make sure
02:19it's editable, just like that, and I'll leave the graphics as is.
02:24So again, it's just a matter of sort of finding most of those text layers and
02:28making sure they are editable, and making sure the folders or movie clips as well,
02:34so I can just control them as one object.
02:37And I'm not going to include that white background.
02:40And I'll click OK and it will import everything accordingly.
02:44Looks great, positions, everything exactly where it should be.
02:48And if I take a look, say for instance, at the layers, you can see that they are
02:54all stacked right in here.
02:56All right, so first thing you'll notice is maybe some of this text.
03:00So again, since this text is editable I can change this, so I'll just
03:04double-click on this movie clip, and now I'm inside of home background.
03:08And from there, I can just select that text and since it's editable, I can
03:13change the color to white, just like that.
03:16Click back on Scene 1 and then there I am.
03:19So everything looks good. Also note in my Library panel, I can see it makes
03:24this folder and organizes everything accordingly in here, very nice, very handy,
03:29and what I can do next is start to kind of clean up my Timeline because
03:33as you start to import these Photoshop files, your Timeline is going to get pretty lengthy.
03:38So what I'd like to do is create a new folder and I'm just going to call this
03:43folder nav and all of my nav items are going to go in there.
03:47We're going to go throw the logo in there.
03:48We're going to put the button layer, the button text and the nav bar, all in that nav folder.
03:55Okay, so I've put them on here and we'll just go ahead and twirl that back up,
04:00and now it's much more neat.
04:02And this now is going to be my information that's sort of consistent from page-to-page.
04:07All right, with all of that set up, I can now move on to go to File > Import,
04:12and I can import the next file, which is going to be the sectionAbout.psd.
04:17Again, it's the same process, determining what you want to import. In this case,
04:22just these two folders.
04:24I'm going to make sure these folders are always movie clips, the text is always
04:29editable, and I'll be good to go.
04:34So with that done, I will go ahead and click OK.
04:39It brings in that information.
04:41All right, so I have two sections in here now and it's getting kind of hard to read.
04:46Well you can always just turn off the layers you don't want to see to sort of
04:51isolate what you do want to see and then change it accordingly.
04:55Because again notice how I brought this in as editable text. Sure enough, it's editable.
05:00That's the About section.
05:01I'll just hold down the Shift key to select both of those layers and then I'll
05:05move that down, just like that.
05:07All right, two sections down, two more to go.
05:11And again, it's nice that I'm sort of building a whole web site just by doing
05:15some imports right here and defining what I want to import.
05:19So again, the same process, defining these folders as movie clips, making sure
05:26everything looks good in these what soon would be movie clips, and that your
05:31text is editable, just like that. All right, there we are.
05:34And each time you do an import, it does add those layers at the top.
05:38Well, you can always of course fix that by dragging them down into the position
05:42you want them and in editing what you need to edit.
05:46So I'll select that text there and change that color to white,. Again the same process.
05:52Go back to Scene 1.
05:53So there is my Portfolio page and notice in my Library panel you can see those
05:58folders start to stack up.
05:59I'll go to File > Import > Import to Stage, and there's the last one I need to
06:05do is this Contact.psd, and click Open.
06:12These two folders has movie clips, and again this is the one that has lots of
06:21editable text, because it has that contact form.
06:26And again it's important for me to keep this as editable because some of these
06:30fields are actually going to be input text fields that the user controls.
06:35But again, I made it in Photoshop and it's set up and positioned just perfect.
06:41Again, my Contact background, I can select that text layer and click OK.
06:48All right, again, that was the most complex one.
06:51I'll turn off that Portfolio layer, I'll just Shift+Select those two and drag
06:56them down, and now you can see my Contact section.
07:00So again, I'll just jump in here really fast and change this text to white, so
07:06this stands out more.
07:07So you're able to use Photoshop to do all your design work and then import that
07:12content seamlessly into Flash for further development.
Collapse this transcript
Formatting text using the Text Layout Framework
00:00TLF Text gives you more flexibility when using text in Flash.
00:04And that's why I'm going to use it over what is now known as Classic Text.
00:08So the first thing I'm going to do is expand out the Timeline panel and I'm
00:14going to turn off all those other content layers.
00:16And just turn on this about content layer and the about bkgd because I want to
00:21focus on the text in here.
00:23As you can see, there is this large chunk of body copy.
00:27That's actually inside of the about movie clip.
00:30I'll just double-click it.
00:31Now, I'm inside of this about movie clip, and I can hold down the Spacebar and
00:35kind of reposition my Stage.
00:38And really this is a lot of text.
00:40And quite frankly I want to do a couple of things.
00:44I want to lay it out better and I also want to in particular I want to take this
00:49and just to sort of put in a link right here.
00:51Link out to this school.
00:53And I can do that quite easily just by highlighting it.
00:56And notice as I go over to my Properties panel, I'm using TLF Text already,
01:02because I've imported this text from Photoshop as editable.
01:06So TLF Text is selected.
01:09Notice how I can make it Read Only or Selectable or Editable.
01:13This is just going to be a Read Only.
01:15Again, the user doesn't need to really select it, so I'll just change that to Read Only.
01:20And then I'm given all of these various options on my text right in here.
01:25So plenty of options for Character and even Advanced Character attributes I can edit.
01:31So again for this, I'm going to go ahead and link out to www.risd.edu just like that.
01:42Hit Enter.
01:43And notice how it turns it blue and then gives it an underline so it clearly
01:47differentiates it from the rest of the contents.
01:51The target it is going to be blank because I want to open up in a new window.
01:55And I encourage you to, kind of peruse the other options in here.
01:57There is a lot it can do, but what I want to focus on next is the flow of this
02:03content because I want to sort of stretch out this text box.
02:07And I'll do that just by grabbing that left edge, stretching it out, and let's
02:11just grab the button and kind of scrunch it up like that and kind of adjust this
02:16accordingly so it's fits sort of over the TV.
02:19And in general, I would never really have text this long.
02:23From a design perspective, it's too long of lines is what it creates.
02:28I'd love to make this two columns.
02:30And that's what I want to do.
02:31So over here under Container And Flow, so let me just twirl those all up.
02:37Container And Flow gives me the ability to change the columns.
02:40So I'll change this to 2 columns, and you can see it changed to two columns.
02:44And I can just grab that border, kind of scrunch it up like that, and make sure
02:49this flows a little better kind of like that.
02:52All right, so the next thing I want to do is I want this content to sort of
02:55reflow. Again it's all trapped in this box.
02:58I want it to reflow into another text box beneath it.
03:02So I'll just click this plus sign and when I do that it loads all of that text
03:06into my cursor if you will.
03:08And then I can click and drag to make a new text box just like that.
03:13So now this content flows one into the next.
03:17So if I decide for instance to get rid of a paragraph, I can do that and all the
03:23text reflows accordingly.
03:24So it makes it real easy to work with, especially sort of large body text as well.
03:30So I'm going to select my Selection tool sort of move this up and just do some fine-tuning.
03:34In general that's looks pretty darn good like that.
03:37So with this set you can easily see that it really gives you flexibility to lay
03:42out you text easier, and it gives you that fine-tuning that you need when it
03:46comes to text in Flash.
Collapse this transcript
4. Adding Transitions
Using the Timeline
00:00The Timeline will not only be where all of the animation takes place, but where
00:05you can also build out the sections for your web site.
00:09So if I expand out my Timeline just by grabbing that line, I can see all of
00:14my content in here.
00:16And currently all of my content exists in this first frame.
00:19So I'm going to space out everything, and I really want to space everything
00:25out to about 50 frames.
00:28So as you can see, I can select the various frames and what I want to do is I
00:33want to extend out, say for instance, the Clouds layer here.
00:38So I can right-click and all I need to do is Insert Frame.
00:42That extends out the timeline.
00:45So let me click on this number 1 and if I hit Enter, you can see that it'll play
00:50through my Timeline now.
00:52And it just shows my content for that very first frame since it only exists
00:57in that first frame.
00:58So if want to extend out everything what I can do is just do click and drag to
01:04select all of these frames.
01:07Now, I can do a right-click and Insert Frame.
01:12Now everything has been extended out to this 50th frame.
01:17Now, I can start spacing out my content because as you can see it's all one
01:22on top of the next.
01:23So I'm going to go ahead and just select these 2 keyframes and again I can just
01:28click and drag to select these 2 keyframes.
01:32And then space out the Home section.
01:35So it's about at Frame 10.
01:38Notice that this shows me what frame I'm on and it says 10.
01:41All right, the about section again I'll just click and drag to select those 2
01:45keyframes. Put that at about Frame 20.
01:49Portfolio section, you can drag, bring that out to about 30 like that.
01:55And then the Contact section, and its background out to about Frame 40.
02:01There we are so I'll click back on Frame 1.
02:03I'll hit Enter and you see actually what's happening all my content does appear,
02:09but it starts stacking one on top of the next.
02:12So you run in to this case where you want the content to not exist beyond a certain point.
02:17Say for instance, this home background. I actually want to make it not exist so
02:22it just shows this about contents.
02:25Okay, so let's just scroll this up.
02:28So all I need to do there instead of sort of turning them off, what I can do is
02:32do a right-click and I can go ahead and insert a blank keyframe.
02:40So currently this is a keyframe.
02:42It's actually filled with content. That's why it's a black dot, but if I want to
02:46insert a blank keyframe, what that does is it removes all of the content at
02:50that point in time.
02:51So now we have that empty dot right there.
02:54So now the content doesn't exist beyond that point.
02:57So again right-click, Insert Blank Keyframe, and that starts to look a lot better.
03:03So Home section, there is my About section.
03:06So I want to do this of course for my other sections as well.
03:12Again, if I don't want content to exist beyond a certain point, just insert a blank keyframe.
03:17And again you can select multiple keyframes just like that.
03:22And Insert Blank Keyframe like that, and that's how we set up a web site.
03:28So that works pretty well. In fact if I hit Enter you can see all of my content
03:31appear accordingly.
03:33So now with all my section set up, the next step is really going to adding some
03:38transitions to this Timeline.
Collapse this transcript
Adding preset animation
00:00Flash makes it easy to add animation to any project and that's what I want to
00:05do with each section here.
00:07I want to actually animate in the background in a cool way and I'm going to use
00:11motion presets to do this.
00:13But the first thing I'm going to do is I'm just going to go ahead and turn
00:16off, basically hide the content for each section because I just don't want it to get in the way.
00:22I'll just kind of turn those off really fast, just to get this set up.
00:26I'll go back to this home bkgd layer here, and I'm going to go
00:32ahead and change my view, let's say to about 50%.
00:37Again, I want this to kind of slide on or animate in, in some cool way.
00:42And again, I'm going to do that using motion presets.
00:44So I'm going to go to Window, down to Motion Presets.
00:50That opens up this Motion Presets panel, and I'll just nest if off to the side,
00:54so it's sort of out of the way.
00:57And I'm actually given this Default Presets folder.
01:01So if I open that up, you can see all of these really cool animation you can use.
01:05So I'm just going to arrow key down and check out some of these. So there are
01:10some fly-ins with a blur, there are some fly-ins without a blur, and there is
01:15all sorts of cool presets in here.
01:18There's a pulse, even smoke, definitely pretty nice, even if you want it to
01:23have something twirl in, in a 3D way.
01:26So I encourage you to kind of check out all of these presets.
01:29They are definitely pretty cool.
01:30But I don't really want to overdo it with this.
01:32I just want to have this fly in from the right.
01:36So, with that background selected, I'm then going to select to my preset and
01:41then I'm going to click this Apply button, and it adds that motion tween.
01:47Here's my motion path right here that you can see on my Stage and notice how it
01:52gives me this motion tween up here as well, okay.
01:55So I want to go ahead and adjust the time, because as you can see it actually
02:00adds this animation, but it spills over into the other sections.
02:04So I'm just going to click and drag on that second keyframe to shorten it up,
02:10so that only exists within this amount of time.
02:13All right, so it's not really positioned correctly either, so I'm going to go about Frame 19.
02:19This is sort of its resting location.
02:21And what I can do is I can select this motion path, and I can move the
02:26entire motion path.
02:27So I can move that whole animation over, so it does rest into place exactly
02:33where I want it to be.
02:34So again I'll click on Frame 10 and I can just kind of scrub through, but you
02:38can see that it slides in.
02:41Now, I can also edit this motion path.
02:44So I'm just going to click on the background, just to deselect it, and what I can
02:49do is I can roll over this starting point right here.
02:54This is the starting keyframe.
02:56And I can stretch it out.
02:58So now my animation is going to sort of start further out and then still end
03:03up in the same position.
03:05Much more dramatic, but that's sort of more of what I want.
03:08So I'm going to continue to do that for some of these other sections.
03:12I'm going to select this about bkgd, and I'm going to have it
03:15say come in from the bottom, and I'll click Apply.
03:19You can see it gives me this motion path, this motion tween in here.
03:24I can go ahead and grab that second keyframe and click and drag it so again it exists and
03:32it sort of happens over these 10 frames.
03:34I can also select that motion tween. It might be kind of hard to see it depending
03:38on at the layer color, but I can go ahead and move that down as well.
03:42All right, so that looks pretty good.
03:45Let's move on in the next one.
03:47Since this one is kind of more of sky theme, we have these balloons
03:50come in from the top.
03:52So again, select your move clip, then the tween, then click Apply, and you can
03:58see that it does animate.
04:00But what I need to do is of course shorten this up again like that and
04:04then move the tween.
04:06Now remember, regardless of what tween you've applied, you can always not only
04:10adjust the tween, but you can also adjust the position of the Start or End to
04:16keyframes here, so I can just go ahead and move that.
04:19So now again, it's going to be much more dramatic when it comes in.
04:23There's something else I can do as well though, because with this motion path
04:28here I can not only sort of move the position of the start keyframe, or any
04:34keyframe for that matter, but what I can do is if I click off of it, I can roll
04:39over that line using my Selection tool, I can roll over that line, and as I roll over it,
04:45it gives me that curved line.
04:47It's basically saying, hey you know what, you can curve this motion path.
04:52So again, I'm just going to click and drag, and you can see now I can bend the
04:56motion of this object.
04:58So now, it's actually going to kind of come in at a curve.
05:00So that might be kind of cool.
05:03I'll select Frame 30 and I'll just kind of scrub through, and you can see it
05:06sort of comes in at a little bit more of an angle.
05:10So again, you can do that for any motion path.
05:13All right, here's is my last one.
05:15I'm going to select that background, and I'm going to have it, coming from the left,
05:20select that tween, click Apply, and now I can see that it does give me
05:26this motion tween up here, which I need to shorten like that and then I need to
05:31make sure it's positioned accordingly.
05:34So again, use motion presets to kind of get you started and the you can sort of
05:38further manipulate it by editing the keyframes, maybe making the animation
05:42happen longer, and again by rolling over that line you can always sort of bend
05:46to that motion path as well and create something even more interesting, like
05:51bend that down like that.
05:53So definitely, it's pretty nice.
05:55I'll go to Frame 40, I'll hit Enter, and you can see that sliding like that.
06:00So, when you add these motion paths, notice my Timeline is pretty squared away,
06:06except for these frames that are kind of sticking out, out here.
06:11And personally, these kind of annoy me because no content exists beyond this point.
06:16So, I can select all of these frames here, sort of this chunk, and I can right
06:22click and what I can do is just Remove Frames. There we go.
06:27Now it's actually not going to sort-of play beyond the Frame 50.
06:30So let's just do a Control > Test Movie. I'll test it out.
06:36You'll get this message on occasion, just hit OK, and you can see all that
06:41content sort of slide in.
06:43This happens really fast.
06:45In fact, it's can kind of annoying.
06:47So, if you want to extend out animation, and that's pretty easily done as well.
06:53In fact, if I want to double the length of this animation, what I can do is I
06:57can select all these frames like that, just do a click and drag, selected
07:01all these keyframes.
07:03And now if I right click, instead of removing frames like I did before, I can do Insert Frame.
07:09Insert Frame, that stretches it out, now that animation is going to happen over
07:13the course of, you know, maybe a second.
07:17But again, I want to do this for all the sections.
07:19Just do a click and drag to select and insert a frame.
07:23So, this is a great way to sort of extend out your Timeline, Insert Frame, and
07:30just be aware that I've this nav folder.
07:33So I'm also stretching out all of this navigation here as well.
07:37So that's why I'm selection up so high, but again I'm selecting this big
07:41chunk here, Insert Frame.
07:44Now everything actually is going to have a slower pace to it and it's going to
07:49be easier to kind of see the transition.
07:51So, Control > Test Movie and test it out, and now we can see everything happens slower.
07:59And again, somehow that motion tween with that curve, and it looks
08:03actually pretty nice.
08:04I have some variety but again it all started from the motion presets that I was
08:08able to select, use, and modify to my liking.
Collapse this transcript
Creating custom looping animation
00:00Now what I want to do is I want these clouds back here to continually move
00:05across the screen regardless of which section you are in.
00:10So it's going to create this nice movement throughout the whole site.
00:15Okay, so I am going to do this by selecting this clouds background right here,
00:20and it's a pretty large image, so what I am going to do is I am going to change
00:24my view to Show All.
00:27So notice how long that image is. Well,I am going to go ahead and of course,
00:31move it across the screen, and it's going to continuously loop.
00:35The first thing I need to do is I need to make this a movie clip.
00:41So I am going to up my Library panel, and I am just going to drag this movie
00:47clip into the Library, and I am going to go ahead and make sure this is a Movie
00:53Clip and these are just going to be my clouds, just like that.
00:59So if I double-click on it, notice that I am inside of this clouds movie clip.
01:05So I can go ahead and animate it, but if I animate it on the main timeline it's
01:09only going to exist within that part of the main timeline.
01:13So what I can do is I can create an animation inside of a movie clip.
01:19So, I am going to go ahead and take this clouds movie clip, and I want this to
01:26be in a new movie clip called Clouds Animation.
01:31So I am going to go ahead and drop this into the Library as well, and I will
01:36call this Clouds Animation, just like that, select OK.
01:43Because inside of this movie clip,
01:45that's where I want to do the animation.
01:47So I am going to double-click, and now I am inside of that clouds animation.
01:53And here, remember I made this a movie clip as well.
01:57It has to be a movie clip, because I want to animate it.
02:00Okay, so with it selected, I am going to go ahead and animate these clouds.
02:06So I am going to go ahead and select Frame 50 and I am going to right-click and
02:11I am just going to Insert Frame.
02:14Because over this course of time what I want to do is add some animation.
02:18And in order to do that, all I need to do is click anywhere in here and if I do
02:24a right-click I can select Create Motion Tween.
02:29Notice how it turns to blue, and now it's basically ready to be animated.
02:34So my starting frame is right here, so I want to scroll down to about
02:38Frame 50 right down here, and in Frame 50 I can select this graphic and just
02:44move it across this Stage, so its right edge meets the right edge of the Stage like that.
02:51And notice how it creates this motion path right here.
02:55So now if I go back to Frame 1 and I hit Enter, I can see the clouds move across the screen.
03:03So remember, I am within this clouds animation.
03:06That's pretty darn cool.
03:07Quite frankly, it's going kind of fast.
03:10Okay, so I want this to be a little smoother.
03:13So what I can do is grab that 2nd keyframe and move it all the way down.
03:18I am going to move it down quite away to just go about Frame 600.
03:24Okay, so this is going to happen over the course of 25 seconds.
03:31Okay, so that's the animation that is going to take place.
03:33Let's just try and scroll back down, select Frame 1 and hit Enter and you can see it move.
03:38But I want to see it within context of everything else.
03:43So I am going to click back on Scene 1, and notice that if I hit Enter I am not
03:47going to see it moving here either. What I actually need to do is I need to do a
03:51Test Movie, and now we can see, although all this other animation is going on,
03:59I can see those clouds sort of slowly moving across the screen, and that just adds
04:04sort of another dimension to this web site.
04:07So, the next step is to animate in the content of each one of these sections.
Collapse this transcript
Creating 3D animation
00:00Remember that when it comes to animation you can actually animate many different
00:04properties of the symbol instance. So I am going to select this movie clip here.
00:10This is the content from my Home Section.
00:12And with it selected in my Properties panel, note that I can animate any
00:17of these properties.
00:19For the backgrounds, all I am really doing is just animating the position.
00:23Okay, but notice I can animate as this 3D position as well.
00:27There are some various color effects, the display, and some other things.
00:31But again I want to animate this 3D Position And View.
00:34And rather than using these sorts of confusing numbers, what I am going to do
00:38is I am going to select this fourth tool down in my Tools panel, 3D Rotational tool.
00:45And as I select it, notice that I get this sort of sphere.
00:49And what I can do is I can just roll over any one of these lines to
00:54determine how to rotate it.
00:55So I can roll over the screen line and I adjust its Y property.
01:01So I am able to kind of rotate that around.
01:03That's pretty darn cool.
01:04And again, just I encourage you to kind of play with all of these lines.
01:08The one I usually use is this orange line.
01:11This orange line is more like a freeform line allowing you to manipulate the object.
01:17Because again, I want to animate this coming in in a 3D way.
01:21So it might sort of start off like flat like that.
01:25Okay, so that's going be at starting position like that.
01:27Okay, it's going to start like that, then what I need to do is I need to go
01:33ahead and create a motion tween for this object. So, right-click.
01:39Create Motion Tween.
01:40So it's going to start off in that position, and then it's going to end up flat.
01:46So I can start to sort of rotate this sort of back around.
01:50So this is where things get a little tricky and you'd be kind of hard-pressed
01:54to start to manipulate these lines to get it back in its original position.
01:59So what I encourage you to use is the Transform panel.
02:03So I am going to go to Window, down to Transform.
02:07So here is my Transform panel and this gives me the 3D Rotation, and again I
02:12can start to manipulate it with these numbers as well.
02:15So you can feel free to do that, but again, I just want to sort of zero out all
02:21of these numbers, whether it's the 3D Rotation or the regular rotation.
02:26Starting with the regular rotation, let's type in zero for that X value
02:30zero, the Y value will be zero, and then the Z value is zero, and now it's
02:35in its final location.
02:37So it starts here, and then it animates into place and kind of twirls in.
02:42So again, that's awfully cool, and pretty easy to do. Just don't forget about
02:48your Transform panel.
02:49It is really going to be your best friend if you are manipulating
02:52anything within 3D space.
Collapse this transcript
Reusing custom animation
00:01Once you create any animation, you can easily save it and reuse it as many times as you want.
00:06That's what I want to do here.
00:08I've this sort of a cool rotate in, in 3D space for this content for the Home page.
00:14And I want to reuse it for the content for all the other sections.
00:19So, all I need to do is select this motion tween in the Timeline.
00:23If I do a right-click on it, I can save it as a motion preset.
00:27So I'm going to select that.
00:30I can give it a specific name.
00:32So Rotate in 3D is what I'll call it. And select OK.
00:37All right, you're probably wondering where it put it.
00:41Well, it of course goes in the Motion Presets panel, right in here under Custom Presets.
00:49So you can save as many as you want.
00:50They'll all be listed right in here.
00:53Then if you want to use them, all you have to do is to go to that movie clip
00:58that you want to apply that Rotate in 3D preset too.
01:03And with this selected, make sure that tween is selected.
01:06You can click Apply.
01:09Now I can see that sort of rotate in 3D space.
01:12Notice how it does actually position it down here.
01:15I can easily, of course, start to customize it even more by moving it into position.
01:20For some of these, I want them to actually move differently as well.
01:23So you can see how this one kind of slides in like that.
01:27I have this motion path.
01:28Well, again, that's sort of a unique custom twist on what was originally a custom tween.
01:35So again, moving on down the line, we'll go to the Portfolio section.
01:39I'll select this sign. Select this motion preset. Click Apply.
01:45And I can see that sort of rotate in just like that as well.
01:49Again, I can always sort move this. Maybe it starts over here.
01:54Then its final location is over here.
01:56So really it's all about sort of customizing each one of these custom tweens per section.
02:02In fact, I'll select this tween and kind of move it off to this side so that you
02:07can see it's sort of rotating in and then landing to place.
02:10All right, the last one, I will turn on this Contact layer.
02:15I'll scroll on down.
02:17And this is the last panel I want to animate.
02:21So with this selected, I can select that tween and click Apply.
02:25You can see it rotate in.
02:27And not only can you adjust the position of these, I of course can adjust
02:32the length as well.
02:33So I want to make sure this goes to about Frame 90.
02:36Then I can see that sort of spin in just like that.
02:40So again, it's really easy to make your own custom presets and then store them
02:46in your Motion Presets panel and use them not only for this project, but any
02:50project that you open up in Flash.
Collapse this transcript
5. Adding Interactivity
Adding button functionality
00:00Essential to any site is the need to add button functionality, which will really
00:05enable that user to navigate the site and control contents.
00:09So this site is no different, because I do have all these sections set up.
00:14So what I want to do is I want to control the Timeline.
00:18And I want it to, when you click on any one of these buttons,
00:21it will jump to the appropriate section.
00:24So the first thing I need to do is I need to stop the Timeline at about Frame
00:3029, because currently it's going to play through all over this content.
00:34So about at Frame 29, this is where I want the Timeline to stop.
00:40And this is going to take ActionScript, okay.
00:43Luckily, what's available in Flash CS5 is code snippets.
00:49So under Window > Code Snippets, I am able to open up this Code Snippets panel.
00:55Very powerful, just really helpful in adding interactivity. But I'm going to go
01:00ahead and just put this on the side.
01:02This is actually loaded, full of ActionScript code.
01:05And I encourage you to check out all of these different folders, because you
01:08have general actions.
01:10You can control the Timeline.
01:12You have animation controls.
01:14You can load and unload content, you know SWF files, JPEGs, audio and video as well
01:20and even some generic event handlers. But what I'm going to do is I'm just
01:25going to open up this Actions panel, just to kind of give you a quick preview.
01:29A popular one on this folder is clicking to Go to a web page, but Timeline
01:35Navigation is what I want to focus on, because again, at Frame 29, I want
01:39to stop at that frame.
01:41So all I need to do is go to the frame
01:43I want to stop the Timeline at and double-click on that code snippet.
01:49It automatically adds that code snippet. Here it is.
01:52This is actual code that does although work, but it also gives you a comment
01:57right here, which tells you what is going on.
02:00So this is perfect.
02:01I can learn and then also see the code and even modify it.
02:06I know this is really just a really simple example, but you'd be surprised at
02:11how often you'll end up using this stop action right here.
02:15Okay, well, where did I put this stop action?
02:17Well, down here it tells me it actually creates this Actions layer and in Frame
02:2429 is where this code exists.
02:27So let's take a look at that.
02:28I'm going to close my Actions panel.
02:31And I'll scroll up to the top. And look at that.
02:34There it is, the Actions layer, Frame 29, right there.
02:38See that little A right there.
02:40That little A says that there are some ActionScript associated to that frame.
02:44So I can go to Window > Actions.
02:47And there's my code.
02:48Okay, so I have actually stopped the Timeline at this point, but what I want to
02:54do next is I want to add functionality to these buttons.
02:58Now I'm not going to do that at Frame 29.
03:01What I'm going to do is I'm going to do that at Frame 1, okay.
03:05So right here at this very first frame, in case the user wants to jump directly
03:10to the Contact section, they don't have to wait for this animation to play.
03:14So it's all about usability here.
03:16One key thing to note is to make sure your graphics exist at the point in time
03:23that you apply your actions.
03:26Okay, so again, I want to go ahead and apply some code to each one of these four buttons.
03:33And if I go to my Properties panel, and with this button selected, well,
03:38let's take a look at it.
03:40It's just an instance of the generic button.
03:43And in fact there are four of them.
03:45So I need to give each one a unique name in order to apply some code to it.
03:50I first need to give it a unique instance name.
03:53So right up here in my Properties panel, I'm going to give this an instance name
03:57of about_btn, just like that.
04:02Now the ActionScript code I apply to the button is going to recognize this as
04:07that unique button, but I'm going to go through for each one of these and give
04:13each one an instance name, a unique name that clearly defines it. portfolio_btn.
04:23Don't use any spaces.
04:24Don't start with any special characters or numbers, just to keep it simple.
04:29contact_btn, just like that.
04:33So each one of these buttons has an instance name.
04:36Now I can apply code to it.
04:38All right, so with this button selected, I can go to my Code Snippets panel.
04:44And in my Timeline Navigation folder, I can Click to Go to Frame and Play.
04:51And that's what I want to do.
04:52I actually want to, if I expand up this Timeline more, I'm just going to
04:56close this up actually.
04:58I want to go to Frame 30, right here.
05:03And I want to play it.
05:04And it's going to play through and then right there. But I don't want it play
05:09through into the other sections.
05:11So again, what I need to do is add some other stop actions.
05:15So I'm going to stop at this frame here.
05:17It adds the code at Frame 49, as it shows me there.
05:21Close that, kind of move on down, right here also for the Portfolio section.
05:27Double-click and stop at this frame.
05:31And then lastly for the Contact section, I want to double-click on that code
05:35snippet to stop it at that frame.
05:38All right, so my stop actions are in place.
05:41And again, if I go back here to my very first frame and select that button,
05:48I can select Click to Go to Frame and Play.
05:52So I'm going to ahead and apply it to that selected button, just by
05:56double-clicking on it.
05:58And it adds that code to it.
06:00Remember, it adds at this very first frame.
06:03That's what that little A is.
06:04So at the very beginning of this web site is where all my major code is going to live.
06:10So again, here is my code, and I can start to modify it or whatever I need to do.
06:17First thing I'm going to do is I'm going to remove this panel off to the side
06:20just by clicking that left arrow. There we go.
06:23And now I can read this clear, because this comment not only tells me what it does;
06:28it gives me instructions on how to modify it.
06:31So I need to replace the number 5 with the frame number you want to jump to.
06:35Okay, in this case, it's going to be Frame 30, because Frame 30 is where that
06:43About content starts to roll in.
06:45All right, and each one's spaced out about 20 frames.
06:51So I have just to change that to gotoAndPlay(30).
06:53And let's go ahead and test out this button.
07:02It's really simple.
07:03I still need to apply this, but again, it stops at this point in time.
07:09And if I click on this button, it goes to Frame 30,
07:11plays it, and then it reaches that second stop action right there and stops. So that's perfect.
07:19You know the next step is to make these other buttons to work, but it
07:21follows the same process.
07:23Again, I'm going to make sure I'm in Frame 1.
07:25I'm going to select the Portfolio button.
07:30And keep in mind that I'm not selecting the text.
07:34There's text on top.
07:35I'm actually selecting the button back there.
07:38So I will select Click to Go to Frame and Play. Apply that.
07:42And it applies that same code.
07:44And still it tells me to modify that frame number.
07:49And each one's spaced out about 20 frames.
07:52So this is on Frame 50 is where-- well, actually, let's just double-check that. Yup!
07:56There is Frame 50, perfect.
08:01So it goes there and it adds this comment.
08:04These comments, if I could be honest, are getting kind of annoying because it's
08:07just taking up a lot of room.
08:08Well, you know what? They're not needed.
08:10So I can even delete that right there.
08:13Now I can read this better.
08:15And if I take a closer look at this code, you can start to see the difference
08:19and what's going on here, because it's going to give me my instance name and it
08:24adds an event listener to this button that listens for the CLICK.
08:30And on CLICK, it's going to fire off this function right here.
08:35So it's great that I list out to this code here.
08:37I can modify it further if I wanted to, but in general that's the structure
08:41for a common button.
08:43All right, let's move on along. Contact button, select it, double-click, Click
08:50to Go to Frame and Play.
08:51It's about a frame what? 70, right there.
08:56That's for the Contact button again.
08:59And let's close this, because lastly, I'm just going to select this Home button
09:04and do the same thing, which is apply that code.
09:06All right, and I'll delete that comment.
09:11Now, this I want to go to about Frame 10 and play.
09:21Now you can also move this code around.
09:23Since they are going in order from left -to-right, I can always take this Home
09:29button code and drag it up near the top like that.
09:34So now it's sort of more in order as they're laid out on this page of the nave bar,
09:39so Home, About, Portfolio and Contact. It's looking good.
09:43I will do a Test Movie.
09:49Stops where it needs to stop, About section, Portfolio section, Contact
09:58section and then Home.
10:00So everything works exactly as expected. It's perfect.
10:04Code snippets not only provide you the code;
10:07it gives you direction on modifying and within minutes, you can have a fully
10:12functional web site.
Collapse this transcript
Adding precise Timeline control
00:01You should always try to set up your project, so it's as easy to work with as
00:05possible, allowing for modification that can be done easily as well.
00:10And that's I want to do with this project, because currently all of these
00:15buttons, as I scroll up, they jump to various sections and they are targeting
00:20frames right in here.
00:22Okay so I take a look at this code in here and if I go to Window > Actions,
00:28you can see the Home button actually goes to Frame 10.
00:31Well, what happens if I decide to add more an intro animation? It means all
00:38these numbers are going to be off, and I would have to come in here and change them.
00:42That's why I want to use frame labels instead of frame numbers.
00:46So I will close this Actions panel and what I want to do is I want to add a
00:51frame label right here in Frame 10, and in order to do that I need to right
00:57click and insert a keyframe.
01:01Because labels need to exist on keyframes.
01:04So at that point of time I can add a label, again I am in the Actions layer, and
01:10we just call this home for the label name.
01:13Notice how the name appears right here and everything is looking good.
01:16So this is actually easier for me to work with, because I can actually read
01:20what section that is.
01:21Frame 30, the same process of inserting a keyframe, and we will call this
01:28about just like that.
01:31The next section is the portfolio section. Right-click, Insert Keyframe, right
01:36here for the Portfolio section, and the name is of course portfolio.
01:41The last one happens to be the contact section.
01:46Insert Keyframe there as well.
01:49So this is so much easier to read and understand as I open up this project.
01:52I can quickly jump to the about section and change that content.
01:57It's easier for me to work with, not only when I am in Flash, but I can also
02:01make the code smarter as well.
02:03So I am going to select this first keyframe right here in my Actions layer and
02:07open up the Actions panel, and I am going to change this from going to Frame 10
02:13to going to, within quotes, the "home" label.
02:18So that's all I need to do.
02:20For the about section, within quotes because it's a specific name, I want to go
02:25that "about" Label. Portfolio, again I am being mindful of what button this
02:31function is associated with, and this goes to "portfolio" just like that.
02:38Contact button, of course it going to go to the "contact" label.
02:43It's looking good. So far so good, and now if I decide to say for instance
02:48shorten up this distance, I can sort of select most of these keyframes right in
02:54here if I want to and I can remove those frames so this animation starts
02:59sooner, but the point is that I have adjusted my Timeline and before all of my
03:06code would be off by good 5 or 10 frames.
03:10But now everything is still going to be synced up.
03:12But let's just test this out. There we are.
03:17It stops in the appropriate frame.
03:19Let me click the About button, it goes to the right section, and again my code
03:25is much more flexible.
03:27My project is a whole is a lot more flexible as well.
03:30All by adding some frame labels and then targeting those frame labels.
Collapse this transcript
Linking to a web site
00:00Eventually you are going to want to add functionality to link out to other web
00:05sites or web pages.
00:06And this project is no difference because I do have this button, as I scroll
00:11over, this "follow me on Twitter" button.
00:16So I am just going to go ahead and select that button and for this button I
00:20want it to link out to a Twitter page.
00:23The first thing I need to do is go to the Properties panel and give it a
00:27unique instance name, so I call it twitter_btn.
00:32Okay for this button, what I want to do is want to go to the Code Snippets panel.
00:37So go the Window > Code Snippets. It happens to be right back here and
00:43if I open up the Actions folder right there at the top is Click to Go to Web Page.
00:50Perfect. That's exactly what I want.
00:52I will just double-click it.
00:55It adds it in that first keyframe right there in my Actions layer below all my
01:00other functionality and gives me a comment as well as instructions on how to
01:07sort of customize this.
01:10So here is my Twitter button.
01:11It's listening for a click and then it fires off this function and now all I
01:17really need to do is change this URL.
01:19So I am going to change this to twitter.com, and I am just going to do
01:24/jilldesigner and notice that it also says blank right here.
01:30So it's going to open up in a new window, which is sort of the proper
01:34functionality that you want.
01:36If you want it to appear in the same window and essentially sort of overwrite
01:40your site or replace your site, then you can actually get rid of that entirely.
01:45But again I want it to open up in a new window.
01:47All right, with that squared away, I will go to the Control and test out this movie,
01:53and all my other buttons work just fine, but I am going to go ahead and
02:01click on follow me on Twitter.
02:04It opens up a web browser takes me directly to that URL.
02:08This can be any URL, whether it's within the same domain if you will or
02:13another web site entirely.
02:15But again, this functionality is pretty common and as you just saw, it's really
02:19pretty easy to add to any project.
Collapse this transcript
6. Creating a Gallery
Loading an external image
00:00Now you don't necessarily want to import all of your images into your Flash project.
00:06You really just want to import the main content and then keep optional
00:11information and optional content external from the file.
00:15That's going to make your initial file size smaller and only load in the images
00:20as the user requests them, and that's what I want to do here.
00:23Notice as I scroll through to this Portfolio section I have this empty frame right here.
00:30So what I want to happen in this dynamically I want to load an image in this area.
00:34Okay that frame is actually a part of the Portfolio bkgd, so I will just double
00:39click on that movie clip and come in here.
00:42So right in this area this where I want to load in that image, so I going to
00:47rename layer 1 to be loaded image.
00:51That's where my image is going to go, and in order to load an image in here,
00:57I am going to use a component.
00:59So let me just move this up some and right in this area, if I go to Window >
01:05Components, I can check out all of the components available that I can add to my project.
01:11The component is basically a movie clip with additional functionality.
01:16I am going to go into the user interface folder, and I encourage you to check
01:20out all of the options we have in here, quite a few, but I am going to choose
01:25this UIloader down at the bottom.
01:27Very handy because all I need to do is drop it on to my page, and then I can
01:32reposition it. Let me close this.
01:35I am going to lock down these other layers, so I don't accidentally select them
01:41just by clicking these little lockouts right there.
01:44All right, I can position this sort of right here and what I can do from there
01:49is I can resize it, so I can use the Free Transform tool to resize it if I want
01:55to and let's not forget that if want exact control, I can modify the properties
02:01in the Properties panel.
02:02So maybe I want the width to about to be 350.
02:06I can type that in, and the height in this case is going to be about 240.
02:11I happen to know the size of the image that I am loading in here.
02:14That's why I am adjusting this precisely, and then I can move it into position.
02:19All right, so this is where my content is going to load, but now I need to
02:24determine the content I am going to load in.
02:27So in the Properties panel it actually lists out this source.
02:31Okay, and if I click on that, notice I can type something in there, but I
02:35actually need to make sure an image is in the right location.
02:38So I am going to go to my desktop, and I am going to go to the assets folder,
02:43into my images folder, and this port1.jpg is the image that I want to load in.
02:51So I am going to copy this image, and I am going to go into my folder.
02:56This is where my FLA file exists and want I want to do is I want to create a new
03:01folder, and I am going to call it images and within that folder that's where I
03:06am going to paste in the image I want to access.
03:09Okay so now I know where it is in the images folder. I am going to target port1.
03:14So I am going to back in the Flash, change the source to point to images
03:19forward slash, because it's in that folder, port 1.jpg just like that.
03:25All right, I have targeted that image, Now I need to go ahead and test this
03:31project and make sure that image gets loaded in.
03:34I will click on Portfolio and sure enough it loads in this image.
03:40So that's perfect. I want to load in this image when they click on the Portfolio
03:44section, but I don't want to make it actually part of this file as in that it's
03:47embedded because that's again going to add to the file size.
03:51And now this is actually set up for me to work on some other functionality by
03:55adding the ability to load in more images.
Collapse this transcript
Creating invisible buttons
00:00Using invisible buttons is an invaluable technique, which allows you to make your
00:05own hotspots if you will and then add interactivity to those hotspots.
00:10That's what I want to do with the Portfolio section.
00:14So right down here in about Frame 61, here is my portfolio content and I want
00:21to add some hotspots or some invisible buttons that are going to serve as
00:25hotspots for this graphic.
00:27So I am going to expand out the Timeline a little bit and I am just going
00:30to add a new layer.
00:32On this new layer I am just going to rename it Portfolio Content and I am going
00:39to insert a keyframe.
00:41So at this point of time that's actually where I want my content to exist right
00:46here and I will move it down because the final resting place is out where I
00:50want that content to exist.
00:52I am also going to insert a blank keyframe just after it.
00:56So this one frame is where my hotspots are going to exist.
01:01I am going to just go ahead and select the Rectangle tool and I am going to
01:06change the stroke color to nothing, and then my fill color is just going to be white.
01:13Now what I am going to do is I am just going to draw a square over that first image.
01:18Okay, I am going to use my Selection tool, select that graphic, open up my
01:22Library panel, and I am going to drag it right into the Library.
01:26Now I can go ahead and make my invisible button.
01:29It is of type Button. invisible button.
01:34Select OK and now here you can see it in my Library.
01:38Okay, it's actually not invisible yet, so what I mean to do is I need to
01:41double-click on it to enter inside of this button and in order to make it
01:47invisible all I need to do is remove any content that's in the Up state
01:52and how I can do that is I can just take this first keyframe and just move it over one.
01:57Now there is nothing in my default state, but when they roll over that graphic
02:01that's when it's going to turn white.
02:03In fact, I can even insert a keyframe in the Down state and then change the
02:09color of this graphic to black.
02:12So that's how I am going to do, but be mindful that there is nothing in the Up state.
02:16So look what happens when I go back to Scene 1.
02:19It turns this teal color and let me just sort of zoom in on that so we can
02:23see it a little better.
02:26With it selected, you can see that it actually is a teal color, so that's just
02:30Flash telling me that there is nothing in this girst frame.
02:34So if I actually do Enable Simple Buttons, this is a unique option that I can
02:40select and that will enable this as a simple button ,since that's what it is.
02:45So it gives me the Over state and then the Down state.
02:48So I get a little quick preview of what it's like.
02:50But I am not crazy how it turns white and just sort of white outs the image.
02:55So what I can do is turn off Enable Simple Buttons and what I want to do with
02:59this button is I want to change the display mode, in particular the blending
03:05mode is what I want to change to Overlay.
03:08So if you are familiar with Photoshop or Illustrator, you are probably
03:13familiar with blend modes.
03:15So it gives this white overlay to the image.
03:18So if I go to Control > Enable Simple Buttons, you can see how it sort of
03:23brightens up that image but doesn't white it out and when I click on it, it makes it dark.
03:28So that's a really cool way to make a hotspot and what I can do now is if I turn
03:34off Enable Simple Buttons, I can start to duplicate this simple button, which is
03:40technically my invisible button.
03:42So all I did is I held down the Option and Shift key and dragged that image over
03:47and it's Alt+Shift on Windows.
03:50But I can select both of these images and hold down Option+Shift. Drag down.
03:56But what I have done there is I have just quickly created 6 hotspots, and now
04:02these buttons are set-up so when I click on any one of these buttons I can then
04:07swap out the image in this area.
04:10But again, I could not only use this invisible button here for the gallery;
04:14I can use it throughout my project, wherever I want to add a nice hotspot.
Collapse this transcript
Loading multiple external images
00:00What I want to do now is I want each one of my thumbnail buttons to load in the
00:06correct image when you click on it.
00:08It will load in that image right inside of this UILoader.
00:12Okay, so the first thing I need to do is give each invisible button a
00:17unique instance name.
00:18So I am going to select this first button here and in my Properties panel I am
00:22going to give it an instance name of port1_btn just
00:28like that and all of them are going to follow the same pattern. So I am going to
00:31copy that instance name and just paste it for the next button and just change
00:38this number to port2.
00:39Again, this will prevent me from mistyping if I just paste in the instance name
00:47and change that one number.
00:55Last one, port6_btn. Now they all have instance names.
01:02All right, so far, so good.
01:04I am going to go ahead and select this first button and I am going to go to
01:08Window and I am going to open up the Code Snippets panel.
01:11Because for each one of these buttons what I am going to do is I am going to
01:15add an event handler.
01:16That's this folder right in here.
01:18Notice I am going to select Mouse Click Event.
01:21So I am going to add a generic mouse click event to that button and all I need
01:25to do is double-click.
01:27Now it tells me that I can go ahead and add my custom code in a new line after
01:33start your custom code below is stated.
01:36So here it is, notice there is this trace statement, which just tells me that
01:42this button gets clicked on, and that's what I am going to start with is just
01:45sort of modifying the trace statement.
01:47So port1_btn is what gets clicked on, so I am just going to copy that word and
01:52paste it right in here.
01:54So what this does is this is just going to give me a trace statement that's
01:57going to appear in my Output panel, saying that I clicked on this button.
02:01So I am going to do that for all of the buttons.
02:04I am going to select the second button, add a mouse click event for port2_btn.
02:09I am going to make sure that we have a trace statement for it.
02:16For port3_btn again I have just added another mouse click event. For port3_btn I
02:23can copy that instance name and paste it right in here for this trace statement
02:28so I know when it gets clicked on.
02:29I am just double-clicking in this gray bar to hide the actions.
02:34Do it again for the fourth one.
02:36I can add that as welll, that mouse click event just like that.
02:40So I am starting to set-up the code for this little gallery.
02:45Add another mouse click event, port5_ btn just like that, hide that panel and
02:53then the last one double-click mouse click event, port6_btn, just like that.
03:00Okay so I have just added six mouse click events, and they are all associated
03:06with these thumbnails, and I can scroll up and start to see all of it and
03:11notice how it adds all of these comments as well, which I really don't need most of these comments.
03:16I don't need six copies of the instructions so I can just start to delete those
03:21comments just like that.
03:23It's going to make my code easier to read seeing there is less within my Actions panel.
03:35So here is all of my buttons. So far so good.
03:38I will just do a Control > Test Movie to test this out.
03:42I have my skeleton function set-up if you will.
03:45Go to my Portfolio section, and now when I click in my Output panel, you should
03:52see those trace statements appear, one through six.
03:56Perfect. Everything set up.
03:59So my next step is to target this movie clip which happens to be my portfolio
04:04background movie clip, because inside of it I also need to target this UILoader
04:11and for this UILoader, I need to change that content.
04:15So let's take a look at that.
04:17Let's close my Actions panel, go back to my Timeline and if I select again, this
04:23is my Portfolio background, just like my Properties panel says.
04:28It's my Portfolio background.
04:30So I need to give this a specific instance name, and I will just call it
04:35portfolioBkgd, and I will just copy that.
04:41Okay, so I have targeted this movie clip.
04:43Now I am going to double-click it to go inside of it, and then I am going to
04:46locate this UILoader.
04:49Remember, I have these other layers locked to allow me to select the UILoader.
04:54It also tells me in the Properties panel that I have the UILoader selected.
04:59Now what I can do is give it a specific instance name.
05:02I am going to call it mainLoader just like that.
05:06So far so good, but for this mainLoader, what I want to do is I want to change
05:11the source to the appropriate image.
05:14So I am going to change the source parameter and redefine it.
05:19So I am going to go back to scene 1.
05:20I am going to go where that code was added, because all that code was added was
05:25right here in Frame 61.
05:26So I am going to go to Window > Actions and here is all of my code.
05:32Okay, now I can go ahead start adding on a new line the code I need to add.
05:38So I am targeting the portfolioBkgd, and then I am going
05:44to type a period because inside of that portfolioBkgd is the mainLoader
05:50and what I want to change with that mainLoader is the source.
05:56I want to change its source and make it equal to something else entirely.
06:02What is that something else?
06:03Well, it's going to be another image, but I need to make sure that image exists.
06:07So I am going to go into the ExerciseFiles folder, assets, and I am going to
06:12locate this images folder, and these are the six images that I want to locate.
06:18I am going to go ahead and copy them and I need to put them in the images folder,
06:25Chapter 06/03 Begin.
06:27I am going to put them in this images folder here, and I will paste them in.
06:32But what's important to note is that my Flash file is right here, and I need
06:37to make sure my images exist within a folder in the same location within that images folder.
06:44So I am targeting port1, port2, port3, so on and so forth.
06:49So lets go back into Flash. For port1_btn I am going to target
06:54the images folder, port1.jpg, just like that.
07:00It looks pretty good. So in fact, I am just going to copy this line because I
07:06want to do the same thing for the port2 _btn, but I want to target that second
07:12image just like that.
07:14Same thing for this third image.
07:17This button is actually going to load in that third image right there.
07:22Again, it's just a copy and paste. Just be aware of what button you are referring to.
07:30So port4_btn. Just beneath the trace statement for each one I can target that new image.
07:38Lastly, port6_btn that button is going to open up that jpg.
07:44All right, everything looks good so far, but the true test is of course testing
07:50the movie, and I will click one the Portfolio section.
07:56I am still going to get my trace statement pop-up but if I click on this second
08:01image you can see it load that it still gives me this trace statement, third image,
08:07fourth image, fifth image, sixth image.
08:12So now my gallery is completed. Each time I click on a button, it dynamically
08:16loads in the correct image. All those images are external from the main Flash file,
08:20so it keeps my main Flash file small while still giving the user the
08:25ability to load in additional images.
Collapse this transcript
7. Adding Video
Adding video
00:00Using video can sometimes get your message across more effectively than just
00:05using text and graphics.
00:08And I think this About section is really a prime example of that, because for
00:13this About section, rather than just having texts talking about Jill, I'd
00:18rather include a video of her kind of talking about her interests and what she
00:22is passionate about.
00:23So I am going to go ahead and add a video right here in this area.
00:27In fact, inside of the about background movie clip is where I want to add the video.
00:33So right down here at the bottom is this layer 1.
00:35Well, I just want to rename that to video and I want to import the video
00:42right into that layer.
00:43So I am going to go to File > Import, and I am going to select Import Video.
00:50Now I can go ahead and browse to that specific video file.
00:55It's on my Desktop in the assets folder.
00:57Here it is, My Jill movie.
01:00It's a QuickTime Movie.
01:02But notice that I can also import MPEGs and some other file types as well.
01:06But I am going to go ahead and just select Jill movie and I am just going
01:09to see what happens.
01:11And what happens is, it says, "hey, you know what,
01:15this video is not necessarily supported by the Flash Player."
01:19So you need to use Adobe Media Encoder to covert it to an FLV or F4V. I'll select OK.
01:27And I can launch the Adobe Media Encoder by clicking this button right down here.
01:32And it tells me to make sure I reference that FLV file after I've created it.
01:39So again, I am launching the Adobe Media Encoder.
01:42I am going to take that QuickTime movie, and I am going to convert it to an FLV file.
01:48All right, so what it does is it automatically references my Jill movie and is
01:54actually ready to output it.
01:55But I am just going to double check some of this stuff.
01:57I know that I want to output an FLV file.
02:00And I can choose from a number of presets as well.
02:05I am going to just match the source attributes by selecting that.
02:10And notice that those source attributes, if I click on that preset name I
02:15can see what those are.
02:17So now I am in Export Settings.
02:19And I can just quickly just sort of take a look at this video.
02:23So the source of course, 340x215, and the output is going to be about 340x216,
02:30maybe off a pixel or so.
02:32But I can always sort of change that, maybe resize the video, sort of unlock it
02:37and make that to 15, something like that.
02:41But again, I can sort of take any sort of take any preset and then modify
02:44it further if I want.
02:46I definitely want to make sure there's audio in there, and sure enough there is.
02:49It's going to export out the audio at 128 kbps.
02:53That's about CD quality.
02:55So that sounds pretty good to me.
02:57But in general, I am going to leave most of this information as is and I'll click OK.
03:02All right, so it is going to output it, but I need to be aware of where
03:07it outputs this file.
03:08So I am going to click on this Output File link here and I am going to go ahead
03:14and make sure it gets output to the right folder.
03:20And what I am going to do is I am just going to go ahead and put it in this
03:24Images folder with all these images.
03:27So technically it's images and video, but I know I just need to upload
03:31this entire folder.
03:32So I can just put it right in there.
03:33It's going to be called Jill.
03:35I'll click Save and from there, all I need to do is start the queue.
03:41And it renders the video awfully fast as you can see.
03:51All right, now that it's done, I can quit Adobe Media Encoder.
03:56Go back into Flash, which is telling me to select that video, which is what I'll do.
04:01I'll click Browse.
04:02I'll go and select that video.
04:05And remember this is my index.fla.
04:08And then here is my FLV file that was just created.
04:11So I'll click Open.
04:14It maps to that FLV file.
04:16I am going to make sure this is selected, Load external video with
04:21playback component.
04:22So I am going to be using this playback component.
04:24And I need to make sure I upload that video file as well.
04:29I'll click Next and then I get the opportunity to pick the appropriate skin for this video.
04:36So there's quite a few in here, everything from some minimal classic sort of
04:41custom ones to these other skins as well. That's SkinOverAll.
04:47So I encourage you to kind of check out all of these skins.
04:49There's quite a few.
04:52I am actually going to just select this sort of second option down for skins.
04:58And it's going to contain sort of most buttons.
05:01But if I select that you can see that this s what it's actually going to give me
05:05is all of these buttons.
05:07So that seems pretty good so far.
05:09I can also choose the color, so I can change that if I want to to red to match
05:15my design, and I'll click next and then finally Finish.
05:19So it loads in my video.
05:21I'll just press the Spacebar.
05:23So it actually loads it right over here, but here is my video now.
05:27(Female speaker: Hi, my name is Jill Steinman.)
05:28And as I press the Spacebar?
05:31(Female Speaker: ?I'm a freelance graphic designer working in New York City.)
05:34I can actually watch it play.
05:35I could even press the Spacebar and the video will still play and I can start
05:40to position it where I want it to be.
05:45(Female Speaker: After-- graduating from Rhode Island School of Design, I immediately started working for various high-profile ad agencies.)
05:52(Female Speaker: After five years, I made the move to freelancing full-time.)
05:56All right, that looks pretty good.
05:58I am going to go ahead and move my layer up to the very top, just so my
06:01controls are on top as well.
06:03But as you noticed, if I hit the Spacebar or if I use any of these controls,
06:08they all work from within Flash.
06:10(Female speaker: Hi, my name is Jill Steinman. I'm a freelance graphic designer working in New York City.)
06:14(Female Speaker: After graduating from Rhode Island School of Design, I immediately started working for various high-profile ad agencies.)
06:22(Female Speaker: ?being a strong brand and?)
06:24Okay, with that in place, and again, I'll just kind of place it right here.
06:29I can go ahead and test this movie.
06:31So I am going to do a Control > Test Movie.
06:34Remember that is in my About section.
06:36I'll click About.
06:37(Female speaker: Hi, my name is Jill Steinman. I'm a freelance graphic designer working in New York City.)
06:42You could see my video plays.
06:44But I actually run into an issue, because even though this video plays, if I
06:48jump to another section, I'll still hear the audio.
06:52So let me just demo that for you.
06:53(Female Speaker: After graduating from Rhode Island School of Design, I immediately started working for various high-profile ad agencies.)
07:00(Female Speaker: inaudible crosstalk)
07:05So you run into that issue where the audio keeps playing.
07:08So I need to put in a quick little piece of ActionScript that tells the audio
07:14for that video to stop.
07:16Pretty much I need to stop all audio from playing regardless of what button you click on.
07:22So I am going to this first frame and right here for this first frame, this is
07:27where the code lives for all my buttons.
07:30Okay, so I am going to go select this Home button for instance and if I go
07:35to Window > Actions, that first frame here, here's all of my code for all of my buttons.
07:43And I need to add actually a new code snippet for this just one of these buttons.
07:49And what I am going to do is I am going to select this button and I am going to
07:52go to the Code Snippets panel.
07:55And what I want to do is I am dealing with audio and video, so I'll go to that folder.
08:00And in that folder there is this Click to Stop All Sounds.
08:04And that's what I want to do is when you click on any of these buttons I just
08:07want to stop all the sounds from playing, so that I just don't hear that audio any more.
08:12So I am just going to go ahead and double-click that code snippet to add it,
08:16because the important thing that I need is this right here, SoundMixer_stopAll.
08:23That's exactly what I need, because quite frankly I already have an
08:27event listener for the Home button.
08:28So I really just need this.
08:30So all I am going to do is just select this line and I am just going to copy it.
08:36And then I am just going to get rid of that code altogether.
08:39So I encourage you to check out the code snippets,
08:42determine what you need and just use what you need, because for my original Home
08:46button event listener, when you click on that button, that's when I am just going
08:51to paste in that SoundMixer_stopAll.
08:54So I want to do the same thing for all the other buttons, paste in
08:58that SoundMixer_stopAll.
09:01So again, I don't know what the next button is that they are going to click on.
09:05All I know is I want the audio to stop when they click on that button.
09:08All right, with that SoundMixer_stopAll in place that should correct my problem.
09:14I'll go ahead and test out this movie.
09:20(Female speaker: Hi, my name is Jill Steinman. I'm a freelance graphic designer working in New....)
09:24And then the audio stops.
09:26So again, if I go back in here?
09:27(Female speaker: Hi, my name is Jill Steinman. I'm a freelance....)
09:30regardless of which button I press it stops that audio and my problem is solved.
09:34But as you can tell, video can tell more of a story than just
09:41text and graphics alone.
09:43So my next step now is to integrate this video more into the design of the
09:49web site as a whole.
Collapse this transcript
Adding custom video controls
00:00Once you've imported your video, you might realize that you want to integrate
00:04the video into the design of the site.
00:08And that's where I am at here with this video here.
00:12So I am going to double-click on it.
00:14And what that does is that brings me inside of this About background movie clip.
00:19And that's where my video exists.
00:22Okay, so it's not really integrated on to the TV quite right for one.
00:27And another thing is that I am not crazy about all these video controls.
00:30So I really want to customize this.
00:32One thing I can do when it comes to customization is I can change the color of
00:38these video controls.
00:39I can do that by looking at my component parameters.
00:44So I can sort of select maybe a closer match to these flowers for instance if I want to.
00:52Or I can change this skin entirely as well.
00:56So if I click that pencil I can go ahead and pick a different skin.
01:01But again there might be cases where none of these skins are really working for you.
01:05And they are quite frankly not really working for my design.
01:08So I am going to select None.
01:11So I am removing the skin entirely. I'll select OK.
01:16And now of course it's not there.
01:19Now what I can do is I can move this layer that contains this video, I could
01:24move it behind or sort of underneath all the other layers.
01:29And you can see that she is sitting inside of the TV now.
01:32And remember all this is is a graphic.
01:34It's actually a PNG file with sort of a hole cut out of it.
01:38But that seems much more appropriate.
01:41And what I want to do now is I want to add another layer.
01:44And on this new layer are going to be my video controls.
01:49All right, and on this video controls layers where I am going to drop on some
01:53video controls, and they exist under Window > Components.
01:59So here are all my components.
02:00Let me just pull this panel out.
02:03I have Flex, User Interface, and then Video.
02:07If I open up this Video folder, you can see all of these video buttons I can use.
02:11So I am going to go ahead and use the PlayPauseButton.
02:15I like that it's sort of two buttons in one.
02:17But I can just click and drag that on to the Stage just beneath the video right down there.
02:23Next step up, let's take this Seekbar which allows the user to sort of scrub to
02:28a certain point in the timeline of this video.
02:31Put it right there and just kind of nudge it with my arrow keys, something like that.
02:35Let's grab the Volumebar and drop it on as well, give the user the ability
02:39to control the volume.
02:41All right so that looks pretty.
02:44And what I can do with these buttons is I can actually explore them, because if
02:49I zoom in on this PlayPauseButton, I close that Components panel.
02:54I can zoom in on this button and if I double-click on it I can start to edit it.
02:59So I can dig down deep into this button.
03:02I can go into the play button and it starts to show me the different instances
03:08of this play button.
03:10And notice how it gives me this weird green color.
03:13Well, this is for my Over state.
03:15So when these are rolls over the button, it's actually going to highlight green.
03:19I am not crazy about that.
03:21So I can easily change it by double clicking and digging deep into where that
03:26green is and by selecting it I can go ahead and change that color.
03:31So the important thing to notice that these are all movie clips, so I can edit these all I want.
03:37So again, this sort of highlight color for the Down state, I can change that to red as well.
03:44All right, PlayButtonDown, let's go back, go back.
03:50And again, anytime you want to change something just double click and dig into
03:53that button and then change it accordingly.
03:56But that's all I was really doing is changing this square background.
04:02The cool thing is this square background that I've been editing for the Over and
04:05the Down belongs to all of the buttons that have the square background.
04:10So my Pause button is actually going to give me this red color as well. So it's perfect.
04:16I only edit once, and then I am good to go.
04:19So let me go back to Scene 1.
04:20Let me go ahead and Fit in Window. There's my video.
04:25Let's do a Control > Test Movie.
04:30And let's go ahead and review those buttons.
04:32(Female speaker: Hi, my name is Jill Steinman. I'm a freelance graphic?)
04:37I can scrub through.
04:41(Female speaker: ?designers bring awareness to...)
04:43I can even play with the volume.
04:44(Female speaker: ?impoverished countries. When I'm not working, I can be found...)
04:50All right, and everything works great.
04:51And again, I didn't have to write any code.
04:53All I need to do is drop on those buttons into this area.
04:57And then I can fully customize them all I want just to make sure it integrates
05:02nice with the design.
05:04And of course, that's what I have here.
05:06So the next step is to even go beyond this and start controlling graphics based
05:11on the video as well.
Collapse this transcript
Adding full-screen functionality
00:00Now, I want to go beyond the typical video controls and give the user the
00:04ability to play the video full screen.
00:07So, I'm going to double-click on this about bkgd and inside of this about bkgd
00:12movie clip, notice that I have this video layer which includes the video, and
00:16then I have the controls layer and on the controls layer is where I want to drop
00:20in a full screen button right here.
00:22So, I'm going to go to Window and open up the Components panel and inside of the
00:27Video folder you'll notice that FullScreenButton.
00:30So, all I need to do is drag it right here on my TV and watch what happens when I do.
00:36You will sometimes get this warning. It says, "A component with this name already
00:40exists in the document."
00:42Now, I didn't already add a FullScreenButton, but what's going here is the
00:46FullScreenButton is sharing the same sort of base button components as my other buttons.
00:52So that background is actually the same for all of them and since I modified
00:57that base background graphic, I want to use my existing components, just like that.
01:04Okay, so there we are.
01:05There's my button as you could tell.
01:07I'll just minimize that Components panel and again I have my other buttons down
01:11here and all I'm going to do is just use my arrow keys to position this
01:14accordingly, and I need to do one more thing, because I need to add some HTML
01:19code that gives permission for this video to play full screen.
01:23So, I'm going to go to File, down to Publish Settings, and I'm going to edit my
01:30HTML, so I'm going to make sure this is checked, and then I'm going to go to the HTML tab.
01:34All right, in there, you'll see this Template dropdown and from there I want to
01:39select Flash Only - Allow Full Screen.
01:42Again, this is just going to give permission and basically adds a parameter in
01:46the HTML that sets the Allow Full Screen equal to true, but for me all I need
01:51to do is select it like that and from there, I can go ahead and click OK like
01:59that and I'm good to go.
02:01So, let's go ahead and test this out.
02:03I'm going to go to File and I'm going to test it out from Flash because under
02:08Publish Preview, under File, I can select HTML as my Default.
02:13So, it's going to open up in my default browser and I'll go to the About
02:18section, and I'll just turn down that volume so I can still chat with you, but
02:24in general you can see the video is playing fine here and again I'm in a
02:27browser and what I can do from here is click this Full Screen button and the
02:32video goes full screen.
02:34It even gives me a message saying to hit the Escape button when I want to exit
02:39out of this Full Screen mode, but you also might want to consider maybe
02:43increasing the video quality if you want, if you know your users are going to
02:47play your video full screen. Just keep in mind file size if you do that.
02:52So, I will hit Escape, and I'm out of that video and back into my normal mode.
02:56But as you can see it was really easy, just to drop on a Full Screen button.
03:00Just don't forget to edit your HTML settings.
03:02You can easily tell that it enhances the user's experience of your content.
Collapse this transcript
Syncing graphics with video
00:00One of the great things about using video in Flash is that you can sync up
00:04the video with other graphics on the site, and that's what I want to do here with this video.
00:10When Jill says certain things, I actually want to highlight some text in these paragraphs.
00:16So, I'm going to double- click on this movie clip.
00:19It's right in here, and that's where my video lives, but what I want to do is
00:25I'm going to add a new layer, and I'm going to just call it highlights.
00:31These are the highlights that I'm going to draw.
00:33So, I'm just going to use the Rectangle tool and I'm just going to go ahead and
00:38select red as my fill color and make it about 50%, and I'm just going to draw a
00:45quick box right here because when Jill says Rhode Island School of Design,
00:51I want to emphasize this information.
00:54So, let me select that graphic here, and let me just change the color and
00:59make sure that's at a bright red, and that looks pretty good, nudge it into
01:03place, and I'm going to go ahead and drag it to the Library, and I'm going to
01:07call this-- first off, it's not going to be a button.
01:10It's going to be a movie clip, but I'm going to call this highlight1. There we are.
01:17There's my highlight1.
01:19I'm going to go ahead and draw another highlight over here that highlights the
01:25places that she's worked at, like that, all right.
01:29So, I'll select these rectangles, drag them to the Library, and I'll call them
01:36highlight2, just like that.
01:40Now, I need to give each a specific instance name.
01:44So, the first one is going to be called highlight1, second one highlight2, like that.
01:54All right, so far, so good.
01:56There's my highlights in place.
01:59Now, I need to determine when Jill says certain items.
02:03So, I'm going to lock down some of those graphics, so I can select that video,
02:08and I'm going to open up this Properties panel and if I close up those
02:14parameters, notice that I'm given Cue Points right in here for this video.
02:19Okay, so, the first thing I'm going to do is I'm going to give this video an
02:22instance name of jillvideo.
02:25It's the name of the video and on this video it's going to have a couple cue
02:30points, and I'm going to determine those by hitting this plus sign.
02:34So, I'm going to play this video, and I'm going to hit the plus sign to add
02:39various cue points, so.
02:41(Female speaker: Hi, my name is Jill Steinman. I'm a freelance graphic designer working in New York City.)
02:46(Female Speaker: After graduating from Rhode Island School of Design, I immediately started working for various high-profile ad agencies.)
02:53(Female Speaker: After five years, I made the move to freelancing full-time, mainly because I feel that design?)
02:58All right, so, here's my three cue points.
03:01The first one is going to be my first highlight, which is about her schooling.
03:06So, I'll just go ahead and say highlight1, because that's what I want to
03:11highlight, second cue point is highlight2, and this third one I made is the one
03:19where I just want to make both highlights go away.
03:22So, I'll just type in end there.
03:25So, I've determined my cue points.
03:27I have my graphics in place.
03:30I know the name of this video.
03:32Now I can add some ActionScript, and I'm going to use the Code Snippets panel to do this.
03:38I am going to go to Window, down to Code Snippets, and I'm going to open up this
03:43Audio and Video folder, and this third one down is the one I'm going to select,
03:48because On Cue Point Event, I want certain things to happen.
03:52So, I'll just double-click there and it adds that code.
03:56So, it's referencing the video because I had it selected and it's going to
04:01trace out the name of the cue point.
04:05So, this is either going to be highlight1, highlight2 or end.
04:08So, what I want to do instead of tracing out the name of the cue points, I want
04:14to do something based on those cue points.
04:17So, I'm going to type in if the name is equal to highlight1, then do something.
04:27So, I'm going to get rid of that semicolon and add an opening curly brace and
04:33when I hit Return, it automatically adds this closing curly brace, because when
04:39the video hits this cue point name, what I want to do is I want to turn on the
04:46appropriate highlights.
04:47So, I'll say highlight1.visible is equal to true
04:53and I'm going to make sure that
04:56that takes place at that point in time, but what I need to do initially is make
05:02sure highlight1, its visibility is equal to false.
05:08So, we turn it off initially, and then when it hits this cue point, turn on that highlight.
05:13Same thing for the second highlight, so all I need to do is copy this and paste it.
05:19So, if the cue point is equal to highlight2, then turn off the first highlight
05:26and then turn on the second highlight, just like that.
05:35And remember, I have to make sure both of them are
05:39not visible initially.
05:42Okay, so it hits that first cue point, turns on the correct highlight.
05:46It hits the second cue point, turns off the first one, turns on that second one
05:52and remember as I checkout this video, remember that there's also this end cue
06:00point as well, and that's when I'm just going to turn off both of them.
06:04So, let me go back to this first frame here, back into my code and right here,
06:10I can copy and paste this last if statement and if the name is equal to end,
06:18then turn both of them off, just like that.
06:23All right, the code is looking pretty good.
06:26I can also comment this code if I want to as well, but in general I know that
06:32this controls the highlights.
06:35That's all I'll do right there.
06:38But let's go ahead and run this.
06:39I'm going to do a Control > Test Movie, and I am given an error right in here.
06:46So, let's take a look at this.
06:48Looks like there is a misspelling right in here and this will happen on
06:51occasion, and I'm glad it did because it's looking for this undefined property,
06:57and it's given in my Compiler Errors.
07:00So, all I need to do is double-click on that and that takes me right to that
07:04line of code that has the issue.
07:06So, I can go ahead and fix that. Obviously I misspelled highlight.
07:10I can fix that by removing that extra L that's in there in both places and
07:14then I can run my code.
07:20Let's go to the About section, the video is going to play, and then now we're
07:24going to watch the highlights, highlight and then also turn off.
07:28(Female speaker: Hi, my name is Jill Steinman. I'm a freelance graphic designer working in New York City.)
07:32(After graduating from Rhode Island School of Design, I immediately started working for various high-profile ad agencies.)
07:38(Female Speaker: After five years, I made the move to freelancing full-time.)
07:42So, that was just a quick example of having graphics interact with the video,
07:49all based on these cue points, and as you can tell, it was quite easy to do in Flash.
Collapse this transcript
8. Adding Audio
Adding music
00:00Adding audio to your site can really make for a better experience for the user.
00:05Just keep in mind that when it comes to music not to overdo it.
00:09I can easily add music that plays the entire time of the site, but quite frankly
00:14my experience is that people often go for the mute button before long.
00:19So, what I want to do is just add a quick little music tag at the beginning of this site.
00:24The first step is going to be adding a new layer, and I will call this new layer music.
00:30I will drag that beneath the Actions layer and on this layer is where I will
00:35import my audio file.
00:37So, I am going to Import > Import to Stage, and I can locate this ChimeIn.wav file.
00:44Notice I can also import other sound formats as well such as MP3, that is
00:49available, but in this case, it's just this WAV file. I'll click Open.
00:55Remember I selected Import to Stage, but it doesn't appear on my Stage, and
01:00that's because it actually just puts it in the Library.
01:03So, as you can see right here there is my ChimeIn.wav.
01:07But again, I can select that file.
01:08It actually still does import it. I'll click Play.
01:11(Music playing)
01:14Again, just a simple music tag at the very beginning of this site is what I want.
01:19So, all I need to do is select this file and drop it right on to the Stage.
01:24Now, notice that it does add the waveform on that layer that I had selected.
01:29So, it's exactly the way I want it.
01:32In fact, I can select that first keyframe, go to my Properties panel, and take a
01:37look at this Sound category because it does point out that WAV file that has being used.
01:44Notice that I have the Sync set to Event, and that's what I want.
01:48What that means is that as soon as playhead hits this frame, it's going to play
01:53this audio track in its entirety regardless of what's going on in the Timeline.
01:59If I had it set to Stream, it means the audio track would be locked to the
02:04Timeline so when we reach the Stop action, it would actually stop playing the music.
02:08So, again, that's not what I want.
02:10I want it just to play independent of the main Timeline.
02:13That's why this is set to event and now I am good to go.
02:17So, I'll go to Control > Test Movie. Test this out.
02:22(Music plays)
02:24Great. It's exactly what I want, the Timeline stops, the music continues to kind of
02:28play through, very nice.
02:30But to be honest that audio track sound like it's being compressed, and it is.
02:36So, I am going to show you what's going out there and just how to increase the
02:40quality of your audio.
02:42So, if I go to File, down to Publish Settings, I'll go to the Flash tab and right
02:49here in the center, look, it says Audio event is set to 16 KB/Sec.
02:53That's really low considering CD quality is about to 128.
02:58So I can change it by clicking Set and then the bit rate to about 80.
03:05I don't want it to be say 120 or 160. That might be a little too much.
03:10Again, it's a balance of adding more file size versus quality so that's why I am
03:15going to pick 80 KB/sec.
03:17Again, the higher the bit rate, the larger your file will be, and then I can click OK.
03:22Now, let's go ahead and check out our audio track.
03:25(Music plays)
03:31So, it does sound a lot better.
03:33I think with even tracks with sort of more bass in them and low tones,
03:36you definitely notice a difference as well but keep in mind your Publish Settings.
03:41So, obviously it's really easy to import audio, and it does really add a nice
03:44dimension to any web project.
Collapse this transcript
Adding audio to buttons
00:00It's important to provide users with feedback to interactions that they
00:04perform on your site.
00:05That's what I want to do with these buttons when the user rolls over a button,
00:09I want to play just a quick rollover sound effect and then also when they click,
00:14I want to play a click sound.
00:17All right, so the first thing I need to do is import those sounds.
00:21So, I am going to File > Import, and I can Import to Stage.
00:25Notice that if I do Import to Library, it's going to do that same thing as well.
00:31I'll select rollover.wav. Again,
00:34it could be an MP3 or other sound format so that imports that file.
00:40Let's go to File > Import > Import to Stage again, and I'll select this
00:45click.wav as well and click Open.
00:48Like I just mentioned, it does import them right into the Library as you can see.
00:53There is this click sound.
00:55Let's play it.
00:56(Click, click, click)
00:58And again it's going to be fairly subtle.
01:01Then near the bottom here I have this rollover WAV, so I'll click.
01:04(Music plays)
01:06So, that's the rollover sound that I want.
01:09All right, so my tracks are imported, those audio files, and I need to add
01:16them to these buttons.
01:18Luckily, these are all instances of the generic button, so all I need to do is
01:24just double-click on any one of them to edit it.
01:27Now, notice in my Timeline what I can do is just add a new layer, and I can
01:33rename this layer Audio.
01:35All right, right in here for the Over state, like I just mentioned, I want to go
01:41ahead and play a track.
01:43So, I need to insert a keyframe at that point in time and on this keyframe,
01:49I want to add the appropriate audio track.
01:52So, let me open up my Library.
01:53I am going to select this rollover.wav, and I am just going to drag it right on
01:59to the Stage and notice how it adds that waveform to that Timeline.
02:04All right, I am going to select that keyframe there and I am just going to
02:08double-check my sound.
02:09It does say rollover.wav.
02:11The Sync is set to Event so that looks really good.
02:16In next frame, again it's the same process of inserting a keyframe, and now I
02:21can go ahead and add the click.wav right here.
02:26I'll just drop that right on.
02:28I can see that waveform in there, giving me visual feedback that it actually
02:33put on that audio track in there.
02:35I can check the Sync is set to Event as well and I am good to go.
02:39So, again this was to the generic button and if I click on Scene 1, it actually
02:44again adds it to the generic button which is being used five times.
02:48Okay, so let's go ahead and check this out.
02:51I'll go to Control > Test Movie.
02:57So, let's listen to these sound effects.
02:59(Rollover sound and clicking)
03:08All right, so that sounds pretty good.
03:10I personally think the rollover sound is kind of loud so I want to edit that.
03:15The great thing is that I don't have to go out to my actual sound file, edit it,
03:20and then reimport it.
03:22What I can do is I can actually edit it right in Flash.
03:25So, I am going to just double-click on that generic button. Go to that Over sound.
03:30Sure enough, here's that rollover.wav and what I can do is just this Edit sound
03:35envelope icon right there, and now I can see my waveform here.
03:40All I need to do is grab this control bar, and I can go ahead and move that down
03:46so it's about halfway, sort of part of that lower quarter area right down here.
03:50That's where I will put it.
03:50So, it's only about the quarter of the way up.
03:52Now, let's play it.
03:53(Rollover sound playing)
03:55Again, I am going to keep this really subtle.
03:58I don't want to annoy users with audio.
03:59I just want to provide some feedback so they know that they are sort of
04:03interacting with this site.
04:05Okay, that was just a quick way to edit the sound envelope.
04:08Notice that when I do go back into Edit sound envelope, what I can also do if I
04:12want it to trail out a little quicker, I can even click here and add another
04:18keyframe and adjust the audio so it trails out a little faster.
04:23All right, let's go to Test Movie.
04:28(Music plays)
04:30Now, remember the rollover sound is going to be a lot more subtle so--
04:33(Rollover sound plays)
04:43Just like that.
04:44So again, just providing some user feedback to their interactions that they are
04:48performing on the site.
04:49As you can tell, it does really add a nice dimension to sort of any web project
04:54you might be working on.
Collapse this transcript
9. Integrating a Contact Form
Creating input text fields
00:00When you are going to create a contact form, the first thing you need to do is
00:03add some input text fields.
00:06So, here I am the sort of last frame of this site and I am just going to
00:10double-click on this Contact movie clip.
00:13Now, I am inside of this Contact movie clip and here are the fields that I want
00:18to be input text fields.
00:20So, currently this was actually just imported from the Photoshop, and it brings
00:25in this text as editable, which is what I defined when I imported it as TLF Text.
00:31So, that's perfectly fine.
00:33Notice that it's set to Selectable.
00:35Well, what I want to do is I want to change this to Editable so this is going to
00:40give the user the ability to edit this text field.
00:43All right, so I've done that, but I also need to adjust it a little further.
00:48So, I am just going to use my arrow keys to position this accordingly and
00:52then I am going to double-click on it and just expand out this text field, just like that.
00:58Then I'll just delete that word John Doe right there.
01:01But now again, this is an Editable text field.
01:04I've cleared it out, and it's set up to accept any text the user enters in.
01:09I am going to do the same thing for Email.
01:12Again, I want to make sure this is Editable.
01:14I'll delete the information in there.
01:16I'll stretch it out and I am going to use my Selection tool just to kind of
01:21reposition it a little bit.
01:22Notice as I make them Editable it gives them this dashed line. Okay, so it's just
01:28a visual confirmation that I am getting all of this squared away.
01:31All right, this text field I am going to change it to Editable as well, and
01:37I'll just stretch it out just like that by grabbing that lower right node, and
01:43I'll delete that text.
01:44Okay, one thing about this Message text field.
01:48I want to make sure that the lines wrap within this text field.
01:53So, let's check out some of my options in here as I go into Paragraph and then
01:59Container and Flow, these are all my options I get.
02:02But under Container and Flow what I have is Behavior.
02:06So, I want to make sure this is set to Multiline.
02:10Okay, so sometimes it might default to Single Line. Just make sure it's set to
02:13Multiline, and then I am ready to go.
02:16Okay, so those are my text fields and also right here what I want this to be is
02:22I want this to be like a little feedback text field as well.
02:26So, I am going to go ahead and position that off to the side and I am going to
02:30make sure this doesn't contain any information whatsoever.
02:34So, in general I am slowly getting this set up to receive input.
02:37All right, this first text field right here, now that I have it set up,
02:42I am going to give it an instance name, and I'll just call it theName and for
02:48the Email, I am going to type in theEmail, and then Message is going to be theMessage.
02:58Now, the reason I am adding "the" before each one is that I want to give it a specific name.
03:03If I have names that are too general, it might conflict with code within Flash.
03:08So, "the" or "my" is sometimes used as well but in general, they have
03:12unique instance names now.
03:14All right, so let's go ahead and test this out. Control > Test Movie.
03:22(Music plays)
03:26Contact section and I'll type in like that.
03:31It works great, just like that, just like that. It works out great.
03:43One thing I have noticed though is if I am in this Name text field and I hit Tab,
03:50you sometimes might run into this issue.
03:53You want to give the user the ability to tab through all of these input text fields.
03:58But if I hit Tab, what Flash does is it just kind of refers to any button or any
04:04interactive object on the Stage starting at the upper left-hand corner.
04:09So, I basically want to define the tab order.
04:12All right, that's the code I am going to add, so I'll close this file and right
04:16in here, again I am in this Contact movie clip.
04:19I am going to create a new layer, and I am going to call it Actions.
04:25I am going to select that first frame, and I am going to open up the Actions panel.
04:29All right, so I am just going to write some ActionScript from scratch.
04:33I'd basically need to add the tab index or the tab order of my text fields.
04:39So, I am going to type in InteractiveObject because that text field is an
04:45InteractiveObject, and then just call it theName.
04:49That's the first text field, and I am just getting that text area.
04:57That's all I am doing is defining that one text field that's
05:02actually defined as theName.
05:04So, I've basically pointed to that object and I am making sure the tabIndex,
05:11and this is nice when I start to type in tabIndex.
05:14It recognizes it as a tabIndex and actually gives me that code hinting.
05:19So, as soon as that selected, I could just hit Enter and it adds it and I can
05:24define this is the first object to tab.
05:28All right, so I am going to copy this code and paste it below, because I want to
05:32do the same thing for the Email.
05:36So, again I am just defining that input text field as an InteractiveObject.
05:40It's going to have a tabIndex number of 2.
05:43So, it's gong to be the second field that is tabbed to. The last one is theMessage,
05:49and I am going to set this tabIndex to 3 as well.
05:53So, now I am going to be able to tab through all three of those and however many
05:57fields you have, you can kind of go on as long as you want, but I am going to go
06:02ahead and test out this movie.
06:05(Music playing)
06:09Type in, hit Tab, it goes to that field, like that, Tab, and it works great.
06:20So, again using tabIndex is just great way to get around any sort of little
06:25issues that you might have.
06:26But other than that it's as simple as selecting any text field, making sure that
06:31it's set to Editable, and you are good to go.
06:34So, the next step from here is to send this information out.
Collapse this transcript
Accessing the input data
00:00Once you have your input text fields in place, you then need to check to make
00:04sure the user actually entered in information in these fields before sending
00:09out the information.
00:10So I'm going to select this contact form right here.
00:13I'll just double click on it, so I'm inside of this Contact movie clip.
00:18And let's just confirm a couple of these instance names.
00:23For this first text field, it is called theName, then we have theEmail, then
00:29we have theMessage.
00:31So those are the three text fields that I'm just going to check when you
00:34click on the Send button.
00:36But really what I need to do is I need to take this graphic and convert it into a button.
00:42So I'll just select a graphic, drag it into the Library, and let's call it send
00:48button, make sure the Type is of Button, and I'll click OK.
00:52All right, with that button still selected, I can give it an instance name of send_btn.
00:58Okay, so when you click on send_btn, I want to just check those fields.
01:04So I'm going to use code snippets to get me started with the code structure.
01:10So, in the Code Snippets panel, under Event Handlers, I'm just going to add
01:14a Mouse Click Event.
01:16So I'll just double-click on that, and I just added the mouse click event to the
01:20Send button, and it just traces out the "Mouse Clicked."
01:24Well, I don't really want to do that.
01:26What I want to do is I want to check or at least get the information in those text fields.
01:33So what I can do is I can type in theName.text, just like that, and that will
01:41enable me to see whatever is in that text field.
01:44Okay, I'm just going to copy this line, paste it below twice, because I want to
01:53get theEmail and theMessage, just like that.
01:59So, when they click on the Send button, trace out whatever is in these three fields.
02:04I'm going to get the text in them and what it's going to do is it's going to
02:07appear in my Output panel.
02:09So with that set up, all I'm going to do is I'm just going to test out this
02:13movie to make sure it's working.
02:14(Music playing)
02:27Just like that.
02:28I've entered an information in there and if I click the Send button, I should
02:32see in the Output panel this text, and there it is.
02:36So again, my trace statement actually sort of prints out that information,
02:40places it in my Output panel. All right.
02:43So that next step is to go ahead and make sure the user actually entered in
02:47information into those three fields.
02:50And even if they did, what I want to do is display a nice message right next
02:54of the Send button.
02:55So close this file, go back into my code, and I'm going to go ahead and write in
03:02place of this comment, I'm going to go ahead and add an If statement.
03:06So, here is the basic If statement structure. It's going to look just like this.
03:13I'll move this up a little bit. Open and close parenthesis.
03:14If a certain value is met, then do whatever is in these two curly braces.
03:21So, I'm going to check if theName.text is equal, I need two equal signs there,
03:30if it's equal to nothing, so if they didn't put anything in there, that's two
03:35quotes there, then display a certain message.
03:38And what I want to do is I want to display a message right in this text field.
03:44So I need to select this text field, I'm going to go to Properties, and I need
03:48to make sure it has an instance name.
03:50So I'm going to call it theFeedback.
03:51Let me go back to that code.
03:57It's in my first frame of the Timeline here, and theFeedback, in that text
04:07field go ahead and put "Please enter in a name," just like that, within quotes.
04:14So if there's nothing in there, then it shows me this message.
04:17Let's go and test this.
04:21(Music playing)
04:25Again, I'm not going to put anything in here.
04:27I'll just click Send, and it says "Please enter in a name."
04:36So it's working out great so far, the other thing I need to do is add in checks
04:40for these other two text fields.
04:42So I'm going to do that right now, and continue on to add some more code as well.
04:48So theName.text, if that's equal to nothing then displays this.
04:52And what I want to do is I'm going to edit this message to say, "Please fill out all fields."
05:02So that's going to be the generic message that gets displayed anytime they do
05:07not enter in information in here.
05:09So, I'm going to add some more code in here.
05:12So, it there's nothing in theName text field or, and these are two pipes is what
05:17those are, just under the Delete key, these two pipes is an OR statement.
05:23So, or theEmail.text is also, you know, if that's equal to nothing or
05:33theMessage.text is equal.
05:38And again, I need two equal signs right in here, because I'm doing a check to
05:42see if one thing is compared to another basically.
05:46All right, so that looks pretty good.
05:47It there is nothing in theName text field or nothing in theEmail or nothing in
05:52theMessage, then display this line.
05:56If they do actually fill out all these fields, well, I want to add an else,
06:01open curly brace, closing curly brace gets added when I hit the Return button.
06:08else theFeedback.text, we'll just add a quick Thank you.
06:17There we go.
06:18That's perfectly fine, just some feedback and saying that they have entered in
06:23the Form, and its entirety.
06:25And what I can even do is clear it, so theName. Again, they entered in
06:34the fields correctly.
06:35I display a thank you message and then I clear all the fields, in case they
06:46want to send another message, just like that.
06:54All right, everything now looks good.
06:57I'm going to go ahead and test this out now.
07:02(Music playing)
07:08Okay, so maybe again I did not enter anything in the Email field.
07:19I'll click Send, and it does display that information but also says, "Please fill
07:25out all fields," and I'm like okay, well, I will. There we go.
07:30Now if I click Send, it clears the form and then gives you a thank you message as well.
07:35So now that I have this verification in place, I can then take that data
07:40and then pass it out and ultimately send this information to the person's email address.
Collapse this transcript
Sending data to an email address
00:00The last step in my contact form is taking all of this data that the user enters
00:05and then sending it out to an email address.
00:08So I'm going to double-click on this Contact movie clip.
00:12And as you can see right in here, I have my input text fields, even a
00:17feedback text field.
00:19And then associated to this button, I have some ActionScript.
00:22So let's take a look at that.
00:24In this first frame of the Actions layer, I can open up the Actions panel and
00:30view all of that code.
00:31So currently, I'm tracing out that data, which means it's just appearing in my
00:35Output panel, but what I want to do is I want to take all of this data.
00:40And I want to package it up into one variable package.
00:44And then send it to a specific URL.
00:47So the nice thing is is I can replace these comments with my own comments if I want to.
00:52And that's what I want to do right now.
00:54I'm going to just create a variable container, okay.
01:01And I'll just delete this line real fast.
01:04All right, and this is basically going to be called var.
01:06I'm creating a new variable, and it's called allVars.
01:11All my variables are going to go in this big box called allVars.
01:16It is URLVariables.
01:18And as I type in URLV, I can see URLVariables.
01:22And it highlights it. I can hit Enter.
01:25And it will automatically add that word for me.
01:28And I'm basically creating a new URLVariables container URLVariables().
01:35All right, so now what I need it to do is need to copy this.
01:40And inside of this Variables container, I need to have it contain the name, which
01:49is going to be equal to the text in this instance name field here.
01:54So same thing right here, allVars.email, within that Email variable,
02:01contains that information.
02:05And then message contains any text that's in this instance name field here as well.
02:15Okay, so within this sort of box contains these three variables. All this
02:20information gets packed up into this nice little variable container right here.
02:25And then what I can do is I can then go ahead and send that information out to a URL.
02:30So that's what I'm going to do next.
02:31I'm going to create a new URL.
02:33Let me just add another comment, so, //Send info to a url.
02:43So I'm creating a new variable called mailAddress.
02:47I'm making a URLRequest and again as soon as it highlights it, I can hit enter.
02:53And it will add that whole word, new URLRequest. Again, it highlights that line. I can hit Enter.
03:01And now I can go ahead and type in the URL that I want this information sent to.
03:06In my specific case, it's going to be
03:15jillgraphicdesigner.com/gdform.php.
03:19So this is basically a PHP page provided by my hosting company, which
03:25happens to be Go Daddy.
03:27So they provide me with this PHP page.
03:29And this PHP page takes all of that information and sends it out to the email
03:35address that I have defined through Go Daddy's control panel. But the point here
03:40is you just need to check with your hosting company to see how they deal with
03:44PHP forms, because they might have a different name or location for their
03:49form.php file, but in general that's where the data is going to be sent.
03:54And this is just all through this URLRequest.
03:56And what I can do now is I need to make sure I attach that data to that URLRequest.
04:02So I need to say mailAddress.
04:05Well, the data for that mailAddress is going to be all my variables.
04:10So again, I'm making sure these names match up because it's going to take all
04:15this data and attach it to the data property of my mailAddress.
04:19Next thing I need to is just go ahead and post that information to the
04:23URL mailAddress.method.
04:29Again, as soon as the word is highlighted, you can hit Enter,
04:32URLRequestMethod.POST because it's going to post this information to this URL, okay.
04:42So that's what it's going to do.
04:43It's going to post it there.
04:44Okay, so the data is there. It posts it.
04:47And that's the sort of the method that it's going to send it.
04:50Technically, I need to actually do a sendToURL(mailAddress).
05:00So this is technically the final sort of send of all of this information.
05:06So I didn't use a Navigate toURL or anything.
05:09The nice thing about this chunk of code is that it sends the data behind the
05:14scenes if you will, without interrupting your experience.
05:17But again, it seems like a lot of code, but this does all the work sort
05:20of behind the scenes.
05:22Post that data to the PHP page.
05:24And again, notice where I've put it, okay.
05:27So I've just started typing it right in here.
05:29Well, I mean what if they haven't filled in all of these fields?
05:33Well, what I need to do is I need to take all of this information. And I will cut it.
05:38And I'm going to put it right in here in this else statement, because I want
05:44this to happen, of course, if they have filled in all the fields, then send the data.
05:49Another neat sort of cleanup feature you can do is you can click this sort of
05:54fifth button in, the Auto format.
05:56If I click that, it will sort of indent everything appropriately.
06:00And you can see my large else statement.
06:02That really does all of the work if all the fields are filled in.
06:06So with that good to go, I can go ahead and do a Test Movie.
06:09Go to my Contact page.
06:14Enter in my email address, something like that. Send the message.
06:29Click Send. It says thank you!
06:32And then if I go to basically my email that I've defined with my hosting
06:37provider, I should see that email in my Inbox.
06:42Here it is, my Inbox, right here, the email that was sent, my information.
06:46And everything is working out just great.
06:48So again, that was just a quick example of how to take that information that was
06:52in Flash and send it to a PHP page that does most of the work doing the final
06:57step of actually sending the email.
Collapse this transcript
10. Testing and Publishing
Adding a progress bar
00:00One of the final things to add to any site it's going to be the progress bar.
00:04And what this does is that it's just actually just shows the progress of things
00:08downloading, giving some visual feedback to the user.
00:12And that's what I want to do with this site.
00:14But before I do so let's go ahead and do a Test Movie.
00:18(Music playing)
00:20And let's go ahead and check out sort of how this would be downloaded.
00:25So I'm going to go to View > Bandwidth Profiler.
00:30So this actually gives me a profile of the content that needs to be downloaded.
00:36Notice down here at the bottom it says 648 KB.
00:40So again it's a fairly, fairly good size.
00:44And if I want to view this as if the users are viewing it, what I can do is I
00:50can just check my Download Settings.
00:52So I've this set to DSL, but what I want to do is I want to Simulate Download.
00:59So notice how I'm giving these little dots in the center right here, indicating
01:04that something is going on, but I have no idea how long we'll be sitting here
01:07staring at these little dots.
01:09Notice my Bandwidth Profiler does tell me the percentage loaded.
01:13So I need to tap in to that data.
01:15(Music playing)
01:18All right, so again, I want to build in a little bit more of an indicator.
01:23And now luckily Flash has built-in a template for this.
01:27So I'm going to go to File > New, and it's usually set to the General tab, but
01:35I'm going to click on Templates.
01:37Down here at the bottom there's Sample Files.
01:39So I really encourage you to check out all of these various template files,
01:43because there are some really nice ones in here.
01:45So I encourage you to do that just if you have time. What I'm going to do is I'm
01:49going to select this Preloader for External File.
01:53And it does say that it's a sample file only there are no instructions, but
01:57I'm going to walk you through all the steps you need.
02:00Select OK and here is my file.
02:03All right, so it looks fairly good so far, but what I want to do is I'm going to
02:08go ahead and save out this file.
02:10I'm going to save this as preloader, and I'll save it to my folder here.
02:19Now, that's saved in the same location as this index.fla.
02:24So let's just confirm it is in that same folder.
02:27It's going to be saved right here as well.
02:32So they're both in the same location.
02:34So for this preloader file the first thing I notice is that the Stage size is different.
02:39So I want to match the Stage size with the actual movie.
02:42So notice how this actual sort of the final file, 1000 x 600 at 29 frames per second.
02:50Well, let me go to the preluder.
02:51Let's make sure it's set to 29 frames per second.
02:551000 pixels wide, by about 600 pixels tall, just like that.
03:02Okay, so it's set to the right size. Also the Stage is the wrong color.
03:07I want it to be white.
03:08So this is just a matter of sort of getting rid of what you don't want,
03:12customizing it so it matches the final file as well.
03:16Notice this Background layer contains this design which really doesn't go with
03:21what I'm working with.
03:22So I'm just going to delete this in its entirety.
03:26And what I'm left with is this progress bar and then this Actions layer.
03:31So for this progress bar I'm going to go ahead and position it in the center of the Stage.
03:36So in order to do that, what I'm going to do is I'm going to open up the Align panel.
03:42And from there I can select Align to Stage.
03:46And then I can go ahead and click on Align horizontal center and then Align
03:51vertical center like that.
03:53All right, now what I've done is I've just aligned this graphic
03:58and all this is a movie clip.
04:00So can just go ahead and double-click on it and edit it if I want to, to make it
04:06potentially match more of what my graphics are in my site.
04:10And mine's actually brighter red so I can pick a different red, but this could
04:14be anything that you want, whether it's a thin bar, maybe it covers the whole screen, who knows.
04:19So I'll go back to Scene 1, I'll select that Actions layer, that first keyframe,
04:24and open up the Actions panel and here is my code.
04:30So it does actually create this Loader called contentLoader.
04:34And it loads in this content.
04:36It's technically a help file.
04:38But what I want to do is I actually want to load in the index.swf file.
04:43Okay, so I'm targeting this index file right here.
04:47That's my index.swf file.
04:49And then from there, it's going to go ahead and load in that content and then
04:55start to set the progress bar
04:58And what it does is that actually scales that progress bar instead of its width.
05:03So it's going to start to stretch out as more and more of the file is downloaded.
05:09So again, I'm adjusting the scaleX property is what's going on here.
05:14All right, I'll save this file and remember it's targeting that SWF files.
05:18So I can do a Control > Test Movie.
05:20Let's go ahead and test this.
05:23(Music playing)
05:26And again, that loaded pretty fast.
05:28So again, I want to go Simulate Download.
05:32Let's just check my settings are set to DSL.
05:38As it loads in, you can see the progress bar sort of move across.
05:42So this gives me good indication of how much data needs to be loaded before I
05:46see anything, provides that to the user.
05:49And ultimately gives him just a better experience for the site.
05:52So again, just use those template files, specifically the preloader for an external file.
05:59And you can see that it's easy to use in any project that you might be creating.
Collapse this transcript
Optimizing a web site
00:00Optimization is a very important step with any web site or any web content for that matter.
00:06We want to make sure our content looks really good and is as small as possible,
00:11and that's what I want to do here.
00:12I want to go ahead and optimize this site, but first I need to check and see how
00:18large it is and figure out which files or which graphics are the largest in it.
00:24So, I'm going to go to my Publish Settings and I'm going to click on the Flash
00:29tab and from there, this is where most of my optimization happens, but what I
00:35want to do first off is I want to generate a size report to see how large
00:41everything is and just see what is included in this file.
00:44So, I'm going to go ahead and select Generate size report and I can click OK.
00:52Now, anytime I do a Test Movie, what happens is in my Output panel, you can
01:02see this size report.
01:04This is also a TXT file that I get to put in the same folder as my SWF file,
01:09but in here you can see this is my index.swf Movie Report, some of them
01:14metadata, which is what this is here, that gets included, and then I can start
01:19to analyze the rest of this.
01:21So, you can see that plenty of things are going on in Frame 2.
01:27In here, I can start to see sort of the different frames as well and their file sizes.
01:34So, about every 20 frames I see this larger hit and what those are
01:39are the different sections.
01:41So, I really want to scroll down, even beyond these symbols, because
01:45they're pretty small, down into this area, because it's either going to be
01:49all the embedded fonts or the images and in this case, there's not a lot of
01:54embedded fonts in here.
01:55So, I'm looking pretty good there, but right down here you can see my bitmap
02:00images seem pretty large.
02:03Okay, so I have the Home image, seems large.
02:05This Contact image seems pretty large as well.
02:08So, this is where the bulk of my file size is coming from, is of course from the images.
02:14I can also see that there are some sounds in here as well and potentially those
02:18could used to kind of be crunched down a little bit as well, but this is really
02:22the size report that tells me everything, and from there I can start to take a
02:26look at how much I need to bring it down. Because notice right here this is
02:31pretty much the size of my content. It's about 664K, is what it is.
02:38All right, so I know the offending graphics are of course the bitmap graphics.
02:44So, what I can do off the bat is I can go to my Publish Settings and in my
02:49Publish Settings, in the Flash tab, I can bring down the quality of
02:53everything if I want.
02:55So, I can take it from 80 down to 30. I'll click OK.
03:00I'll do a Control > Test Movie.
03:04(Music playing)
03:07I can see it generated the size report again, and I can start to take a look at the file size.
03:16So, it's actually drop to a pretty good amount, from 650 or so to 380.
03:23So, it's almost cut in half, but let's take a look at the content, because you
03:28can see my content has actually suffered as well.
03:31So, all of my Bitmap graphics look pretty bad, again, her face looks bad right there.
03:37(Female speaker: Hi, my name is Jill Steinman. I'm a freelance graphic designer...)
03:41These flowers look bad.
03:43So, it's really going to be a fine art of optimizing the specific graphics
03:47you need to optimize while keeping everything else maybe higher or
03:51lower, just kind of depends.
03:52I think the clouds in the background,
03:54I can maybe crunch those down, because they're inherently nebulous and
03:59rough looking anyway.
04:03So again, that's the goal is to crunch down everything on a per graphic basis as
04:07opposed to using just my Publish Settings and crunching everything down.
04:12So, let's close that file, close our Output panel, and what I can do, if I just
04:18open up this Library panel, I can take a look at all of the graphics.
04:22So, right in here, I can take a look at this clouds.jpg.
04:27So, what I can do is I can right-click on this clouds.jpg and go to Properties.
04:34From there, I can take this down from its imported quality, whatever that was,
04:41and I can make that Custom.
04:43So, I'm going to take the Quality down to maybe 20%, and I'll click Test, and
04:48you can see what you get.
04:50Obviously, that is way too small. Let's try 50.
04:54Hit OK. That looks pretty good.
04:55Let's try 40 and really it's going to take this fine art of crunching this down,
05:00and also I can allow smoothing for this as well, and I might smooth it out a little bit.
05:06But I think that's acceptable, bringing that down to about 40% for my clouds, so
05:11it's about 17K, pretty darn small actually for the file size for that image.
05:16And next up, I have my other images. My contact image seems pretty darn large.
05:21That's this background image.
05:23It's going to be the same process of right-clicking, going to Properties, taking
05:28a look at the image, do a quick Test, and I can start to customize its quality.
05:35So, let's take that down to 50, click Test, and I'd say that's still pretty acceptable.
05:42Luckily these graphics are fairly gritty to begin with.
05:47So, I think 50 works.
05:48Let's try 40, and that still looks pretty good. Click OK.
05:52I'm going to do this just to a couple of other images, Portfolio.
06:00Again, this is my Portfolio.
06:05I can customize this down to say 30.
06:07I usually try pretty low and then start working my way up, and let's go to about
06:1440, there to 45, and there we are.
06:19Okay, that looks pretty good as well.
06:22Home section, again, Jill's face unfortunately was not looking too good
06:28in this case, but I can come in here to test it, to use this Custom Quality of
06:33about 40 and still isn't that great.
06:37And since this is the Home page, I actually, am going to leave this a little
06:40higher, about 60, just like that.
06:43All right, the last page, the About page, these are with all the flowers, which
06:50in general red is really tough to deal with, any sort of warm tone, but let's go
06:55ahead and see what happens when I take that down to 40.
07:04Okay, I would say that is acceptable, about 60%. Test out Allow Smoothing,
07:11sometimes it does a better job than others. But in general, I've just
07:15identified the sort of offending images, edited them or actually just optimized
07:20them on a per image basis.
07:22Now, I can go to my Publish Settings and instead of crunching everything down to
07:2630, just make it about 60 instead, because this logo file was also getting
07:36crunched down a lot.
07:37All right, so I've changed that.
07:41Let's go ahead and do a Test Movie.
07:43(Music playing)
07:45She looks better. Let's take a look.
07:48(Female speaker: Hi, my name is?)
07:50Those graphics look better.
07:53These graphics look better, and let's just double-check our file size in here as well.
07:59Yeah 469, I'd say that's pretty good.
08:01All we've done is we've added maybe about 100K in image quality to certain
08:07areas, and as you can tell, I was able to customize that it on a per image
08:12basis to really give a nice look to the entire site, while still keeping it a
08:17small file size.
Collapse this transcript
Publishing a web site
00:00Once the site is optimized, we can head in the final step, which is actually
00:04pretty exciting, and that's publishing our site.
00:08So I have this index.fla open, and I am going to File, down to Publish Settings
00:13and notice that it's going to publish out and an SWF file and HTML file.
00:19Well, quite frankly, I don't want to publish out an HTML file, and I am going
00:24to have a different file to do that, but what I am going to focus on is this SWF file.
00:30So with that checked I can click on this Flash tab, and just kind of review the
00:34settings just know that this does require Flash Player 10, and that's is the
00:39version the user needs to see your content, but a good 95+% people have the
00:47Flash Player, so that's hardly an issue.
00:49All my optimization is done.
00:51In fact, the only thing I don't need is this Generate size report.
00:55So I can uncheck that and be good to go.
00:59And of course, we want to make sure that we're compressing the movie, but this
01:03is set by default as well.
01:04So I am going to go ahead and click Publish, and that creates the SWF file.
01:10Now remember this SWF file is called index.swf.
01:13So let me just minimize Flash and here is my SWF file that was created.
01:21Okay, so that file is ready to go.
01:23What I want to do next is open up this preloader.fla.
01:27So I'll open up this file, and remember, before I even go into my Publish
01:32Settings, I am going to take a look at my actions, because we need to note that
01:38this file does load in the .swf that we just made.
01:42So really, this is the first file.
01:44So I am going to go in to Publish Settings and in this case this is what I want
01:49checked is the .HTML for this file.
01:51In fact, I am going to rename it to index.
01:55So from here this file is going to create this index.html, and it's going to
02:00load in this preloader.swf.
02:03So lets checkout the parameters in the different properties for this HTML file.
02:08I am going to click on this HTML tab and overall you're really not going to have
02:13to adjust any of these settings.
02:15But you can, if you want, you can always adjust the dimensions of your site.
02:19Say for instance, if you wanted to sort of be at 100% within the browser,
02:25you can change that there. But overall I am going to keep the quality high and keep
02:29everything else set up.
02:31So in general, these are my various properties that I am going to include with HTML file.
02:37So I am go ahead and click Publish, and it generates, again, these two files. So I'll click OK.
02:44I'll save my file.
02:45I'll minimize Flash and right in here, we can take a look at those files.
02:50So the index.html file actually loads in the SWF file, and the SWF file loads
02:57in this index.swf file.
03:01So I definitely need these three files.
03:03My index.swf contains all the content.
03:06So what that means is that it contains this textLayout file as well as
03:11this images folder.
03:13So it loads in all of that information.
03:15So I need to make sure I upload all of these files to my web server in order
03:19for my site to work.
03:20And then let's go ahead and just do one of quick check.
03:23I'll double-click on this index.html.
03:25(Music playing)
03:27Looks great! I can test it out.
03:32Go to my different sections, but now I am just going to do some final
03:35tweaking to this HTML file.
03:38Because you notice the title says Preloader.
03:41So I probably want to change that, and another thing is that my content really
03:44isn't centered, and I kind of like to center it within the browser regardless of
03:49how wide or narrow the browser is.
03:52So I am going to change those two settings really quick.
03:55So I am going to close this HTML file and what I can do is I can load this HTML
04:01file up in Flash. So I just did a right-click and I can open it with Flash.
04:09Here is all the HTML code that I didn't have to write that Flash generated.
04:14It gives me all the parameters and all the various properties that I
04:17have defined earlier.
04:18But right up here at the top, this is where I am able to change the title.
04:22So Jill Graphic Designer For Hire is what I can type in here for the title.
04:30And the next thing I want to do is I want to center it.
04:33So I can always edit this CSS as well.
04:36But this is just a quick way to center an image or pretty much any thing.
04:40I can do a text-align: center.
04:45End with the semicolon.
04:46So I am centering the Flash content as well.
04:50And again, here is all my parameters and all that good stuff.
04:53I'd also like to point out that if your user just happens to be one of the very
04:58few people that don't have Flash, it will actually display a graphic allowing
05:02them to get the Flash Player.
05:05So they are never out of luck.
05:06They can always download the Flash Player, but in general I'd say this is good to go.
05:10So let's save this file. I'll close it.
05:13Let's minimize Flash and check out our final file.
05:16(Music playing)
05:18There we are Jill Graphic Designer for Hire.
05:21The content is always going to be centered in the browser.
05:24My site is optimized and ready to go.
05:26So at this point all I need to do is take all of these content and upload it to
05:31web server and send that URL to my friends and potential clients.
Collapse this transcript
Conclusion
Goodbye
00:00Thank you for watching.
00:01I hope you not only learned a lot, but were also inspired to create.
00:05Because Flash is a program that gives you the flexibility to let your
00:09imagination run wild.
00:11So have fun and send me a link to your site when finished!
Collapse this transcript


Are you sure you want to delete this bookmark?

cancel

Bookmark this Tutorial

Name

Description

{0} characters left

Tags

Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading
cancel

bookmark this course

{0} characters left Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading

Error:

go to playlists »

Create new playlist

name:
description:
save cancel

You must be a lynda.com member to watch this video.

Every course in the lynda.com library contains free videos that let you assess the quality of our tutorials before you subscribe—just click on the blue links to watch them. Become a member to access all 104,141 instructional videos.

get started learn more

If you are already an active lynda.com member, please log in to access the lynda.com library.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Access to lynda.com videos

Your organization has a limited access membership to the lynda.com library that allows access to only a specific, limited selection of courses.

You don't have access to this video.

You're logged in as an account administrator, but your membership is not active.

Contact a Training Solutions Advisor at 1 (888) 335-9632.

How to access this video.

If this course is one of your five classes, then your class currently isn't in session.

If you want to watch this video and it is not part of your class, upgrade your membership for unlimited access to the full library of 2,025 courses anytime, anywhere.

learn more upgrade

You can always watch the free content included in every course.

Questions? Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com.

You don't have access to this video.

You're logged in as an account administrator, but your membership is no longer active. You can still access reports and account information.

To reactivate your account, contact a Training Solutions Advisor at 1 1 (888) 335-9632.

Need help accessing this video?

You can't access this video from your master administrator account.

Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com for help accessing this video.

preview image of new course page

Try our new course pages

Explore our redesigned course pages, and tell us about your experience.

If you want to switch back to the old view, change your site preferences from the my account menu.

Try the new pages No, thanks

site feedback

Thanks for signing up.

We’ll send you a confirmation email shortly.


By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked