dynamic class CScene extends Object
Definition of a 3D scene with lights, styles, objects and used cameras
- Author:Mirell Development
- Version:1.0.0
Field Documentation
Constructor Documentation
Method Documentation
fromXML
public function fromXML (
value: XML): Void
Unserializes XML into the object
Object state is set according to XML.
- Specified by:fromXML in interface de.mirell.xml.serialization.IXMLSerializable
- Parameters:
value XML which represents the serialized form of the object
loadFromFile
public function loadFromFile (
Filename: String): Void
Loads a scene from the specified filename.
Loads a scene from a XML file containing a CScene object in serialized-XML form equal to the output of toXML
- Parameters:
Filename A valid XML file containing serialized XML data
setViewport
public function setViewport (
Movie: MovieClip): Void
Sets the movie to render this scene on.
A Viewport is a MovieClip which is used to render the graphical output on.
- Parameters:
Movie The MovieClip this Scene will be drawn on
setViewportPosition
public function setViewportPosition (
x: Number,
y: Number): Void
y: Number): Void
Sets the position of the movie the scene is renderen on.
Moves the movie set using setViewport to the designated
x
and y
coordinates. In order to have correct rendering, do not position the viewport movieclip using the _x
and _x
properties!- Parameters:
x Horizontal position relative to parent movie of the viewport movie. y Vertical position relative to parent movie of the viewport movie.
setViewportSize
public function setViewportSize (
width: Number,
height: Number)
height: Number)
Sets the boundries of the viewport.
- Parameters:
width New width of the viewport height New height of the viewport
toXML
public function toXML (
): XML
Serializes the object into XML
The current object state will be serialized. The fromXML method must be able to unserialize the XML.
- Specified by:toXML in interface de.mirell.xml.serialization.IXMLSerializable
- Returns:The XML which contains the serialized representation of the object
- CScene.as, Last Modified: 29.11.2004 01:39:38