User Guide
469
pausedAtStart (RealMedia)
Syntax
sprite(whichSprite).pausedAtStart
member(whichCastmember).pausedAtStart
Description
RealMedia sprite or cast member property; allows you to get or set whether a RealMedia stream on
the Stage automatically begins to play when buffering is complete (FALSE or 0) or remains paused
(
TRUE or 1). This property can be set to an expression that evaluates to TRUE or FALSE. Integer values
other than 1 or 0 are treated as
TRUE. The default setting for this property is FALSE. You can set this
property to TRUE by selecting Paused in the graphical view of the Property inspector.
If this property is set to
FALSE, the user must click the Play button in the RealMedia viewer
(or a button you have created for this purpose in your movie), or you must call the Lingo play
command to play the sprite when buffering is complete.
This property only affects score-based playback and does not affect playback in the
RealMedia viewer.
Examples
The following examples show that the pausedAtStart property of sprite 2 and the cast member
Real is set to
FALSE, which means that the RealMedia stream will automatically begin to play
once buffering is complete.
put sprite(2).pausedAtStart
-- 0
put member("Real").pausedAtStart
-- 0
The following examples set the pausedAtStart property for sprite 2 and the cast member Real to
TRUE, which means the RealMedia stream will not begin to play unless the play command is
called.
sprite(2).pausedAtStart = TRUE
member("Real").pausedAtStart = TRUE
The following example uses the pausedAtStart property to buffer a RealMedia sprite off the
Stage, and then play it on the Stage once the buffering is complete. In this example, the
RealMedia member has its
pausedAtStart property set to TRUE. An instance of this member is
positioned off the Stage, in sprite channel 1. The following frame script should be placed in the
sprite span:
on exitFrame me
if sprite(1).state > 3 then -- check to see if buffering is complete
sprite(1).locH = 162
sprite(1).locV = 118
sprite(1).play() -- position and play the sprite
end if
end
The RealMedia sprite will buffer off the Stage and then appear on the Stage and play immediately
when the buffering is complete.