controlvr_imagexcount.htm

来自「基于actionscript3.0的flashLoading控件」· HTM 代码 · 共 35 行

HTM
35
字号
<!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.imageXCount</title>
<link href="../shares/help.css" rel="stylesheet" type="text/css">
</head>

<body>
<h1><a href="controlvr_class.htm">controlVR</a>.imageXCount</h1>
<H4>Availability</H4>
<p>Flash Player 7 </p>
<H4>Edition</H4>
<p>Flash MX 2004.</p>
<H4>Usage</H4>
<pre>controlVR.imageXCount</pre>
<H4>Description</H4>
<p>This is a read only property, imageXCount will return the number of images per layer. The imageXCount is determined by the total amount of images divided by the specified layer count in the .XML file. </p>
<H4>Example</H4>
<p>The following example you will have to give your controlVR instance a name <strong>vr_mc </strong>and place the following code in the main timeline. The following code will trace all the variables of the new object. </p>
<code><pre>
vr_mc.onComplete = function (){
	trace("The Object width :" + vr_mc.width);
	trace("The Object height :" + vr_mc.height);
	trace("The Object images per layer :" + vr_mc.imageXCount);
	trace("The Object Layer Count :" + vr_mc.imageYCount);
	trace("The Object total Images :" + vr_mc.imageCount);
	trace("The Object title :" + vr_mc.title);
}</pre></code>
<h1></h1>
<p>&nbsp; </p>
</body>
</html>

⌨️ 快捷键说明

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