⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xml_file.htm

📁 基于actionscript3.0的flashLoading控件
💻 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>The controlVR XML File </title>
<link href="shares/help.css" rel="stylesheet" type="text/css">
</head>

<body>
<h1>The controlVR XML File</h1>
<p>The .XML file is the most important element of the VR object.</p>
<p>The .XML file stores all the paths of  the images which need to be loaded by the controlVR component. It also determines how all the attributes are set for a specific object like direction, tempo, controlabilty, etc  that is why it will be important for you to correctly create you .XML file. </p>
<p>The controlVR .XML file has two types of tags, namely: VR Tag and IMG Tag. </p>
<h3>The VR Tag </h3>
<p><strong>Syntax : </strong> &lt;vr&gt;...&lt;/vr&gt;</p>
<h4>Description:</h4>
<p>The VR Tag determines how the object and component behaves before and after loading. </p>
<h4>Attribute Specifications
</h4>
  <table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th>Attribute</th>
    <th>Value</th>
    <th>Default</th>
    <th>Description</th>
  </tr>
  <tr>
    <td>activelayer</td>
    <td>[Number]</td>
    <td>1</td>
    <td>The layer that must  be displayed first when object has loaded.</td>
  </tr>
  <tr>
    <td>controlable</td>
    <td>[0|1]</td>
    <td>1</td>
    <td>Sets if the object is controlable(If contralability is set to 0 then you will be unable to control the object with the mouse and keyboard, but you will still be able to control the object with Action Script).</td>
  </tr>
  <tr>
    <td>keyboard</td>
    <td>[0|1]</td>
    <td>1</td>
    <td>Sets if the object is controlable by the keyboard (If keyboard is set to 0 then the object is not keyboard controlable). </td>
  </tr>
  <tr>
    <td>zoom</td>
    <td>[0|1]</td>
    <td>1</td>
    <td>Sets if the object is able to zoom (If zoom is set to 0 then the object is not able to zoom - it will remove the zoomability on the keyboard and mouse). </td>
  </tr>
  <tr>
    <td>direction</td>
    <td>[CW|CCW]</td>
    <td>CW</td>
    <td>Sets if the object is spinning clockwise or counter clockwise when the object is first displayed and rotating is set to 1. </td>
  </tr>
  <tr>
    <td>layers</td>
    <td>[Number]</td>
    <td>1</td>
    <td>The amount of layers in the VR object . This attribute can be left out if you only make use of one layer. </td>
  </tr>
  <tr>
    <td>progress</td>
    <td>[0|1]</td>
    <td>1</td>
    <td>Sets if the loading process is displayed.</td>
  </tr>
  <tr>
    <td>rotating</td>
    <td>[0|1]</td>
    <td>0</td>
    <td>Indicates whether or not the object is rotating on startup.</td>
  </tr>
  <tr>
    <td>tempo</td>
    <td>[num]</td>
    <td>50</td>
    <td>Determines the milliseconds between each image interval on auto rotation. For instance if you need the image interval to be 0.5 second you would set the tempo to 500. </td>
  </tr>
  <tr>
    <td>title</td>
    <td>[Text]</td>
    <td>Null</td>
    <td>The title of the VR object (displayed with the progress  when loading and will not be displayed if left blank or when progress attribute is set to 0).</td>
  </tr>
</table>
<p>&nbsp;</p>
<h3>The IMG Tag</h3>
<p><strong>Syntax : </strong> &lt;img src=&quot;url&quot; /&gt;</p>
<h4>Description:</h4>
<p>The src attribute of the IMG tag determines the URL of a specific image. The URL can be a relative or absolute path. All the image tags must be defined in sequence because they are loaded from top to bottom(Sequentially meaning: From your first image to your last image for a single layer object and from your first image in the first layer to your last image in your last layer for a multiple layer object). </p>
<h4>Attribute Specifications</h4>
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th>Attribute</th>
    <th>Value</th>
    <th>Default</th>
    <th>Description</th>
  </tr>
  <tr>
    <td>src</td>
    <td>Path</td>
    <td>undefined</td>
    <td>The relative or absolute path to the image from the file displaying the component</td>
  </tr>
</table>
<p><strong>Note: If using relative paths</strong><br>
If the .swf file is loaded by an .html file the path of the images should be relative to the .html. If you only make use of a .swf file the path should be relative to the .swf; the path should never be relative to the .xml file. </p>
<p><img src="shares/images/relative.png" width="388" height="293"></p>
<h4>Example 1: </h4>
<p>The following example will load a single layered object into a VR component with 18 images making up the image sequence- </p>
<code>
<pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&gt;
&lt;vr&gt;
  &lt;img src=&quot;image01.jpg&quot; /&gt;
  &lt;img src=&quot;image02.jpg&quot; /&gt;
  &lt;img src=&quot;image03.jpg&quot; /&gt;
  &lt;img src=&quot;image04.jpg&quot; /&gt;
  &lt;img src=&quot;image05.jpg&quot; /&gt;
  &lt;img src=&quot;image06.jpg&quot; /&gt;
  &lt;img src=&quot;image07.jpg&quot; /&gt;
  &lt;img src=&quot;image08.jpg&quot; /&gt;
  &lt;img src=&quot;image09.jpg&quot; /&gt;
  &lt;img src=&quot;image10.jpg&quot; /&gt;
  &lt;img src=&quot;image11.jpg&quot; /&gt;
  &lt;img src=&quot;image12.jpg&quot; /&gt;
  &lt;img src=&quot;image13.jpg&quot; /&gt;
  &lt;img src=&quot;image14.jpg&quot; /&gt;
  &lt;img src=&quot;image15.jpg&quot; /&gt;
  &lt;img src=&quot;image16.jpg&quot; /&gt;
  &lt;img src=&quot;image17.jpg&quot; /&gt;
  &lt;img src=&quot;image18.jpg&quot; /&gt;
