📄 reference.html
字号:
<h4>Example</h4>
<pre>myAdvancedLoaderPro.onComplete = function()
{
trace("content loaded!");
}</pre>
<p> </p>
<p> </p>
<h1><a name="onFailure" id="onFailure"></a>AdvancedLoaderPro.onFailure</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.onFailure = function()</pre>
<h4>Description </h4>
<p>Function. Called if the loading of the current content fails.</p>
<h4>Example</h4>
<pre>myAdvancedLoaderPro.onFailure = function()
{
trace("error!");
}</pre>
<p> </p>
<p> </p>
<h1><a name="onProgress" id="onProgress"></a>AdvancedLoaderPro.onProgress</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.onProgress = function()</pre>
<h4>Description </h4>
<p>Function. Called everytime the loaded amount of the component's current content changes.</p>
<h4>Example</h4>
<pre>myAdvancedLoaderPro.onProgress = function(total:Number, loaded:Number, percent:Number)
{
progressToDisplay = loaded + " of " + total + " ( " + percent + " % )";
}</pre>
<p> </p>
<p> </p>
<h1><a name="onUnloaded" id="onUnloaded"></a>AdvancedLoaderPro.onUnloaded</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.onUnloaded = function()</pre>
<h4>Description </h4>
<p>Function. Called when the unloading of the current content is completed.</p>
<h4>Example</h4>
<pre>myAdvancedLoaderPro.onUnloaded = function()
{
trace("content removed!");
}</pre>
<p> </p>
<p> </p>
<h1><a name="overlapEffects" id="overlapEffects"></a>AdvancedLoaderPro.overlapEffects </h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.overlapEffects:Boolean</pre>
<h4>Description </h4>
<p> Boolean. If set to true onComplete and onUnload Effects will play simultaneously, otherwise the onComplete Effect will not play until the onUnload Effect has finished.</p>
<h4>Example </h4>
<pre>myAdvancedLoaderPro.overlapEffects = true;
trace(myAdvancedLoaderPro.overlapEffects);</pre>
<p> </p>
<p> </p>
<h1><a name="percentLoaded" id="percentLoaded"></a>AdvancedLoaderPro.percentLoaded</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.percentLoaded:Number</pre>
<h4>Description </h4>
<p>Number (read only). Returns the amount of content loaded as a percentage.</p>
<h4>Example</h4>
<pre>trace(myAdvancedLoaderPro.percentLoaded);</pre>
<p> </p>
<p> </p>
<h1><a name="PrelColor" id="PrelColor"></a>AdvancedLoaderPro.PrelColor</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.PrelColor:Number</pre>
<h4>Description </h4>
<p>Number. Specifies the color of the preloader.</p>
<h4>Example</h4>
<pre>myAdvancedLoaderPro.PrelColor = 0xFF0099;
trace(myAdvancedLoaderPro.PrelColor);</pre>
<p> </p>
<p> </p>
<h1><a name="PrelTextColor" id="PrelTextColor"></a>AdvancedLoaderPro.PrelTextColor </h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.PrelTextColor:Number</pre>
<h4>Description </h4>
<p>Number. Specifies the color of the preloader text.</p>
<h4>Example</h4>
<pre>myAdvancedLoaderPro.PrelTextColor = 0xFF0099;
trace(myAdvancedLoaderPro.PrelTextColor);</pre>
<p> </p>
<p> </p>
<h1><a name="PrelWidth" id="PrelWidth"></a>AdvancedLoaderPro.PrelWidth</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.PrelWidth:Number</pre>
<h4>Description </h4>
<p>Number. Specifies the width of the preloader bar. The maximum value is the width of the component.</p>
<h4>Example</h4>
<pre>myAdvancedLoaderPro.PrelWidth = 100;
trace(myAdvancedLoaderPro.PrelWidth);</pre>
<p> </p>
<p> </p>
<h1><a name="previousImage" id="previousImage"></a>AdvancedLoaderPro.previousImage</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.previousImage()</pre>
<h4>Description </h4>
<p>Method. Advances the slideshow one image backwards.</p>
<h4>Example</h4>
<pre>myAdvancedLoaderPro.previousImage();</pre>
<p> </p>
<p> </p>
<h1><a name="print" id="print"></a>AdvancedLoaderPro.print </h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.print()</pre>
<h4>Description </h4>
<p>Method. This method may be used to print the content of the component.</p>
<h4>Example</h4>
<pre>myAdvancedLoaderPro.print();</pre>
<p> </p>
<p> </p>
<h1><a name="randomDisplay" id="randomDisplay"></a>AdvancedLoaderPro.randomDisplay</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.randomDisplay:Boolean</pre>
<h4>Description </h4>
<p> Boolean. If set to true the slideshow is displayed in a random order, otherwise the slideshow is displayed in the order specified.</p>
<h4>Example</h4>
<pre>myAdvancedLoaderPro.randomDisplay = true;
trace(myAdvancedLoaderPro.randomDisplay);</pre>
<p> </p>
<p> </p>
<h1><a name="ROverEffect" id="ROverEffect"></a>AdvancedLoaderPro.ROverEffect</h1>
<h4>Availability</h4>
<p>Flash Player 7</p>
<h4>Usage</h4>
<pre>AdvancedLoaderPro.ROverEffect:String</pre>
<h4>Description </h4>
<p>String. Specifies the effect to be performed on rollover.</p>
<h4>Example</h4>
<pre>myAdvancedLoaderPro.ROverEffect = "Eased";
trace(myAdvancedLoaderPro.ROverEffect);</pre>
<p> </p>
<p> </p>
<h1><a name="ROverZoom" id="ROverZoom"></a>AdvancedLoaderPro.ROverZoom</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.ROverZoom:Number</pre>
<h4>Description </h4>
<p>Number. Specifies the value as a percentage to scale the image to on rollover.</p>
<h4>Example</h4>
<pre>myAdvancedLoaderPro.ROverZoom = 120;
trace(myAdvancedLoaderPro.ROverZoom);</pre>
<p> </p>
<p> </p>
<h1><a name="ScaleButton" id="ScaleButton"></a>AdvancedLoaderPro.ScaleButton</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.ScaleButton:Boolean</pre>
<h4>Description </h4>
<p>Boolean. If set to true the hitarea of the component will scale along with the image.</p>
<h4>Example</h4>
<pre>myAdvancedLoaderPro.ScaleButton = true;
trace(myAdvancedLoaderPro.ScaleButton);</pre>
<p> </p>
<p> </p>
<h1><a name="ScaleContent" id="ScaleContent"></a>AdvancedLoaderPro.ScaleContent</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.ScaleContent:String</pre>
<h4>Description </h4>
<p>String. Specifies the method that should be used to scale the loaded image to fit the area of the component.</p>
<h4>Example</h4>
<pre>myAdvancedLoaderPro.ScaleContent = "Scale to fit";
trace(myAdvancedLoaderPro.ScaleContent);</pre>
<p> </p>
<p> </p>
<h1><a name="ShowPreloader" id="ShowPreloader"></a>AdvancedLoaderPro.ShowPreloader</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.ShowPreloader:Boolean</pre>
<h4>Description </h4>
<p>Boolean. If true the preloader will be displayed when required, otherwise the preloader will never appear.</p>
<h4>Example</h4>
<pre>myAdvancedLoaderPro.ShowPreloader = true;
trace(myAdvancedLoaderPro.ShowPreloader);</pre>
<p> </p>
<p> </p>
<h1><a name="ShowPreloadText" id="ShowPreloadText"></a>AdvancedLoaderPro.ShowPreloadText</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.ShowPreloadText:Boolean</pre>
<h4>Description </h4>
<p>Boolean. If true the percentage of loading will be displayed in the preloader, otherwise only the preloader bar will be used.</p>
<h4>Example</h4>
<pre>myAdvancedLoaderPro.ShowPreloadText = true;
trace(myAdvancedLoaderPro.ShowPreloadText);</pre>
<p> </p>
<p> </p>
<h1><a name="slideShowTime" id="slideShowTime"></a>AdvancedLoaderPro.slideShowTime</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.slideShowTime:Number</pre>
<h4>Description </h4>
<p>Number. The number of seconds for the image to be displayed before moving to the next image.</p>
<h4>Example</h4>
<pre>myAdvancedLoaderPro.slideShowTime = 5;
trace(myAdvancedLoaderPro.slideShowTime);</pre>
<p> </p>
<p> </p>
<h1><a name="source" id="source"></a>AdvancedLoaderPro.source</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.source:String</pre>
<h4>Description </h4>
<p>String. Returns a reference to the currently loaded content's source.</p>
<h4>Example</h4>
<pre>trace(myAdvancedLoaderPro.source);</pre>
<p> </p>
<p> </p>
<h1><a name="src" id="src"></a>AdvancedLoaderPro.src</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>myAdvancedLoaderPro.src:Array</pre>
<h4>Description </h4>
<p>Array. A list of images to be used for the slideshow. This list is ignored if using the autofeeder or XML options.</p>
<h4>Example </h4>
<pre>myAdvancedLoaderPro.src = ["image1.jpg", "image2.jpg", "image3.jpg"];
trace(myAdvancedLoaderPro.src);</pre>
<p> </p>
<p> </p>
<h1><a name="target" id="target"></a>AdvancedLoaderPro.target</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.target:String</pre>
<h4>Description </h4>
<p>String. The link target of the component specifying which window the link should be loaded into when the component is clicked.</p>
<h4>Example</h4>
<pre>myAdvancedLoaderPro.target = "_blank";
trace(myAdvancedLoaderPro.target);</pre>
<p> </p>
<p> </p>
<h1><a name="UnloadEffect" id="UnloadEffect"></a>AdvancedLoaderPro.UnloadEffect</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.UnloadEffect:String</pre>
<h4>Description </h4>
<p>String. Name of the effect to be performed when an image is unloaded.</p>
<h4>Example </h4>
<pre>myAdvancedLoaderPro.UnloadEffect = "Drop Down";
trace(myAdvancedLoaderPro.UnloadEffect);</pre>
<p> </p>
<p> </p>
<h1><a name="XMLFile" id="XMLFile"></a>AdvancedLoaderPro.XMLFile</h1>
<h4>Availability </h4>
<p>Flash Player 7 </p>
<h4>Usage </h4>
<pre>AdvancedLoaderPro.XMLFile:String</pre>
<h4>Description </h4>
<p>String. Filename of the XML file to be used to create the slideshow. This value is ignored if using the autofeeder option.</p>
<h4>Example </h4>
<pre>myAdvancedLoaderPro.XMLFile = "slideshow.xml";
trace(myAdvancedLoaderPro.XMLFile);</pre>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -