BETA**
RenderEvent is dispatched (optionally) once a listener is added to a DisplayObject. When the internal Stage renderer is ready to draw the specified object, a RenderEvent will be dispatched.
Caching a RenderEvent to access at a later time will not work properly. Also, since the RenderEvent is more of an internal API, there may be additional concerns to order to ensure that all objects and features work as-intended.
The type of RenderEvent dispatched will match the type of rendering being used.
This renderer type will match the default Stage render, but also can depend on
whether an off-screen render (such as DisplayObject cacheAsBitmap
or BitmapData
draw
) is being used.
Static variables
staticinlineread onlyCLEAR_DOM:EventType<RenderEvent> = "clearDOM"
The RenderEvent.CLEAR_DOM
constant defines the value of the type
property
of an renderEvent
event object.
This event has the following properties:
Property | Value |
---|---|
bubbles | true |
cancelable | true |
currentTarget | The object that is actively processing the Event object with an event listener. |
renderer | A reference to the active display object renderer. |
target | The display object that is going to be rendered. |
staticinlineread onlyRENDER_CAIRO:EventType<RenderEvent> = "renderCairo"
The RenderEvent.RENDER_CAIRO
constant defines the value of the type
property
of an renderEvent
event object.
This event has the following properties:
Property | Value |
---|---|
bubbles | true |
cancelable | true |
currentTarget | The object that is actively processing the Event object with an event listener. |
renderer | A reference to the active display object renderer. |
target | The display object that is going to be rendered. |
staticinlineread onlyRENDER_CANVAS:EventType<RenderEvent> = "renderCanvas"
The RenderEvent.RENDER_CANVAS
constant defines the value of the type
property
of an renderEvent
event object.
This event has the following properties:
Property | Value |
---|---|
bubbles | true |
cancelable | true |
currentTarget | The object that is actively processing the Event object with an event listener. |
renderer | A reference to the active display object renderer. |
target | The display object that is going to be rendered. |
staticinlineread onlyRENDER_DOM:EventType<RenderEvent> = "renderDOM"
The RenderEvent.RENDER_DOM
constant defines the value of the type
property
of an renderEvent
event object.
This event has the following properties:
Property | Value |
---|---|
bubbles | true |
cancelable | true |
currentTarget | The object that is actively processing the Event object with an event listener. |
renderer | A reference to the active display object renderer. |
target | The display object that is going to be rendered. |
staticinlineread onlyRENDER_OPENGL:EventType<RenderEvent> = "renderOpenGL"
The RenderEvent.RENDER_OPENGL
constant defines the value of the type
property
of an renderEvent
event object.
This event has the following properties:
Property | Value |
---|---|
bubbles | true |
cancelable | true |
currentTarget | The object that is actively processing the Event object with an event listener. |
renderer | A reference to the active display object renderer. |
target | The display object that is going to be rendered. |
Constructor
new(type:String, bubbles:Bool = false, cancelable:Bool = false, ?objectMatrix:Matrix, ?objectColorTransform:ColorTransform, allowSmoothing:Bool = true)
Creates an Event object that contains information about render events. Event objects are passed as parameters to event listeners.
Parameters:
type | The type of the event. Possible values
are: |
---|---|
bubbles | Determines whether the Event object participates in the bubbling stage of the event flow. |
cancelable | Determines whether the Event object can be canceled. |
objectMatrix | Sets the concatenated matrix for the display object being rendered. |
objectTransform | Sets the concatenated color transform for the display object being rendered. |
allowSmoothing | Determines whether the current render should allow smoothing. |
Variables
objectColorTransform:ColorTransform
The concatenated color transform for the display object being rendered.