&lt;/vr&gt;
</pre>
</code>
<h4>Example 2:</h4>
<p>The following example will load a multiple layered object into a VR component consisting of 3 layers with 18 images per layer making up the image sequence-</p>
<code>
<pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&gt;
&lt;vr layers=&quot;3&quot;&gt;
  &lt;img src=&quot;image01.jpg&quot; /&gt;
  &lt;img src=&quot;image02.jpg&quot; /&gt;
  &lt;img src=&quot;image03.jpg&quot; /&gt;
  &lt;img src=&quot;image04.jpg&quot; /&gt;
  &lt;img src=&quot;image05.jpg&quot; /&gt;
  &lt;img src=&quot;image06.jpg&quot; /&gt;
  &lt;img src=&quot;image07.jpg&quot; /&gt;
  &lt;img src=&quot;image08.jpg&quot; /&gt;
  &lt;img src=&quot;image09.jpg&quot; /&gt;
  &lt;img src=&quot;image10.jpg&quot; /&gt;
  &lt;img src=&quot;image11.jpg&quot; /&gt;
  &lt;img src=&quot;image12.jpg&quot; /&gt;
  &lt;img src=&quot;image13.jpg&quot; /&gt;
  &lt;img src=&quot;image14.jpg&quot; /&gt;
  &lt;img src=&quot;image15.jpg&quot; /&gt;
  &lt;img src=&quot;image16.jpg&quot; /&gt;
  &lt;img src=&quot;image17.jpg&quot; /&gt;
  &lt;img src=&quot;image18.jpg&quot; /&gt;
  &lt;img src=&quot;image19.jpg&quot; /&gt;
  &lt;img src=&quot;image20.jpg&quot; /&gt;
  &lt;img src=&quot;image21.jpg&quot; /&gt;
  &lt;img src=&quot;image22.jpg&quot; /&gt;
  &lt;img src=&quot;image23.jpg&quot; /&gt;
  &lt;img src=&quot;image24.jpg&quot; /&gt;
  &lt;img src=&quot;image25.jpg&quot; /&gt;
  &lt;img src=&quot;image26.jpg&quot; /&gt;
  &lt;img src=&quot;image27.jpg&quot; /&gt;
  &lt;img src=&quot;image28.jpg&quot; /&gt;
  &lt;img src=&quot;image29.jpg&quot; /&gt;
  &lt;img src=&quot;image30.jpg&quot; /&gt;
  &lt;img src=&quot;image31.jpg&quot; /&gt;
  &lt;img src=&quot;image32.jpg&quot; /&gt;
  &lt;img src=&quot;image33.jpg&quot; /&gt;
  &lt;img src=&quot;image34.jpg&quot; /&gt;
  &lt;img src=&quot;image35.jpg&quot; /&gt;
  &lt;img src=&quot;image36.jpg&quot; /&gt;
  &lt;img src=&quot;image37.jpg&quot; /&gt;
  &lt;img src=&quot;image38.jpg&quot; /&gt;
  &lt;img src=&quot;image39.jpg&quot; /&gt;
  &lt;img src=&quot;image40.jpg&quot; /&gt;
  &lt;img src=&quot;image41.jpg&quot; /&gt;
  &lt;img src=&quot;image42.jpg&quot; /&gt;
  &lt;img src=&quot;image43.jpg&quot; /&gt;
  &lt;img src=&quot;image44.jpg&quot; /&gt;
  &lt;img src=&quot;image45.jpg&quot; /&gt;
  &lt;img src=&quot;image46.jpg&quot; /&gt;
  &lt;img src=&quot;image47.jpg&quot; /&gt;
  &lt;img src=&quot;image48.jpg&quot; /&gt;
  &lt;img src=&quot;image49.jpg&quot; /&gt;
  &lt;img src=&quot;image50.jpg&quot; /&gt;
  &lt;img src=&quot;image51.jpg&quot; /&gt;
  &lt;img src=&quot;image52.jpg&quot; /&gt;
  &lt;img src=&quot;image53.jpg&quot; /&gt;
  &lt;img src=&quot;image54.jpg&quot; /&gt;
&lt;/vr&gt;
</pre>
</code>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -