Stage3DProxy
Stage3DProxy provides a proxy object to manage a single Stage3D instance as well as handling the creation and attachment of the Context3D (and in turn the back buffer) is uses. Stage3DProxy should never be created directly, but requested through Stage3DManager.
Inherited from EventDispatcher.
Created Stage3DProxy object has properties:
antiAlias |
The antiAliasing of the Stage3D. Int |
bufferClear |
The freshly cleared state of the backbuffer before any rendering. Boolean |
color |
The background color of the Stage3D. |
context3D |
[read-only] The Context3D object associated with the given Stage3D object. (Context3D) |
driverInfo |
[read-only] The driver information as reported by the Context3D object (if any) String |
enableDepthAndStencil |
Boolean |
height |
The height of the Stage3D. Int |
mouse3DManager |
|
profile |
[read-only] String |
renderSurfaceSelector |
[read-only] Int |
renderTarget |
[read-only] (TextureBase) |
scissorRect |
|
stage3D |
[read-only] The base Stage3D object associated with this proxy. (Stage3D) |
stage3DIndex |
[read-only] The index of the Stage3D which is managed by this instance of Stage3DProxy. Int |
touch3DManager |
|
usesSoftwareRendering |
[read-only] Indicates whether the Stage3D managed by this proxy is running in software mode. Boolean |
viewPort |
[read-only] A viewPort rectangle equivalent of the Stage3D size and position. (Rectangle) |
visible |
The visibility of the Stage3D. Boolean |
width |
The width of the Stage3D. Int |
x |
The x position of the Stage3D. Number |
y |
The y position of the Stage3D. Number |
methods:
addEventListener(type, listener, useCapture, priority, useWeakReference) |
[override] Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event. |
type - The type of event. String listener - The listener function that processes the event. Function useCapture - (default = false) - Determines whether the listener works in the capture phase or the target and bubbling phases. If useCapture is set to true, the listener processes the event only during the capture phase and not in the target or bubbling phase. If useCapture is false, the listener processes the event only during the target or bubbling phase. To listen for the event in all three phases, call addEventListener twice, once with useCapture set to true, then again with useCapture set to false. Boolean priority - (default = 0) - The priority level of the event listener. The priority is designated by a signed 32-bit integer. The higher the number, the higher the priority. All listeners with priority n are processed before listeners of priority n-1. If two or more listeners share the same priority, they are processed in the order in which they were added. The default priority is 0. useWeakReference - (default = false) - Determines whether the reference to the listener is strong or weak. A strong reference (the default) prevents your listener from being garbage-collected. A weak reference does not. Boolean |
clear() |
|
|
clearDepthBuffer() |
|
|
configureBackBuffer(backBufferWidth, backBufferHeight, antiAlias, enableDepthAndStencil) |
Configures the back buffer associated with the Stage3D object. |
backBufferWidth - The width of the backbuffer. backBufferHeight - The height of the backbuffer. antiAlias - The amount of anti-aliasing to use. enableDepthAndStencil - Indicates whether the back buffer contains a depth and stencil buffer. Boolean |
dispose() |
Disposes the Stage3DProxy object, freeing the Context3D attached to the Stage3D. |
|
present() |
|
|
recoverFromDisposal() |
Returns Boolean |
|
removeEventListener(type, listener, useCapture) |
[override] Removes a listener from the EventDispatcher object. |
type - The type of event. String listener - The listener object to remove. Function useCapture - (default = false) - Specifies whether the listener was registered for the capture phase or the target and bubbling phases. If the listener was registered for both the capture phase and the target and bubbling phases, two calls to removeEventListener() are required to remove both, one call with useCapture() set to true, and another call with useCapture() set to false. Boolean |
setRenderTarget(target, enableDepthAndStencil, surfaceSelector) |
|
target - (TextureBase) enableDepthAndStencil - (default = false) Boolean surfaceSelector - (default = 0) Int |
Events: Event:
Lib.Media.Events.Event.ENTER_FRAME |
The Event.ENTER_FRAME constant defines the value of the type property of an enterFrame event object. |
Created with the Personal Edition of HelpNDoc: Full-featured multi-format Help generator