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

Illustrator CS4 for the Web

Using 9-slice scaling


From:

Illustrator CS4 for the Web

with Mordy Golding

Video: Using 9-slice scaling

As a designer, depending on the medium that you are creating your artwork for, you face different challenges. For example, print designers may be faced with choosing between different inks or different types of paper. We have discussed how choosing the right color can also be a challenge for even web designers, but when it comes to working with Flash itself, the fact that the artwork that we create is interactive that it changes as its use can also offer additional challenges to a designer. Let me explain what I mean. Let's say I wanted to create a button that changes over time, maybe I wanted to animate inside of Flash. Well, when I define my button and I specify how it should look, how does it look when it actually goes ahead and changes its state? Let's take this button for example; I am using a little bit more on this.
Expand all | Collapse all
  1. 3m 22s
    1. Welcome
      1m 23s
    2. Understanding pixel- and vector-based web graphics
      1m 36s
    3. Using the exercise files
      23s
  2. 10m 27s
    1. Using the Web New Document Profile
      1m 56s
    2. Creating your own New Document Profiles
      1m 57s
    3. Taking advantage of web templates and content
      1m 48s
    4. Setting up a custom web workspace
      4m 46s
  3. 23m 42s
    1. Setting measurement preferences
      1m 11s
    2. Setting preview bounds
      2m 38s
    3. Setting grid preferences
      2m 18s
    4. Understanding Pixel Preview
      3m 54s
    5. Understanding anti-aliasing
      5m 3s
    6. Disabling anti-aliasing
      2m 35s
    7. Setting up color management
      6m 3s
  4. 9m 49s
    1. Comparing pixel dimension and resolution
      2m 26s
    2. Grid is good, grid is great
      4m 45s
    3. Working with multiple artboards
      2m 38s
  5. 10m 1s
    1. Understanding web-safe colors and hexadecimal
      4m 31s
    2. Pulling colors from Kuler
      1m 43s
    3. Using the Color Guide with web-safe colors
      1m 48s
    4. Converting art to web-safe or limited colors
      1m 59s
  6. 22m 5s
    1. Understanding slicing
      1m 36s
    2. Using manual slicing
      2m 16s
    3. Using object-based slicing
      2m 33s
    4. Comparing user slices and auto slices
      1m 57s
    5. Applying settings to slices
      4m 59s
    6. Defining an image map
      3m 46s
    7. Working with slices
      4m 58s
  7. 10m 45s
    1. Making text look good on the web
      2m 58s
    2. Adding reflections
      2m 42s
    3. Applying rounded corners
      1m 7s
    4. Creating dynamic text buttons
      3m 58s
  8. 19m 54s
    1. Optimizing web graphics
      2m 41s
    2. Comparing GIF, JPG, PNG, and WBMP files
      6m 38s
    3. Setting up transparency and matte
      2m 52s
    4. Adjusting image dimensions
      2m 7s
    5. Optimizing to a specific file size
      2m 27s
    6. Editing output settings
      3m 9s
  9. 4m 3s
    1. Understanding Illustrator and Flash workflows
      2m 42s
    2. Understanding SVG
      1m 21s
  10. 19m 14s
    1. Defining symbols in Illustrator
      5m 23s
    2. Editing symbols in Illustrator
      2m 19s
    3. Choosing a symbol type
      2m 7s
    4. Setting the Flash registration
      1m 23s
    5. Using 9-slice scaling
      4m 34s
    6. Defining static and input text
      3m 28s
  11. 14m 17s
    1. Setting preferences in Flash
      1m 27s
    2. Copying and pasting elements
      1m 50s
    3. Exporting entire files
      4m 35s
    4. The Save for Web & Devices dialog
      2m 58s
    5. Exporting SWF files
      3m 27s
  12. 16m 11s
    1. Converting layers to frames
      3m 17s
    2. Working with blends
      3m 11s
    3. Releasing to layers
      3m 44s
    4. Defining static layers
      2m 43s
    5. Adjusting timing
      3m 16s
  13. 11m 29s
    1. Working with Photoshop
      2m 18s
    2. Working with Acrobat Pro
      2m 54s
    3. Working with Dreamweaver
      2m 14s
    4. Working with Flash Catalyst
      4m 3s
  14. 42s
    1. Goodbye
      42s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
Please wait...
Illustrator CS4 for the Web
2h 56m Intermediate Jan 23, 2009

Viewers: in countries Watching now:

Mordy Golding demonstrates how to be more productive, efficient, and creative by taking advantage of Adobe Illustrator to create pixel-perfect web graphics and interactive Flash content. Illustrator CS4 for the Web investigates the pros and cons of pixel- and vector-based web graphics, demonstrates efficient workflows, and explores the creative options available in Illustrator. Mordy also covers design techniques, such as creating typography that works well on screen, adding reflections, and making Flash animations. He discusses new Illustrator CS4 features, including using multiple artboards, bringing art into Dreamweaver, and utilizing Flash Catalyst. Exercise files accompany the course.

