Description

A shape display element. Do not instanciate this class directly.

Extends

  • flwebgl.event.EventDispatcher

Methods

getBounds(targetCoordinateSpace, bFastBounds)

Description

This method returns the bounding rectangle.

Parameters

Name Type Description
targetCoordinateSpace Shape or MovieClip (Optional default = undefined) The display object that defines the coordinate system to use. If no value is specified, it returns the local bounds.
bFastBounds boolean (Optional, default = true) Specifies whether to return the original or default bounds (fast computation) or the transformed local bounds (more accurate but comparatively slower).

Returns

  • Bounds of the display object
  • Type - flwebgl.geom.Rect

getGlobalColorTransform()

Description

    Returns the global color transform of the display object

Returns

  • Type - flwebgl.geom.ColorTransform

getGlobalTransform()

Description

    Returns the global transform of the display object

Returns

  • Type - flwebgl.geom.Matrix

getLocalColorTransform()

Description

    Returns the local color transform of the display object

Returns

  • Type - flwebgl.geom.ColorTransform

getLocalTransform()

Description

    Returns the local transform of the display object

Returns

  • Type - flwebgl.geom.Matrix

getName()

Description

    Returns the name for this display object

Returns

  • Type - String

isVisible()

Description

     Returns the visibility flag for the display object

Returns

  • Type - boolean

setLocalColorTransform(colorTransform)

Description

 Sets the local color transform of the display object

Parameters

Name Type Description
colorTransform flwebgl.geom.ColorTransform The color transform to be set

setLocalTransform(transform)

Description

Sets the local transform of the display object

Parameters

Name Type Description
transform flwebgl.geom.Matrix The transform to be set

Example

See the example under setLocalTransform(transform) in the MovieClip class.

setName(name)

Description

Sets the name for this display object

Parameters

Name Type Description
name string The name of the display object

setVisible(flag)

Description

Sets the visibility flag for this display object

Parameters

Name Type Description
flag boolean The visibility flag

Example

See the example under the setVisible(flag) function in the MovieClip class.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy