DR Developer's Guide
DR Interfaces | DR Methods | DR Types and Misc API

IMoaDrValue

Interface ID: IID_IMoaDrValue
Pointer type: PIMoaDrValue
Inheritance: IMoaUnknown
Header file: drivalue.h

Methods

Data conversion
ValueToCMRef()
CMRefToValue()
SpriteRefToValue()
ValueToCastLibRef()
CastLibRefToValue()
ValueToSoundSpriteRef()
SoundSpriteRefToValue()

CastLibRefToValue()

Syntax
CastLibRefToValue(ConstPMoaDrCastLibRef pCLRef, PMoaMmValue pValue)
Parameters
pCLRef
Pointer to a cast library reference
pValue
Pointer to MoaMmValue to receive the result
Returns
MoaError
Description
Creates a new value object from a cast library reference.

CMRefToValue()

Syntax
CMRefToValue(ConstPMoaDrCMRef pCMRef, PMoaMmValue pValue)
Parameters
pCMRef
Pointer to a ConstPMoaDrCMRef to be used as the basis for the new value
pValue
Pointer to MoaMmValue to receive the result
Returns
MoaError
Description
Creates a new cast member reference-type MoaMmValue from a MoaDrCMRef. pCMRef is a pointer to a MoaDrCMRef to be used as the basis for the new value. pValue contains a pointer to a MoaMmValue to receive the result. This call populates the MoaMmValue at pValue with a new MoaMmValue, overwriting any current value. Make sure to release any preexisting value before making this call. The caller is responsible for releasing the returned value using IMoaMmUtils::ValueRelease().

SoundSpriteRefToValue()

Syntax
SoundSpriteRefToValue(ConstPMoaDrSoundSpriteRef pSRef, PMoaMmValue pValue)
Parameters
pSRef
Pointer to a sound sprite reference
pValue
Pointer to MoaMmValue to receive the result
Returns
MoaError
Description
Creates a new value object from a sound sprite reference.

SpriteRefToValue()

Syntax
SpriteRefToValue(ConstPMoaDrSpriteRef pSRef, PMoaMmValue pValue)
Parameters
pSRef
Pointer to a sprite reference
pValue
Pointer to MoaMmValue to receive the result
Returns
MoaError
Description
a new value object from a sprite reference.

ValueToCastLibRef()

Syntax
ValueToCastLibRef(ConstPMoaMmValue pValue, PMoaDrCastLibRef pCLRef)
Parameters
pValue
Pointer to a value object
pCLRef
Pointer to a place to store the cast library reference.
Returns
MoaError
Description
Converts a value object to a MoaDrCastLibRef structure.

ValueToCMRef()

Syntax
ValueToCMRef(ConstPMoaMmValue pValue, PMoaDrCMRef pCMRef)
Parameters
pValue
Pointer to a value object
pCMRef
Pointer to a MoaDrCMRef to receive the result
Returns
kMoaErr_NoErr successful
kMoaDrErr_CastMemberExpected Type mismatch: CMRef expected
Description
Obtains the MoaDrCMRef for a cast member reference-type MoaMmValue. pCMRef is a pointer to a MoaDrCMRef to receive the result. Returns kMoaDrErr_CastMemberExpected if pValue is not an cast member reference-type value.

ValueToSoundSpriteRef()

Syntax
ValueToSoundSpriteRef(ConstPMoaMmValue pValue, PMoaDrSoundSpriteRef pSRef)
Parameters
pValue
Pointer to a value object
pSRef
Pointer to a MoaDrSoundSpriteRef structure
Returns
MoaError
Description
Tries to convert a value object to a sound sprite reference.

ValueToSpriteRef()

Syntax
ValueToSpriteRef(ConstPMoaMmValue pValue, PMoaDrSpriteRef pSRef)
Parameters
pValue
Pointer to a value object
pSRef
Pointer to a MoaDrSpriteRef structure
Returns
MoaError
Description
Attempts to convert a value object to a sprite reference

Copyright © 1995-2008 Adobe Macromedia Software LLC, Inc.