📄 controlvr_class.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 class</title>
<link href="../shares/help.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1>controlVR class</h1>
<p><strong>Inheritance</strong> MovieClip > controlVR</p>
<p>The properties of the controlVR class allows you to manipulate and load VR objects. Setting a property of the controlVR class with ActionScript overrides the parameter of the same name set in the Property inspector, Component inspector or XML attributes that may have been set.</p>
<p><STRONG>Warning:</STRONG></p>
<p>XML files will override any properties that have been set. Therefore change properties only after the object has been loaded.</p>
<h2>Method summary for the controlVR class</h2>
<p>The following table lists method of the controlVR class.</p>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<th>Method</th>
<th>Description</th>
</tr>
<tr>
<td><code><a href="controlvr_loadvr.htm">controlVR.loadVR</a>(<em>url:String</em>):Void</code></td>
<td>Loads a specific XML file which contains the info for a VR object.</td>
</tr>
<tr>
<td bgcolor="#f8f8f8"><code><a href="controlvr_movedown.htm">controlVR.moveDown</a>():Void</code></td>
<td bgcolor="#f8f8f8">Rotate the object Down</td>
</tr>
<tr>
<td><code><a href="controlvr_moveleft.htm">controlVR.moveLeft</a>():Void</code></td>
<td>Rotate the object Counter Clockwise</td>
</tr>
<tr>
<td bgcolor="#f8f8f8"><code><a href="controlvr_moveright.htm">controlVR.moveRight</a>():Void</code></td>
<td bgcolor="#f8f8f8">Rotate the object Clockwise</td>
</tr>
<tr>
<td><code><a href="controlvr_moveup.htm">controlVR.moveUp</a>():Void</code></td>
<td>Rotate the object Up</td>
</tr>
<tr>
<td bgcolor="#f8f8f8"><code><a href="controlvr_setactiveimage.htm">controlVR.setActiveImage</a>(<em>image:Number</em>):Void</code></td>
<td bgcolor="#f8f8f8">Set active image in image array</td>
</tr>
<tr>
<td><code><a href="controlvr_getactiveimage.htm">controlVR.getActiveImage</a>():Number</code></td>
<td>Get active image in image array</td>
</tr>
<tr>
<td bgcolor="#f8f8f8"><code><a href="controlvr_settempo.htm">controlVR.setTempo</a>(<em>tempo:Number</em>):Void</code></td>
<td bgcolor="#f8f8f8">Set the speed of auto rotation</td>
</tr>
<tr>
<td><code><a href="controlvr_spinstart.htm">controlVR.spinStart</a>():Void</code></td>
<td>Start's auto rotate</td>
</tr>
<tr>
<td bgcolor="#f8f8f8"><code><a href="controlvr_spinstop.htm">controlVR.spinStop</a>():Void</code></td>
<td bgcolor="#f8f8f8">Stop's auto rotate</td>
</tr>
<tr>
<td><code><a href="controlvr_zoomin.htm">controlVR.zoomIn</a>():Void</code></td>
<td>Zoom the object in (larger)</td>
</tr>
<tr>
<td bgcolor="#f8f8f8"><code><a href="controlvr_zoomout.htm">controlVR.zoomOut</a>():Void</code></td>
<td bgcolor="#f8f8f8">Zoom the object out (smaller)</td>
</tr>
<tr>
<td><code><a href="controlvr_zoomreset.htm">controlVR.zoomReset</a>():Void</code></td>
<td>Reset Zoom on the object</td>
</tr>
<tr>
<td bgcolor="#f8f8f8"><code><a href="controlvr_givecontrol.htm">controlVR.giveControl</a>():Void</code></td>
<td bgcolor="#f8f8f8">Gives the VR object mouse and keyboard control.</td>
</tr>
<tr>
<td><code><a href="controlvr_removecontrol.htm">controlVR.removeControl</a>():Void</code></td>
<td>Removes the VR object mouse and keyboard control.</td>
</tr>
</table>
<h2>Property summary for the controlVR class</h2>
<p>The following table lists the properties of the controlVR class.</p>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<th>Property</th>
<th>Description</th>
</tr>
<tr>
<td><code><a href="controlvr_width.htm">controlVR.width</a></code></td>
<td>Read-only; Returns the width of the current VR Object </td>
</tr>
<tr>
<td bgcolor="#f8f8f8"><code><a href="controlvr_height.htm">controlVR.height</a></code></td>
<td bgcolor="#f8f8f8">Read-only; Returns the height of the current VR Object</td>
</tr>
<tr>
<td><code><a href="controlvr_imagexcount.htm">controlVR.imageXCount</a></code></td>
<td>Read-only; Returns the amount of images per layer of the current VR Object</td>
</tr>
<tr>
<td bgcolor="#f8f8f8"><code><a href="controlvr_imageycount.htm">controlVR.imageYCount</a></code></td>
<td bgcolor="#f8f8f8">Read-only; Returns the amount of layers of the current VR Object</td>
</tr>
<tr>
<td><code><a href="controlvr_imagecount.htm">controlVR.imageCount</a></code></td>
<td>Read-only; Returns the total number of images of the current VR Object</td>
</tr>
<tr>
<td bgcolor="#f8f8f8"><code><a href="controlvr_title.htm">controlVR.title</a></code></td>
<td bgcolor="#f8f8f8">Read-only; Returns the title of the current VR Object</td>
</tr>
</table>
<p> </p>
<h2>Event handler summary for the controlVR class</h2>
<p>The following table lists event handler of the ControlVR class.</p>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<th>Event handler</th>
<th>Description</th>
</tr>
<tr>
<td><code><a href="controlvr_onloaderror.htm">controlVR.onLoadError</a></code></td>
<td>Invoked when a error occurs </td>
</tr>
<tr>
<td bgcolor="#f8f8f8"><code><a href="controlvr_oncomplete.htm">controlVR.onComplete</a></code></td>
<td bgcolor="#f8f8f8">Invoked when all the files in the VR object were loaded without any errors.</td>
</tr>
</table>
<p> </p>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -