off property

bool off
inherited

The availability and visibility of the display object.

Turning off a display object is similar to setting the visible property. The off property is used by third party runtimes like StageXL_GAF and StageXL_Toolkit to disable a DisplayObject without changing the visible state or removing it from the container. It's recommended that users do not use off but visible instead.

Implementation

bool off = false;
  1. @override
void off=(bool value)
override

The availability and visibility of the display object.

Turning off a display object is similar to setting the visible property. The off property is used by third party runtimes like StageXL_GAF and StageXL_Toolkit to disable a DisplayObject without changing the visible state or removing it from the container. It's recommended that users do not use off but visible instead.

Implementation

@override
set off(bool value) {
  super.off = value;
  if (value) _hideElement();
}