📄 controlvr_loadvr.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.loadVR()</title>
<link href="../shares/help.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1><a href="controlvr_class.htm">controlVR</a>.loadVR()</h1>
<H4>Availability</H4>
<p>Flash Player 7 </p>
<H4>Edition</H4>
<p>Flash MX 2004.</p>
<H4>Usage</H4>
<pre>controlVR.loadVR(<em>url:String</em>)</pre>
<H4>Parameters</H4>
<p><em>url </em>The url to the controlVR XML file. </p>
<H4>Returns</H4>
<p>Returns nothing. </p>
<H4>Description</H4>
<p>Passing the url of a controlVR xml file to the loadVR method will load a completely new VRobject into the component. </p>
<p>Passing a blank url to the loadVR method will completely remove the current VRobject.</p>
<p><strong>Note: If using relative paths</strong><br>
If the .swf file is loaded by an .html file the path of the xml should be relative to the .html. If you only make use of a .swf file the path should be relative to the .swf.</p>
<p><img src="../shares/images/relative.png" width="388" height="293"></p>
<H4>Example</H4>
<p>The first example willl be placed on a button and load a complete VRojbect from the designated XML url:</p>
<code><pre>
on(press){
vr_mc.loadVR("http://www.mysite.com/objects/name.xml")
}</pre></code>
<p>The second example willl completely remove a VRobject: </p>
<code><pre>
on(press){
vr_mc.loadVR()
}</pre></code>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -