📄 qt3_aw510.html
字号:
<html>
<head><title>Macromedia Authorware - Using QuickTime Media: Scripting Reference</title>
<script language="Javascript">
function swapImage(imgName,newImg){
if ((navigator.appName == 'Netscape' && parseFloat(navigator.appVersion) >= 3) || (parseFloat(navigator.appVersion) >= 4)){
eval('document.' + imgName + '.src = "' + newImg + '"');
}
}
</script>
</head>
<body link="#333399" vlink="#660033" alink="#000000" bgcolor="#FFFFFF">
<table border="0" cellspacing="0" cellpadding="0" width="95%">
<tr>
<font face="Arial, Helvetica, sans-serif" size="+1"><b>Scripting Reference</b></font><p>
<font face="Geneva, Arial, Helvetica, sans-serif" size="-1">The QuickTime Xtra provides the following new properties and functions to control QuickTime sprite icons and sprites.</font><p>
<br></tr>
<tr>
<td valign="top" align="right"> </td><td valign="top"><font face="Arial, Helvetica, sans-serif"><b>center </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><code>, #</code><code>center,</code><code><font color="#666666">state</font>)</code><p>
<pre>
GetIconProperty(IconID@"IconTitle", #center)
</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">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">The </font><code>center</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> property has a visible effect only when the </font><code>crop</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> property is set to true. The </font><code><font color="#666666">state</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>TRUE</b></font><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> The QuickTime movie is cropped around the center of the movie. </font><p>
<font face="Arial, Helvetica, sans-serif" size="-1"><b>FALSE</b></font><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> The QuickTime movie is cropped from the top left corner of the movie </font><p>
<font face="Geneva, Arial, Helvetica, sans-serif" size="-1">The </font><code>center</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>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">This script sets the setting of the </font><code>center</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> property of a QuickTime movie named "QT3" to </font><code>TRUE</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">:</font><p>
<pre>
SetIconProperty(@"QT3", #crop,TRUE) -- crop must be TRUE
SetIconProperty(@"QT3", #center,TRUE)
</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"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><a href="#crop">crop</a></font><p>
<br>
<font face="Arial, Helvetica, sans-serif"><b>controller </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", #controller, <font color="#666666">state</font>)</code><p>
<pre>
GetIconProperty(IconID@"IconTitle", #controller)
</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">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 shows or hides a QuickTime sprite movie's controller. The </font><code><font color="#666666">state</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>TRUE</b></font><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> The QuickTime movie's controller is visible. </font><p>
<font face="Arial, Helvetica, sans-serif" size="-1"><b>FALSE</b></font><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> The QuickTime movie's controller is hidden. </font><p>
<font face="Geneva, Arial, Helvetica, sans-serif" size="-1">The </font><code>controller</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> property can be tested and set. The QuickTime movie must be set to display direct to screen for the controller to be visible.</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 reverses the current setting of the </font><code>controller</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> property of a QuickTime movie named "Starburst."</font><p>
<pre>
state := GetIconProperty(IconID@"StarBurst", #<code>controller</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">)
SetIconProperty(IconID@"StarBurst", #</font><code>controller</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">, ~state)
</font></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></code><p>
<a name="crop"> </a><br>
<font face="Arial, Helvetica, sans-serif"><b>crop</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", #crop,<font color="#666666">state</font>)</code><p>
<pre>
GetIconProperty(IconID@"IconTitle", #<code>crop</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">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 affects how a QuickTime movie is displayed in the Presentation window. The </font><code><font color="#666666">state</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>TRUE</b></font><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> The QuickTime movie isn't scaled to fit the sprite. It's cropped to fit inside the sprite rectangle.</font><p>
<font face="Arial, Helvetica, sans-serif" size="-1"><b>FALSE</b></font><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> The QuickTime movie is scaled—either stretched or shrunk—to fit the sprite </font><p>
<font face="Geneva, Arial, Helvetica, sans-serif" size="-1">The </font><code>crop</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>
<td valign="top"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">This script sets the setting of the </font><code>crop</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2"> property of a QuickTime movie named "QT3" to </font><code>TRUE</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">:</font><p>
<pre>
SetIconProperty(@"QT3", #crop,TRUE)
</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"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><a href="qt3_aw510.html">center</a>, <a href="qt3_aw510.html">scale</a>, <a href="qt3_aw510.html">translation</a></font><p>
<a name="cuePointNames"> </a><br>
<font face="Arial, Helvetica, sans-serif"><b>cuePointNames </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>GetIconProperty(IconID@"IconTitle", #cuePointNames)</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">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">
<p><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">This property
returns a linear list of named cue points set in the QuickTime movie file.
If there are no cue points in the file, the value returned is </font><code>[]</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">.
Use SoundEdit to insert a cue point in a QuickTime file. SoundEdit uses
the term "marker" to refer to the cue points.</font></p>
<p><font face="Geneva, Arial, Helvetica, sans-serif" size="-1">Newly imported
QuickTime movies have the </font><code>streaming</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">
property set </font><code>TRUE</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">
by default. This means that cue points will be unavailable until the <a href="#streaming"><code>streaming</code></a>
property is set to </font><code>FALSE</code><font face="Geneva, Arial, Helvetica, sans-serif" size="2">.</font><br>
</p>
</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"><font face="Geneva, Arial, Helvetica, sans-serif" size="-1"><a href="#mostRecentCuePoint">mostRecentCuePoint</a></font><p>
<a name="cuePointTimes"> </a><br>
<font face="Arial, Helvetica, sans-serif"><b>cuePointTimes</b></font><br> </td>
</tr>
<tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -