InteractiveObjectEx Extensions

getHitTestDisable() static method

public function getHitTestDisable(o:InteractiveObject) : Boolean

Scaleform version: 4.0.13

Returns state of ‘hitTestDisable’ flag. When it is set to true, the MovieClip.hitTest function will ignore this interactive object during hit test detection. In addition, all other mouse events are not propagated to the object.

The default value is false.

Parameters
o - An interactive object.

Returns A Boolean value representing state of ‘hitTestDisable’ flag.

See also: InteractiveObjectEx.setHitTestDisable

setHitTestDisable() static method

public function setHitTestDisable(o:InteractiveObject, f:Boolean) : void

Scaleform version: 4.0.13

Sets state of ‘hitTestDisable’ flag. When it is set to true, the MovieClip.hitTest function will ignore this interactive object during hit test detection. In addition, all other mouse events are not propagated to the object. The default value is false.

Parameters
o - An interactive object. f - A boolean value representing new state of ‘hitTestDisable’ flag.

See also InteractiveObjectEx.getHitTestDisable

getTopmostLevel() static method

public function getTopmostLevel (o:InteractiveObject) : Boolean

Scaleform version: 4.0.13

Returns state of ‘topmostLevel’ flag. When it is set to true, this character is displayed on the top of all other ones regardless of its depth.

Parameters
o - An interactive object.

Returns A boolean value representing state of ‘topmostLevel’ flag.

See also: InteractiveObjectEx.setTopmostLevel

setTopmostLevel () static method

public function setTopmostLevel(o:InteractiveObject, f:Boolean) : void

Scaleform version: 4.0.13

Sets state of ‘topmostLevel’ flag. If it is set to true then this character is displayed on the top of all other ones regardless of its depth. This might be useful for implementing custom mouse cursors when the cursor should be drawn above objects from all levels. The default value is false.

In case of marking several characters as "topmostLevel", the draw order is the same as it would be without marking the characters topmost, i.e. if objectA was drawn underneath the objectB, then after making them topmost the objectA will still be under objectB, regardless of the order of setting "topmostLevel" property to true. Note: Once a character is marked as "topmostLevel", the swapDepth ActionScript function will not have any effect on this character.

The default value is false.

Note: Only transformation properties will be inherited from the character's current parent while this property is set to true. This means that other properties of the parent and ancestor nodes will no longer be applied to the topmostLevel node, including visibility, ColorTransform, filters, etc. If these properties are desired, they should be propagated on a case-by-case basis by querying them from the parent, and applying them to the topmostLevel child in Actionscript.

Parameters
o - An interactive object. f - A boolean value representing new state of ‘topmostLevel’ flag.

See also:

InteractiveObjectEx.getTopmostLevel