Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Animated SWF: Using blends to define motion

From: Illustrator CS5 for Web and Interactive Design

Video: Animated SWF: Using blends to define motion

One of the things that I find interesting about using Illustrator for web design is that, well, Illustrator existed long before the web did. In fact, if you think about it, Illustrator never really even thought about concepts of things like motion, for example. Yet there've always been features like blends, for example, that were even available before gradients were available inside of Illustrator. They were used to have one color blend into another. However, now that we understand the concept of exporting SWF files out of Illustrator, if you wanted to create some kind of motion, we can actually use a blend to simulate that and create motion when creating a SWF file.

Animated SWF: Using blends to define motion

One of the things that I find interesting about using Illustrator for web design is that, well, Illustrator existed long before the web did. In fact, if you think about it, Illustrator never really even thought about concepts of things like motion, for example. Yet there've always been features like blends, for example, that were even available before gradients were available inside of Illustrator. They were used to have one color blend into another. However, now that we understand the concept of exporting SWF files out of Illustrator, if you wanted to create some kind of motion, we can actually use a blend to simulate that and create motion when creating a SWF file.

So, let's see how we can do that. Now I have this file open right now. It's called animated_banner_motion. I'm actually going to turn off the top two layers of my document, because I just want to focus on the Backpack Cali one that's right here, because I want to build a file, and I want to create a blend, and we want that blend to turn into some kind of motion when I play back this banner. For example, maybe a nice effect instead of just having the banner rotate itself, maybe I want this special of the month to kind of like animate upwards into the banner. Now, one thing that I've also done differently in this file, specifically, is I've taken elements from the background and put it on its own layer.

So just, for example, if I turn off the Background layer here, you can see that all I see right now is just this monthly special for Backpack Cali. In fact, if I were building this in a month-by-month basis, I would simply just add a new layer with the specials for that particular month. So, for example, you can see here I have one layer for Backpack Cali, one layer for California Calm, one layer for Desert to Sea, but for now we're just going to work on the Backpack Cali one. I'm turning off the Background layer for now just so that we can get a better idea of exactly what settings we're applying here inside of Illustrator.

Now, I want this to kind of fade in from the bottom. So what I'm going to do is I'm going to take this piece of artwork right now, and I'm going to Option+Drag it down here right directly underneath. So, by Option+Dragging, or if you're on Windows that would be Alt+Dragging, I've now created a copy of that group. I've basically have taken all these elements, and I've grouped them together. In Illustrator, you have the ability to blend groups as well. What I'm also going to do is I want this to not only just move up, but I also want it to fade in a little bit. So I want to set the opacity of this group down to zero. So, I'm going to go over here to the Opacity setting inside of my Control panel, set it to zero, and press OK. Great! So now it's there, but I just can't see it, because it has zero opacity.

I'm now going to hold down the Shift key and select this piece of art as well. So now, I have two groups selected. They're just really copies of each other. One is set to zero opacity. Now I'm going to go to the Object menu, and I'll choose Blend > Make. Now that I've defined the Blend, I'm going to go back to the Object menu, choose Blend, and now I'll choose Blend Options. Now, by default, Illustrator uses something called Smooth Color for Spacing. We don't really care about smooth color here though, because we're dealing with distinct objects.

So I really want to specify a number of steps. So I'm going to choose Specified Steps, and maybe here I'll just do five steps, for example, and I'll click OK. So, what I've just done now is I've taken two groups and I've blended them together, and now what I need to do though is tell Illustrator that when I create a SWF, I want that blend to actually appear as an animation. Now, at the beginning of this chapter, we spoke about two possible ways to export a SWF file out of Illustrator. We can either use Save for Web & Devices, or we can go to the File menu and choose Export.

Well, as we saw, there was a large dialog box that had many different settings and the Export function. To create this type of motion, we're going to need to use Export function. We will not be able to achieve the look we're going for by going to Save for Web & Devices. So I'm going to choose File, and then choose Export. For the file Format, I'm going to choose Flash, or SWF. Next, I'm going to choose Export, and let's take a look now at the options that are available in this dialog box. Now first of all, I want this to actually become an animation.

So the first thing I need to do is choose how I want to export this file. The default setting for Illustrator is to take my entire Illustrator file and create one static SWF File, but I want to turn all of my Illustrator layers to Flash frames. Note, by the way, that there are other options here. You can choose to convert your layers to SWF Files, meaning you could create separate SWF files for each layer, or you can also convert all of your layers to SWF symbols. I'm going to choose though right here to convert my layers to SWF frames. That's going to create an animation. I also want to choose for some options over here, Clip to Artboard Size.

