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

📄 advanced2.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>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {	color: #003366;
	font-weight: bold;
}
.style2 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
}
.underline {	text-decoration: underline;
}
.style3 {
	font-size: 24px;
	font-weight: bold;
}
.style16 {
	color: #009933;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
}
.mainlink {	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: bold;
	color: #000080;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
.style4 {color: #000000}
-->
</style>
</head>

<body>
<table width="95%"  border="0">
  <tr>
    <td><h2 class="style2 style3"><span style='font-family:Verdana'>Using the 3D Plane with external files </span></h2>
      <p class="style2"><span style=''>1. Start a new Flash MX movie and save it under the name <span class="style1"> 'scroller3d.fla'</span>.</span></p>
      <p class="style2"><span style=''>2. Create a new MovieClip and give it a name and linkage name, for example, <span class="style1">'mc2'</span>.</span></p>
      <p class="style2"><span style=''>3. Add this code to the first frame of <span class="style1">'mc2'</span> movie:</span></p>
      <p class="style16">this.createEmptyMovieClip(&quot;holder&quot;, 1); //create a holder in which to load the external file<br>
  System.security.allowDomain(&quot;www.flashloaded.com&quot;); //use this to prevent security warnings in Flash MX 2004<br>
  holder.loadMovie(&quot;http://www.flashloaded.com/products/ultimatescroller/demo.swf&quot;); //load the external file <br>
  holder._x = -385/2; //align it to the center: width/2<br>
  holder._y = -225/2; //height/2</p>
      <p class="style2"><span style="">Any content can be loaded from external files and be made into 3D. For example: swf, jpg, an flv containing graphics, animation, video, audio or navigation.</span></p>
      <p class="style2"><span style=''>4. Go back to the main timeline and drag an instance of the <span class="style1">3DPlane</span> from the Components Panel onto the stage.</span></p>
      <p class="style2"><span style=''>5. Test your movie (ctrl-enter) to create an swf which will create the <span class="style1">'mc2'</span> linkage for advanced live preview.</span></p>
      <p class="style2"><span style="">6. Enter the linkage name of the target movieclip in the content property of 3DPlane component (<span class="style1">'mc2'</span>).</span></p>
      <p class="style2"><span style="">You should now see something like this:<br>
  (Note: you need an Internet connection to view this external file). </span></p>
      <p class="style2"><span style=''> <span style=''><span style=''><img src="images/image21.gif" width="399" height="303"></span></span></span> </p>
      <p class="style2"><span style="">7. Test your movie and check that it works correctly. </span></p>
      <p class="style2">
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="410" height="410">
          <param name="movie" value="images/image22.swf">
          <param name="quality" value="high">
          <embed src="images/image22.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="410" height="410"></embed>
        </object>
      </p>
      <p class="style2"><span style="">You may notice that in the above example, if you try to interact with the content of the actual target movie, for example, in this case, you may try scroll the content, the scrollable content and the <span class="style1">3DPlane</span> rotate together, making it difficult to control. See the section <a href="advanced3.htm" target="_self"><span class="style4">&quot;</span><span class="mainlink">Customizing the mouse behaviour and active area</span><span class="style4">&quot;</span></a><span class="style4"> f</span>or the solution for this. </span></p>
      <p class="style2">&nbsp;</p>
    <h4><span style='font-family:Verdana'></span></h4></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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