de.mirell.m3d

class CModel

Object | +--de.mirell.m3d.C3DObject | +--de.mirell.m3d.CModel
Implemented Interfaces: IDrawable, IRotateable, IXMLSerializableAll Known Subclasses: CCube, CPyramid, CSphere, CSpriteSphere

class CModel extends C3DObject
  • Author:
    Mirell Development
  • Version:
    N/A

Field Summary

public onFileLoaded: Function

Property Summary

public onPress: Function (read, write)
Set the event method associated with this standard movieclip eventRetrieve the event method associated with this standard movieclip event
public onRollOut: Function (read, write)
Set the event method associated with this standard movieclip eventRetrieve the event method associated with this standard movieclip event
public onRollOver: Function (read, write)
Set the event method associated with this standard movieclip event Retrieve the event method associated with this standard movieclip event
Properties inherited from class de.mirell.m3d.C3DObject

Constructor

public CModel ( )

Method Summary

public addObject ( Item: C3DObject ): C3DObject
public createMovieClip ( ): Void
Trigger creation of the object's movieclip
public destroyMovieClip ( ): Void
Trigger removal of the object's movieclip
public draw ( ): Void
Draws the object
public fromXML ( value: XML ): Void
Unserializes XML into the object
public getFaces ( ): Array
public getName ( ): String
public getStyle ( ): CStyle
public hasFaces ( ): Boolean
Determine if object has faces
public loadFromFile ( Filename: String ): Void
public removeObject ( Item: C3DObject ): Void
public removeObjects ( ): Void
public rotate ( Value: CQuaternion ): Void
Rotate the object using a quaternion
public setName ( Value: String ): Void
public setStyle ( Value: CStyle ): Void
public toXML ( ): XML
Serializes the object into XML

Field Documentation

onFileLoaded

public var onFileLoaded: Function

    Property Documentation

    onPress

    public onPress: Function (read, write)
    Set the event method associated with this standard movieclip eventRetrieve the event method associated with this standard movieclip event

    onRollOut

    public onRollOut: Function (read, write)
    Set the event method associated with this standard movieclip eventRetrieve the event method associated with this standard movieclip event

    onRollOver

    public onRollOver: Function (read, write)
    Set the event method associated with this standard movieclip event Retrieve the event method associated with this standard movieclip event

    Constructor Documentation

    CModel

    public function CModel (
    )

      Method Documentation

      addObject

      public function addObject (
      Item: C3DObject): C3DObject

        createMovieClip

        public function createMovieClip (
        ): Void
        Trigger creation of the object's movieclip
        If a Display was set a new movieclip is created and the target for all drawing operations of the object

        destroyMovieClip

        public function destroyMovieClip (
        ): Void
        Trigger removal of the object's movieclip
        Remove the movie created from a prior call to createMovieClip

        draw

        public function draw (
        ): Void
        Draws the object
        This method is called from the renderer when the object needs to draw itself.

        fromXML

        public function fromXML (
        value: XML): Void
        Unserializes XML into the object
        Object state is set according to XML.

        getFaces

        public function getFaces (
        ): Array

          getName

          public function getName (
          ): String

            getStyle

            public function getStyle (
            ): CStyle

              hasFaces

              public function hasFaces (
              ): Boolean
              Determine if object has faces

              loadFromFile

              public function loadFromFile (
              Filename: String): Void

                removeObject

                public function removeObject (
                Item: C3DObject): Void

                  removeObjects

                  public function removeObjects (
                  ): Void

                    rotate

                    public function rotate (
                    Value: CQuaternion): Void
                    Rotate the object using a quaternion

                    setName

                    public function setName (
                    Value: String): Void

                      setStyle

                      public function setStyle (
                      Value: CStyle): Void

                        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.

                        The documentation was generated from the following file:
                        • CModel.as, Last Modified: 03.09.2004 03:35:12