Now, when I set up this document, I created my artboard at the size that I need this banner to be, which is 468 x 60. In addition, you can see over here that I've taken a copy of that artwork, and I moved it off of artboard. So, this art is going to fade in onto what we call the stage inside of Flash. Now, I don't need to include any unused symbols; that just adds to file size here. But let's take a quick look at some of the other settings that are here. I can compress the file. That just makes it a smaller file, which I'm going to go ahead and turn that on. I can choose to export my text as outlines.

This actually will make my file size bigger. I'm going to leave it unchecked for now. I can also choose to ignore the kerning information for text. If I had some metadata inside of my file, by going to the File Info dialog box, I can choose to include that, but again, that makes the file size a little bit larger. And I could choose this option, Protect from Import, which will make it difficult for other people to open up that SWF, for example, maybe inside of Adobe Flash Professional. If I do so, I could choose to enter a password for my file. Let's go ahead and move to the Advanced panel, and we'll see some more settings available, especially around the area of motion and animation.

Now, if I do have images in my artwork, or some content is going to get rasterized, I can choose which image format I want Illustrator to use. A lossless format can save things basically as a GIF format. Lossy will actually use a JPEG format for that. I could choose a different quality level for that, if that's the case. I can also choose a resolution, but the truth is right now in my artwork at least. I don't have anything that's going to be rasterized, so I'm leaving all those settings alone. Now here's the frame rate. That's basically how fast the animation is going to play. For now, I'm going to set it to about 6 frames per second, and I want this to loop, meaning I want the animation to continuously play.

Now here's the setting that really makes the big difference here. Now, we've created a blend inside of Illustrator. I want Illustrator to actually go ahead now and animate those blends. When I do so, there are two ways that that blend can be animated. One is called in a build. In a build animation, it basically takes every single step of the blend that starts with the first step, and then it adds the second step, and then adds the third on top of it, adds the fourth. So I see all the steps at the end of my animation. But I don't really want that. I want it to appear as if this is moving up. So, in this case here, I'm going to choose In Sequence.

That means that I'm going to see the first step of the blend. Then Illustrator is going to hide the first step and only show the second step. Then it's going to hide the second step and only show the third. In this case, I'm only going to see only one step of my blend at a time, so it's going to appear as if it's moving across the screen. I can also choose what layer I want the animation to play. Remember, I have several layers here, so I can choose whether or not I want the layers to play bottom up, or I can choose to have them play top down. In this case, I only have one layer visible, which is the one that has the blend on it, and we're doing this just to get a better idea of exactly what the blend animation looks like.

Now, I'm going to choose Web Preview to see what this looks like in a web browser. So you can see that right now I've created this type of animation directly from the blend. However, you'll notice that it's moving down. Maybe I want it to actually move up. So, let's go back into Illustrator for a second. I'm going to cancel out of this. With the blend selected, I'm going to go to the Object menu, choose Blend, and then I'm going to choose this option, Reverse Front to Back. Basically, the stacking order that exists inside of the blend determines which direction this animates in. So, if I reverse front to back, now if I go back to the File menu, and I choose Export, once again, I'll choose Flash in the Format pop-up, choose Export here, unfortunately, one of the downsides to using this Export function is that there's no way to save the settings.

So, we'd have to go through this one more time. You want to choose Export as layers to SWF Frames. We want to clip to Artboard Size. Now, we'll jump over to Advanced. Let's change our frame rate to maybe let's say 8 frames per second this time, set it to Looping, Animate Blends, In Sequence, and now choose Web Preview. Now we can see that things slide up the way that we want it to. So, using Blends inside of Illustrator is a great way for us to define motion in a SWF animation. Now, we need to put this all together, and create one unified ad banner with all the motion that we want.

We'll start to do just that in the next movie.

Show transcript

This video is part of

Image for Illustrator CS5 for Web and Interactive Design
Illustrator CS5 for Web and Interactive Design

74 video lessons · 23823 viewers

Mordy Golding
Author

 
Expand all | Collapse all
  1. 6m 56s
    1. Welcome
      1m 33s
    2. Choosing Illustrator for web and interactive design
      2m 54s
    3. Illustrator and the web design workflow
      2m 7s
    4. Using the exercise files
      22s
  2. 40m 9s
    1. Pixel dimension vs. resolution
      4m 14s
    2. Pixel Preview mode and anti-aliasing
      5m 39s
    3. Taking charge of anti-aliasing
      5m 27s
    4. Choosing the right color management settings
      7m 25s
    5. Setting up important preferences
      6m 22s
    6. Setting up a workspace optimized for web design
      11m 2s
  3. 54m 5s
    1. Using the Web document profile
      3m 39s
    2. Creating custom document profiles
      9m 38s
    3. Using Illustrator's free web templates
      2m 33s
    4. Creating a sitemap or wireframe
      2m 50s
    5. Setting up an entire web site
      9m 33s
    6. Setting up a grid
      10m 37s
    7. Setting up an online ad campaign
      8m 13s
    8. Setting up icons for iOS
      2m 24s
    9. Setting up mobile content with Adobe Device Central
      4m 38s
  4. 32m 22s
    1. Understanding web-safe colors
      11m 50s
    2. Limiting the Color Guide to web-safe colors
      4m 53s
    3. Using Recolor Art to convert art to web-safe colors
      4m 54s
    4. Getting color inspiration from Adobe Kuler
      6m 48s
    5. Using Recolor Artwork to modify colors across a site
      3m 57s
  5. 56m 54s
    1. Using the Save for Web & Devices feature
      6m 44s
    2. Understanding the GIF file format and its settings
      10m 20s
    3. Understanding the JPEG file format and its settings
      7m 39s
    4. Understanding the PNG file format and its settings
      3m 21s
    5. Understanding the WBMP file format and its settings
      1m 18s
    6. Understanding the SWF file format and its settings
      4m 13s
    7. Understanding the SVG file format and its settings
      3m 41s
    8. Adjusting the dimensions of a graphic
      4m 46s
    9. Optimizing files to a specific file size
      4m 5s
    10. Modifying Save for Web & Devices output settings
      6m 51s
    11. Previewing content in Adobe Device Central
      3m 56s
  6. 56m 6s
    1. Setting point type in Illustrator
      4m 11s
    2. Setting area type in Illustrator
      5m 20s
    3. Formatting text quickly with paragraph styles
      14m 39s
    4. Overriding formatting with character styles
      3m 2s
    5. Controlling text anti-aliasing
      4m 50s
    6. Simulating the CSS box model
      11m 14s
    7. Adding cool reflections to text and graphics
      8m 26s
    8. Applying settings quickly with Graphic Styles
      4m 24s
  7. 35m 56s
    1. Understanding the concept of slicing
      3m 22s
    2. Creating slices manually
      4m 26s
    3. Creating slices from guides
      2m 45s
    4. Creating slices from objects
      7m 33s
    5. Understanding the different slice types
      4m 20s
    6. Applying settings to slices
      9m 20s
    7. Creating hotspots with image maps
      4m 10s
  8. 23m 35s
    1. Exporting static SWF files from Illustrator
      3m 35s
    2. Animated SWF: Converting Illustrator layers to SWF frames
      4m 3s
    3. Animated SWF: Using blends to define motion
      8m 35s
    4. Animated SWF: Adding static artwork to an animation
      3m 24s
    5. Animated SWF: Controlling time within an animation
      3m 58s
  9. 17m 13s
    1. Preserving slices and structure with PSD export
      6m 10s
    2. Working with Photoshop Smart Objects
      4m 35s
    3. Sharing color swatches between Illustrator and Photoshop
      2m 52s
    4. Generating an animated GIF file with Photoshop
      3m 36s
  10. 7m 28s
    1. Exporting HTML from Illustrator for use in Dreamweaver
      3m 31s
    2. Exporting CSS and DIVs from an Illustrator layout
      3m 57s
  11. 12m 37s
    1. Moving art between Illustrator and Fireworks
      6m 25s
    2. Using dynamic shapes from Fireworks
      3m 48s
    3. Sharing color swatches between Illustrator and Fireworks
      2m 24s
  12. 16m 7s
    1. Building files for use in Flash Catalyst
      4m 28s
    2. Creating a new Flash Catalyst project from an Illustrator file
      3m 40s
    3. Copying and pasting artwork between Illustrator and Flash Catalyst
      2m 4s
    4. Roundtrip editing between Illustrator and Flash Catalyst
      3m 36s
    5. Creating Flex skins for use in Flash Builder
      2m 19s
  13. 19m 48s
    1. Understanding symbols: The lifeblood of Flash
      4m 58s
    2. Symbols: Understanding 9-slice scaling
      4m 18s
    3. Setting text that will be used in Flash Professional
      3m 5s
    4. Moving artwork between Illustrator and Flash Professional
      7m 27s
  14. 1m 6s
    1. Goodbye
      1m 6s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Illustrator CS5 for Web and Interactive Design.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

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.

Sign up and receive emails about lynda.com and our online training library:

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

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.