📄 qt3_aw510.html
字号:
<tr>
<td valign="top" width="14"><img src="images/tri.gif" width="14" height="10" vspace="2"></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">Authorware stops when it reaches the ending time specified by </font><code>loopBounds</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> or the end of the movie, whichever comes first.</font></td>
</tr>
</table>
<p>
<font face="Geneva, Arial, Helvetica, sans-serif" size="-1">The </font><code>loopBounds</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> property can be tested and set. The default is </font><code>[0,0]</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">.</font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Example</b> </font></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">This sprite script sets the starting and ending times for looping within a QuickTime sprite. Notice that the times are set by specifying the number of seconds, which is then converted to ticks by multiplying by 60.</font><p>
<pre>
SetSpriteProperty(@"QuickTimeIcon", #loopBounds,[(16 * 60),(32 * 60)])
</pre>
<p>
<a name="mask"> </a><br>
<font face="Arial, Helvetica, sans-serif"><b>mask</b></font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Syntax</b> </font></td>
<td valign="top"><code>SetIconProperty(IconID@"IconTitle"</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">, #</font><code>mask</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">,</font><code> IconID@"IconTitle"</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">)</font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Type</b> </font></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">Icon property</font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Description</b> </font></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">This property specifies the black and white (1-bit) contents of a display or interaction icon to be used as a mask for QuickTime media rendered direct to screen. The QuickTime media appears in the areas where the mask's pixels are black. The </font><code>mask</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> property allows you to take advantage of the performance advantages of a direct to screen digital video while playing a QuickTime movie in a non-rectangular area. The </font><code>mask </code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">property has no effect on non-direct to screen sprite icons.</font><p>
<font face="Geneva, Arial, Helvetica, sans-serif" size="-1">Authorware always aligns the upper-left corner of the contents of the mask icon with the upper-left corner of the QuickTime movie sprite. The mask can't be moved and isn't affected by the </font><code>center</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> or </font><code>crop</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> properties of its associated icon.</font><p>
<font face="Geneva, Arial, Helvetica, sans-serif" size="-1">For best results, set a QuickTime icon's </font><code>mask</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> property before any of its sprites appear in the Presentation window. Setting or changing the </font><code>mask</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> property while the sprite appears in the Presentation window can have unpredictable results (for example, the mask might appear as a "freeze frame" of the digital video at the moment the </font><code>mask</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> property took effect).</font><p>
<font face="Geneva, Arial, Helvetica, sans-serif" size="-1">Masking is an advanced feature; you may need to do some experimentation to achieve your goal.</font><p>
<font face="Geneva, Arial, Helvetica, sans-serif" size="-1">The </font><code>mask </code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">property can be tested and set. To remove a mask, set the </font><code>mask </code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">property to </font><code>0</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">.</font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Example</b> </font></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">This script sets a mask for the QuickTime sprite icon named "Peeping Tom" before Authorware begins to draw the sprite.</font><p>
<pre>
SetIconProperty(@"Peeping Tom", #mask, @"Keyhole")
</pre>
</td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Related Property</b> </font></td>
<td valign="top"><code><a href="#directToStage">directToStage</a>, <a href="#invertMask">invertMask</a></code><p>
<br>
<font face="Arial, Helvetica, sans-serif"><b>mediaBusy </b></font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Syntax</b> </font></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">GetSpriteProperty(IconID@"IconTitle", #</font><code>mediaBusy</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">)</font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Type</b> </font></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">Sprite property</font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Description</b> </font></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">This property returns </font><code>TRUE</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> if the specified QuickTime movie is currently playing. The </font><code>mediaBusy</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> property can be tested but not set.</font><p>
<a name="mediaReady"> </a><br>
<font face="Arial, Helvetica, sans-serif"><b>mediaReady </b></font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Syntax</b> </font></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">GetIconProperty(IconID@"IconTitle", #</font><code>mediaReady</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">)</font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Type</b> </font></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">Icon property</font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Description</b> </font></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">This property returns </font><code>TRUE</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> if the specified QuickTime movie is downloaded and ready to play. The </font><code>mediaReady</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> property can be tested but not set.</font><p>
<a name="mostRecentCuePoint"> </a><br>
<font face="Arial, Helvetica, sans-serif"><b>mostRecentCuePoint </b></font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Syntax</b> </font></td>
<td valign="top"><code>GetSpriteProperty(IconID@"IconTitle", #mostRecentCuePoint)</code><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Type</b> </font></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">Sprite property</font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Description</b> </font></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">This property is the number that identifies the most recent cue point passed in the sprite icon. The value is the ordinal number of the cue point. If no cue points have been passed, the value is 0.</font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Related Property</b> </font></td>
<td valign="top"><code><a href="#cuePointNames">cuePointNames</a></code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">, </font><code><a href="#cuePointTimes">cuePointTimes</a></code><p>
<br>
<font face="Arial, Helvetica, sans-serif"><b>mouseLevel</b></font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Syntax</b> </font></td>
<td valign="top"><code>SetSpriteProperty(IconID@"IconTitle"</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">, #</font><code>mouseLevel</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">, </font><code><font color="#666666">value</font></code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">)</font><p>
<pre>
GetSpriteProperty(IconID@"IconTitle", #mouseLevel)
</pre>
</td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Type</b> </font></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">Sprite property</font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Description</b> </font></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">This property controls how Authorware passes mouse clicks on a QuickTime sprite to QuickTime. Without the QuickTime Xtra, Authorware passes mouse clicks only on the QuickTime controller. The ability to pass mouse clicks within the sprite's bounding rectangle can be useful for interactive media such as QuickTime VR. The </font><code><font color="#666666">value</font></code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> parameter can have these values:</font><p>
<code>#controller</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> passes clicks only on the movie controller. This is the standard behavior without the QuickTime Xtra.</font><p>
<code>#all </code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">passes all mouse clicks within the sprite's bounding rectangle.</font><p>
<code>#none</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> passes no mouse clicks.</font><p>
<font face="Geneva, Arial, Helvetica, sans-serif" size="-1">The </font><code>mouseLevel</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> property can be tested and set. The default value is </font><code>#controller</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">.</font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Example</b> </font></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">This script checks to see if the name of the currently executing icon contains the string "QTVR." If it does, it sets the </font><code>mouseLevel</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> to </font><code>#all</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">; otherwise, it sets the </font><code>mouseLevel</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> to </font><code>#none</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">.</font><p>
<pre>
if Find(" QTVR, IconTitle(ExecutingIconID)) then
setSpriteProperty(ExecutingIconID, #mouseLevel, #all)
else
SetSpriteProperty(ExecutingIconID, #mouseLevel, #none)
end if
</pre>
<p>
<br>
<font face="Arial, Helvetica, sans-serif"><b>mRate</b></font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Syntax</b> </font></td>
<td valign="top"><code>SetSpriteProperty(IconID@"IconTitle"</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">, #</font><code>mRate</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">, </font><code><font color="#666666">value</font></code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">)</font><p>
<pre>
GetSpriteProperty(IconID@"IconTitle", #<code>mRate</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">)
</font></pre>
</td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Type</b> </font></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">Sprite property</font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Description</b> </font></td>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">This property determines the rate of playback for the QuickTime movie playing in the specified icon. The </font><code><font color="#666666">value</font></code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> parameter can have these values:</font><p>
<font face="Arial, Helvetica, sans-serif" size="-1"><b>1 is normal forward play </b></font><p>
<font face="Arial, Helvetica, sans-serif" size="-1"><b>-1 is reverse </b></font><p>
<font face="Arial, Helvetica, sans-serif" size="-1"><b>0 is stop </b></font><p>
<font face="Geneva, Arial, Helvetica, sans-serif" size="-1">Higher and lower values are possible. For example, a value of 0.5 causes the digital video to play slower than normal. However, frames may be dropped when the value of </font><code>mRate</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> exceeds 1, depending on the performance of the computer the movie is playing on.</font><p>
<font face="Geneva, Arial, Helvetica, sans-serif" size="-1">The </font><code>mRate</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> property can be tested and set.</font><br> </td>
</tr>
<tr>
<td valign="top" align="right"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><b>Example</b> </font></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -