User Guide
553
revertToWorldDefaults
Syntax
member(whichCastmember).revertToWorldDefaults()
Description
3D command; reverts the properties of the specified 3D cast member to the values stored when
the member was first created. The member’s state property must be 4 (loaded) or -1 (error)
before this command can be used, otherwise a script error will occur.
This command differs from
resetWorld in that the values used are taken from the state of the
member when it was first created rather than from the state of the member when it was first
loaded into memory.
Example
This statement reverts the properties of the cast member named Scene to the values stored when
the member was first created:
member("Scene").revertToWorldDefaults()
See also
resetWorld
rewind()
Syntax
sound(channelNum).rewind()
rewind(sound(channelNum))
Description
Function; interrupts the playback of the current sound in sound channel channelNum and
restarts it at its startTime. If the sound is paused, it remains paused, with the currentTime set to
the
startTime.
Example
This statement restarts playback of the sound cast member playing in sound channel 1 from
the beginning:
sound(1).rewind()
See also
pause() (sound playback), play() (sound), playNext(), queue(), stop() (sound)
rewind sprite
Syntax
sprite(whichFlashOrGIFAnimSprite).rewind()
rewind sprite whichFlashOrGIFAnimSprite
Description
Command; returns a Flash or animated GIF movie sprite to frame 1 when the sprite is stopped or
when it is playing.