03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

my_txt._width = 200;<br />

my_txt._height = 200;<br />

_highquality (TextField._highquality property)<br />

public _highquality : Number<br />

Deprecated since Flash Player 7. This property was deprecated in favor of<br />

TextField._quality.<br />

Specifies the level of anti-aliasing applied to the current SWF file. Specify 2 (best quality) to<br />

apply high quality with bitmap smoothing always on. Specify 1 (high quality) to apply antialiasing;<br />

this smooths bitmaps if the SWF file does not contain animation <strong>and</strong> is the default<br />

value. Specify 0 (low quality) to prevent anti-aliasing.<br />

See also<br />

_quality (TextField._quality property)<br />

hscroll (TextField.hscroll property)<br />

public hscroll : Number<br />

Indicates the current horizontal scrolling position. If the hscroll property is 0, the text is not<br />

horizontally scrolled.<br />

The units of horizontal scrolling are pixels, while the units of vertical scrolling are lines.<br />

Horizontal scrolling is measured in pixels because most fonts you typically use are<br />

proportionally spaced; meaning, the characters can have different widths. Flash performs<br />

vertical scrolling by line because users usually want to see a line of text in its entirety, as<br />

opposed to seeing a partial line. Even if there are multiple fonts on a line, the height of the<br />

line adjusts to fit the largest font in use.<br />

Note: The hscroll property is zero-basednot one-based like the vertical scrolling property<br />

TextField.scroll.<br />

Example<br />

The following example scrolls the my_txt text field horizontally using two buttons called<br />

scrollLeft_btn <strong>and</strong> scrollRight_btn. The amount of scroll appears in a text field called<br />

scroll_txt. Add the following ActionScript to your FLA or ActionScript file:<br />

this.createTextField("scroll_txt", this.getNextHighestDepth(), 10, 10, 160,<br />

20);<br />

this.createTextField("my_txt", this.getNextHighestDepth(), 10, 30, 160,<br />

22);<br />

my_txt.border = true;<br />

624 ActionScript classes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!