Stage3D object provides acceess to Context3D object


Inherited from EventDispatcher


Can be received from stage:

Lib.Media.Display.stage.stage3Ds[1]


has method:

requestContext3D(context3DRenderMode)

This method makes attept to create Context3D object. In case of success method dispatch Event.CONTEXT3D_CREATE event and if fail ErrorEvent.ERROR event

context3DRenderMode - string, not in use currently


Examples:


stage = Lib.Media.Display.stage

stage3D = stage.stage3Ds[1] -- Stage3D object here

stage3D.addEventListener(Lib.Media.Events.Event.CONTEXT3D_CREATE, 

function(e)

       print("Context 3D created")

            context3D = stage3D.context3D

end, false, 0, false)

stage3D.requestContext3D("")





Created with the Personal Edition of HelpNDoc: Easily create Help documents