📄 tutorial1.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>Tutorial 1 : Single Layer VRobject</title>
<link href="shares/help.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1>Tutorial 1 : single layer VRobject</h1>
<p>In the following tutorial we will be creating a single layer VRobject. A single layer object is an object which has rotation but no tilt. </p>
<h4>Creating the .XML file: </h4>
<p>The first thing we need to do is to create the conrolVR .XML file. For this we will need normal text editor like Notepad or any other XML editor like Dreamweaver. </p>
<p>To create the .XML file you will need to create a new notepad document and save it as <strong>single.xml. </strong>Open the single.xml file with notepad or your favourite XML editor. Copy the code below and paste it into the single.xml file, save the document and close it.</p>
<p> </p>
<code><pre><?xml version="1.0" encoding="iso-8859-1"?>
<vr layers="1" rotating="1" title="Single Layer VR object">
<img src="vr181.jpg" />
<img src="vr182.jpg" />
<img src="vr183.jpg" />
<img src="vr184.jpg" />
<img src="vr185.jpg" />
<img src="vr186.jpg" />
<img src="vr187.jpg" />
<img src="vr188.jpg" />
<img src="vr189.jpg" />
<img src="vr190.jpg" />
<img src="vr191.jpg" />
<img src="vr192.jpg" />
<img src="vr193.jpg" />
<img src="vr194.jpg" />
<img src="vr195.jpg" />
<img src="vr196.jpg" />
<img src="vr197.jpg" />
<img src="vr198.jpg" />
<img src="vr199.jpg" />
<img src="vr200.jpg" />
<img src="vr201.jpg" />
<img src="vr202.jpg" />
<img src="vr203.jpg" />
<img src="vr204.jpg" />
<img src="vr205.jpg" />
<img src="vr206.jpg" />
<img src="vr207.jpg" />
<img src="vr208.jpg" />
<img src="vr209.jpg" />
<img src="vr210.jpg" />
<img src="vr211.jpg" />
<img src="vr212.jpg" />
<img src="vr213.jpg" />
<img src="vr214.jpg" />
<img src="vr215.jpg" />
<img src="vr216.jpg" />
</vr>
</pre></code>
<h4>Explanation of XML code</h4>
<p>The first line is the XML declaration - defines the XML version and the character encoding used in the document. </p>
<p>On line two we have the VR tag with three attributes; layers, rotating and title.</p>
<ul>
<li>The layer attribute is set to 1 because we only have one layer in our object. This attribute can be left out due to the default being set to 1. </li>
<li>The rotating attribute is set to 1. This means that the object will start rotating as soon as it has been loaded. </li>
<li>The title attribute is the title of the object (It is like giving someone a name to be referred by). The title attribute will be displayed in the progress bar while the object is loading.</li>
</ul>
<p>From line 3 to 38 we have the image tags with their source attributes that specify where to find the images to load, and on the last line we have the closing tag for the VRtag.</p>
<p>Also see the documentation on the <a href="xml_file.htm">.XML file</a>. </p>
<p> </p>
<h4>Creating the flash .SWF file: </h4>
<p> </p>
<ol>
<li>Open flash if it is not already open</li>
<li>Select File --> New --> Flash document</li>
<li>Open the Components Panel (If using Flash 7 Window ->Development panels -> Components and if using Flash 8 - Window -> Components if not already open).</li>
<li>Find the component in the component panel. You should then either click and drag the component onto the stage or simply double click on the component.</li>
<li>Once you have determined where you would like to place your component you will need to specify where to obtain .xml file. You will do this by selecting parameter in the properties bar. You will then need to specify the relative or absolute path to the .xml file parameter.</li>
<li>Then you can test your movie by selecting control --> Test movie.</li>
</ol>
<p>Congratulations - you have completed your first tutorial!</p>
<p> </p>
<h4><br>
</h4>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -