📄 controlvr_setactiveimage.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>controlVR.setActiveImage()</title>
<link href="../shares/help.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1><a href="controlvr_class.htm">controlVR</a>.setActiveImage()</h1>
<H4>Availability</H4>
<p>Flash Player 7 </p>
<H4>Edition</H4>
<p>Flash MX 2004.</p>
<H4>Usage</H4>
<pre>controlVR.setActiveImage(<em>image:Number</em>)</pre>
<H4>Parameters</H4>
<p><em>image</em> The image which you want to display. The images are numbered in the order which they were placed in the .XML file, therefore the first images will be 1 and so forth. </p>
<H4>Returns</H4>
<p>Nothing.</p>
<H4>Description</H4>
<p>Method; sets an image to the displayed image. You should only pass number values to the controlVR.setActiveImage(). If the number is higher than the highest image in the array, the last image will be used. IF the number is smaller or a negative number the first image will be used. </p>
<H4>Example</H4>
<p>The following example code can be placed in a button instance and will stop the object if it is spinning and make image number 10 the displayed image.</p>
<p>Note: Only positive values can be passed to the image parameter </p>
<code><pre>
on(release){
vr_mc.spinStop();
vr_mc.setActiveImage(10);
}
</pre></code>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -