PDA

Просмотр полной версии : Используем opaqueBackground


_Smirnoff
29.12.2007, 11:00
Как сделать его прозрачным? :confused:

etc
29.12.2007, 12:54
Сделать его transparent вместо opaque.

_Smirnoff
29.12.2007, 13:30
В случае когда мы юзаем DisplayObject(DisplayObject нет transparent)?

etc
29.12.2007, 13:41
А, речь не про html.
А что нам хелп про opaqueBackground говорит?

_Smirnoff
29.12.2007, 14:04
Да много, что говорит, а вот по поводу прозрачным его сделать не нашел.

etc
29.12.2007, 14:28
Неправда, там написано, как сделать прозрачным.

_Smirnoff
29.12.2007, 14:31
В упор не вижу.Можешь кинуть тект сюды плиз.

etc
29.12.2007, 14:58
Весь.
opaqueBackground property

opaqueBackground:Object [read-write]

Specifies whether the display object is opaque with a certain background color. A transparent bitmap contains alpha channel data and is drawn transparently. An opaque bitmap has no alpha channel (and renders faster than a transparent bitmap). If the bitmap is opaque, you specify its own background color to use.

If set to a number value, the surface is opaque (not transparent) with the RGB background color that the number specifies. If set to null (the default value), the display object has a transparent background.

The opaqueBackground property is intended mainly for use with the cacheAsBitmap property, for rendering optimization. For display objects in which the cacheAsBitmap property is set to true, setting opaqueBackground can improve rendering performance.

The opaque background region is not matched when calling the hitTestPoint() method with the shapeFlag parameter set to true.

The opaque background region does not respond to mouse events.



Implementation
public function get opaqueBackground():Object
public function set opaqueBackground(value:Object):void