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

📄 tutorial2.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>Tutorial 2 : Multi Layer VRobject</title>
<link href="shares/help.css" rel="stylesheet" type="text/css">
</head>

<body>
<h1>Tutorial 2 : multi layer VRobject</h1>
<p>In the following tutorial we will be creating a multi layer VRobject. A multi layer object is an object which only has tilt</p>
<h4>Creating the .XML file: </h4>
<p>The first thing we need to do is to create the controlVR .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>multi.xml. </strong>Open the multi.xml file with notepad or your favourite XML editor. Copy the code below and paste it into the multi.xml file, save the document and close it.</p>
<p>&nbsp;</p>
<code><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&gt;
&lt;vr layers=&quot;11&quot; activelayer=&quot;6&quot; rotating=&quot;0&quot; title=&quot;Multi Layer VR object&quot;&gt;
&lt;img src=&quot;vr001.jpg&quot; /&gt;
&lt;img src=&quot;vr037.jpg&quot; /&gt;
&lt;img src=&quot;vr073.jpg&quot; /&gt;
&lt;img src=&quot;vr109.jpg&quot; /&gt;
&lt;img src=&quot;vr145.jpg&quot; /&gt;
&lt;img src=&quot;vr181.jpg&quot; /&gt;
&lt;img src=&quot;vr217.jpg&quot; /&gt;
&lt;img src=&quot;vr253.jpg&quot; /&gt;
&lt;img src=&quot;vr289.jpg&quot; /&gt;
&lt;img src=&quot;vr325.jpg&quot; /&gt;
&lt;img src=&quot;vr361.jpg&quot; /&gt;
&lt;/vr&gt;</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 11 becuase we only have 11 tilt layers in our object. </li>
  <li>The rotating attribute is set to 0. This attribute is set to 0 as a multi layer single column VRobject is not able to rotate. </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 13 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>&nbsp;</p>
<h4>Creating the flash .SWF file: </h4>
<p>&nbsp;</p>
<ol>
  <li>Open flash if it is not already open</li>
  <li>Select File --&gt; New --&gt; Flash document</li>
  <li>Open the Components Panel (If using Flash 7 Window -&gt;Development panels -&gt; Components and if using Flash 8 - Window -&gt; 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 --&gt; Test movie.</li>
</ol>
<p>Congratulations - you have completed your second tutorial!</p>
<p>&nbsp;</p>
<h4><br>
</h4>
<p>&nbsp; </p>
</body>
</html>

⌨️ 快捷键说明

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