Topics include:
  • Differentiating between pixel- and vector-based web graphics
  • Creating screen-friendly typography
  • Adding reflections
  • Creating Flash animations
  • Using multiple artboards
  • Bringing art into Dreamweaver
  • Utilizing Flash Catalyst
Subjects:
Web Web Graphics Prototyping Web Design
Software:
Illustrator
Author:
Mordy Golding

Using 9-slice scaling

As a designer, depending on the medium that you are creating your artwork for, you face different challenges. For example, print designers may be faced with choosing between different inks or different types of paper. We have discussed how choosing the right color can also be a challenge for even web designers, but when it comes to working with Flash itself, the fact that the artwork that we create is interactive that it changes as its use can also offer additional challenges to a designer. Let me explain what I mean. Let's say I wanted to create a button that changes over time, maybe I wanted to animate inside of Flash. Well, when I define my button and I specify how it should look, how does it look when it actually goes ahead and changes its state? Let's take this button for example; I am using a little bit more on this.

Notice it's a nice button that has rounded corners. But look what happens, if I go ahead now and I resize it. Let's say I stretch this that it should grow over time. Look what happens to the corners. Well, it was nice pretty rounded corners before, now it turns into these ugly stretched corners. Again, this is before and this is after. What are the challenges about working with graphics that you know are going to published with Flash is to find the way to have these particular elements scale gracefully. Well, the good news is that there is a feature inside of a symbol which we refer to as 9-Slice Scaling. It's way for us to kind of build intelligence into a symbol to tell that symbol how we should scale over time? Instead of waiting to get into Flash or define that type of functionality, we can actually as a Designer plug that right into the symbol, right here inside of Illustrator. And again, once I define it here inside of Illustrator, that property translates through directly into Flash.

So the first step here is going to be to define this into a symbol. I will go ahead and hit F8 on my keyboard and I will go ahead and I will call this one sliding_button. I will define it is a Movie Clip. I will leave my Flash Registration set to the upper left- hand corner here, and I will choose this option called Enable Guides for 9- slice scaling. Now I will click OK. Now I want to be able to edit my symbol. So I am simply going to come over here and double-click into my artboard. I got a dialog box which by the way if you are editing symbols all the time, you might want to choose Don't Show Again and I will click OK.

Now take a look at this, because I went ahead and I specified to turn on that option for 9-slice scaling, my symbol now appears with four guides. Two of them are horizontal and two of them are vertical. The way that I position these guides are going to make that particular symbol intelligent and know how it should scale. Because of the way that these particular guides are drawn I am left with 9 regions on my screen 1, 2, 3, 4, 5, 6, 7, 8, and 9. Each of these regions will get scaled in a different way. Basically, the way that 9-slice scaling works is that the middle region over here will always scale both horizontally and vertically. However, each of the corner regions here do not scale at all.

So any artwork that appears in this particular region and this region here, and in this region, and finally this one here as well, will always remain as they are. Artwork that appears in this region here and in this region here will only scale vertically. And likewise any artwork that appears within this area or this area will only scale in a horizontal fashion. So let's position our guides. What I will do first is make sure that my guides are not locked. The easiest way to do this is to use the Contextual menu. If you are on a Mac with just a single- button mouse, hold down the Ctrl key and then click to get the menu. If you are on Windows or if you have a two-button mouse, just hit the right- click button on your mouse.

Here I will uncheck Lock Guides. Now I will simply position the guides that I have the regions instead of the way just that I want my object to scale. By carefully doing this right now, I am basically telling Illustrator, this particular area and this particular area you can only scale in horizontal fashion. This one here and this one here scales vertically and the corners will always remain unchanged. In this way, when my object is scaled and it grows, I will make sure that the corners don't change and they always remain nice and sharp the way that I have defined them. Now that I am there with my 9-slice scaling, I will simply hit the Escape key to go back to my regular piece of artwork. Now here is the important thing to know about Illustrator. Because of inside of Illustrator and because the 9-slice scaling is only a Flash- based feature, if I scale my artwork here inside of Illustrator, I won't see the effects of the 9-slice scaling.

For example, I will click on this symbol right here and I will stretch it, and you will see that the corners really don't look that pretty at all. But take a look at this. If I now go to the File menu and I choose Save for Web & Devices, and I come over here-- Let's position this so I can see it better on my screen. And instead of a GIF format, I go ahead and choose the SWF format, right, for Flash. Now that I will see that the corners do appear correctly. That's because Illustrator is using the Flash Player to simulate what this particular piece of artwork is going to look like. So basically, I have added this functionality here inside of Illustrator and it will take effect as soon as I bring that into Flash.

There are currently no FAQs about Illustrator CS4 for the Web.

Share a link to this course
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.
Upgrade now


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.

Upgrade now

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 CS4 for the Web.

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


OK

Course retiring soon

Illustrator CS4 for the Web will be retired from the lynda.com library on April 24, 2014. Training videos and exercise files will no longer be available, but the course will still appear in your course history and certificates of completion. For updated training, check out Illustrator for Web Design in the lynda.com Online Training Library.


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
Welcome to the redesigned course page.

We’ve moved some things around, and now you can



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.

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.