Home > Terms > English (EN) > 9-slice scaling

9-slice scaling

9-slice scaling allows you to specify how scaling is applied to specific areas of a movie clip. With 9-slice scaling, you can ensure that the movie clip does not become distorted when scaled. With normal scaling, Flash scales all parts of a movie clip equally, in both the horizontal and vertical dimensions. For many movie clips, this equal scaling can make the clip's graphics look strange, especially at the corners and edges of rectangular movie clips. This is often true of movie clips used as user interface elements, such as buttons.

The movie clip is visually divided into nine sections with a grid-like overlay, and each of the nine areas is scaled independently. To maintain the visual integrity of the movie clip, corners are not scaled, while the remaining areas of the image are scaled (as opposed to being stretched) larger or smaller, as needed.

When a movie clip symbol has 9-slice scaling applied, it appears in the Library panel preview window with the guides displayed. If Enable Live Preview is turned on (Control > Enable Live Preview) when you scale instances of the movie clip on the Stage, you will see the 9-slice scaling applied on the Stage.

Note: 9-slice scaling cannot be applied to Graphic or Button symbols. Bitmaps inside 9-slice enabled movie clips are scaled normally, without 9-slice distortion, while the other movie clip contents are scaled according to the 9-slice guides.

A 9-slice-enabled movie clip can contain nested objects within it, but only certain types of objects inside the movie clip properly scale in the 9-slice manner. To make a movie clip with internal objects that also adhere to 9-slice scaling when the movie clip is scaled, the nested objects must be shapes, drawing objects, groups, or graphic symbols.

To enable 9-slice scaling for symbols in Flash, select an instance on the Stage and press F8 (or choose Modify > Convert to Symbol). Expand the Advanced settings in the Convert to Symbol dialog box and click the check box next to the Enable for 9-slice Scaling Guides option.

To apply 9-slice guides to a symbol, use Adobe Fireworks or Adobe Illustrator to create a symbol and then follow these steps:

  1. Double-click the symbol or button to enter symbol-editing mode.
  2. In the Properties panel, select Enable for 9-slice Scaling Guides.
  3. Move the guides and place them appropriately on the button or symbol. Make sure that the parts of the symbol that you don't want to be distorted when scaling (such as the corners) are outside the guides.
  4. (Optional) Lock the guides: In the Properties panel, select the Lock option for 9-slice scaling guides.
  5. Return to the containing page by clicking the page icon at the top of the document panel.
  6. Resize the symbol as needed by using the Scale tool as desired.
  7. Import the symbol into Flash. The 9-slice scaling will still be enabled when you transform the symbol in Flash using the Free Transform tool.
0
Collect to Blossary

Member comments

You have to log in to post to discussions.

Terms in the News

Billy Morgan

Sports; Snowboarding

The British snowboarder Billy Morgan has landed the sport’s first ever 1800 quadruple cork. The rider, who represented Great Britain in the 2014 Winter Olympics in Sochi, was in Livigno, Italy, when he achieved the man-oeuvre. It involves flipping four times, while body also spins with five complete rotations on a sideways or downward-facing axis. The trick ...

Marzieh Afkham

Broadcasting & receiving; News

Marzieh Afkham, who is the country’s first foreign ministry spokeswoman, will head a mission in east Asia, the state news agency reported. It is not clear to which country she will be posted as her appointment has yet to be announced officially. Afkham will only be the second female ambassador Iran has had. Under the last shah’s rule, Mehrangiz Dolatshahi, a ...

Weekly Packet

Language; Online services; Slang; Internet

Weekly Packet or "Paquete Semanal" as it is known in Cuba is a term used by Cubans to describe the information that is gathered from the internet outside of Cuba and saved onto hard drives to be transported into Cuba itself. Weekly Packets are then sold to Cuban's without internet access, allowing them to obtain information just days - and sometimes hours - after it ...

Asian Infrastructure Investment Bank (AIIB)

Banking; Investment banking

The Asian Infrastructure Investment Bank (AIIB) is an international financial institution established to address the need in Asia for infrastructure development. According to the Asian Development Bank, Asia needs $800 billion each year for roads, ports, power plants or other infrastructure projects before 2020. Originally proposed by China in 2013, a signing ...

Spartan

Online services; Internet

Spartan is the codename given to the new Microsoft Windows 10 browser that will replace Microsoft Windows Internet Explorer. The new browser will be built from the ground up and disregard any code from the IE platform. It has a new rendering engine that is built to be compatible with how the web is written today. The name Spartan is named after the ...

Featured Terms

Thuy Do
  • 0

    Terms

  • 0

    Blossaries

  • 0

    Followers

Industry/Domain: Zoology Category: Zoological terms

phylum placozoa

Macroscopic, flattened marine animals, composed of ventral and dorsal epithelial layers enclosing ...

Thuy Do
  • 0

    Terms

  • 0

    Blossaries

  • 0

    Followers

Industry/Domain: Zoology Category: Zoological terms

phylum cnidaria

Cnidarians. Hydras, hydroids, jellyfish, sea anemones, and corals. Free-swimming or sessile, with ...

qys1978
  • 0

    Terms

  • 1

    Blossaries

  • 0

    Followers

Industry/Domain: Accounting Category: Auditing

share a term with millions

Share a term with millions of users around the world and increase your online visibility.Share a ...

Bob
  • 0

    Terms

  • 1

    Blossaries

  • 5

    Followers

Industry/Domain: Plants Category: Trees

oak

Genus native to the Northern Hemisphere with spirally arranged leaves, catkins for flowers and ...

Bagar
  • 0

    Terms

  • 64

    Blossaries

  • 6

    Followers

Industry/Domain: Geography Category: Geography

Everest

The last but not least mount Everest. The Earth's highest mountain, with a peak at 8,848 metres ...

David Parkin
  • 0

    Terms

  • 1

    Blossaries

  • 36

    Followers

Industry/Domain: Plants Category: General plants

aglaonema

Genus of about 20 species of usually rhizomatous, evergreen perennials from tropical forest in Asia. ...

Aidan Teare
  • 0

    Terms

  • 0

    Blossaries

  • 6

    Followers

Industry/Domain: Science Category: General science

Robojelly

Robojelly is a hydrogen-powered robot desgined in the United States that moves through the water ...

  • 0

    Terms

  • 0

    Blossaries

  • 1

    Followers

Industry/Domain: People Category: Entrepreneurs

Ferdinand Porsche

Ferdinand Porsche (3 September 1875 – 30 January 1951) was an Austrian-German automotive engineer ...

  • 0

    Terms

  • 40

    Blossaries

  • 4

    Followers

Industry/Domain: Broadcasting & receiving Category: News

Marzieh Afkham

Marzieh Afkham, who is the country’s first foreign ministry spokeswoman, will head a mission in east ...

  • 0

    Terms

  • 0

    Blossaries

  • 1

    Followers

Industry/Domain: Accounting Category: Auditing

define1

Share a term with millions of users around the world and increase your online visibility.Share a ...