Показать сообщение отдельно
Старый 03.08.2008, 22:00
Venya2007 вне форума Посмотреть профиль Отправить личное сообщение для Venya2007 Найти все сообщения от Venya2007
  № 4  
Ответить с цитированием
Venya2007

Регистрация: Jul 2008
Адрес: Gamburg
Сообщений: 108
Kamchatka
Masking display objects
You can use a display object as a mask to create a hole through which the contents of another display object are visible.

Subtopics
Defining a mask

About masking device fonts

Alpha channel masking

Defining a mask
To indicate that a display object will be the mask for another display object, set the mask object as the mask property of the display object to be masked:

Код:
// Make the object maskSprite be a mask for the object mySprite.
mySprite.mask = maskSprite;
см. Хелп Display programming > Manipulating display objects > Masking display objects