/docs/org/tractionas3/load/BytesTotalPrefetcher.html
HTML | 316 lines | 297 code | 10 blank | 9 comment | 0 complexity | 5a97b821aa3d98a14073ec1eac12283e MD5 | raw file
- <!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=UTF-8">
- <link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
- <link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
- <meta content="BytesTotalPrefetcher,org.tractionas3.load.BytesTotalPrefetcher,prefetchComplete,cancel,destruct,getByteWaste,getPrefetchedBytesTotal" name="keywords">
- <title>org.tractionas3.load.BytesTotalPrefetcher</title>
- </head>
- <body>
- <script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
- <!--
- asdocTitle = 'BytesTotalPrefetcher - TractionAS3 Framework Documentation';
- var baseRef = '../../../';
- window.onload = configPage;
- --></script>
- <table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
- <tr>
- <td align="left" class="titleTableTitle">TractionAS3 Framework Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All Packages</a> | <a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All Classes</a> | <a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a> | <a href="../../../index.html?org/tractionas3/load/BytesTotalPrefetcher.html&org/tractionas3/load/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
- </tr>
- <tr class="titleTableRow2">
- <td align="left" id="subTitle" class="titleTableSubTitle">Class BytesTotalPrefetcher</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a> | <a href="#methodSummary">Methods</a></td>
- </tr>
- <tr class="titleTableRow3">
- <td colspan="2"> </td>
- </tr>
- </table>
- <script type="text/javascript" language="javascript">
- <!--
- if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class BytesTotalPrefetcher"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
- --></script>
- <div class="MainContent">
- <table cellspacing="0" cellpadding="0" class="classHeaderTable">
- <tr>
- <td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">org.tractionas3.load</a></td>
- </tr>
- <tr>
- <td class="classHeaderTableLabel">Class</td><td class="classSignature">public class BytesTotalPrefetcher</td>
- </tr>
- <tr>
- <td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">BytesTotalPrefetcher <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> <a href="../events/WeakEventDispatcher.html">WeakEventDispatcher</a> <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> <a href="../events/ClearableEventDispatcher.html">ClearableEventDispatcher</a> <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> flash.events.EventDispatcher</td>
- </tr>
- <tr>
- <td class="classHeaderTableLabel">Implements</td><td><a href="../core/interfaces/ICancelable.html">ICancelable</a>, <a href="../core/interfaces/ICoreInterface.html">ICoreInterface</a></td>
- </tr>
- </table>
- <p></p>
- BytesTotalPrefetcher is a class used to determine a files size before loading it.
-
- <p>
- Prefetching file size involves a second load process, which is immeadiately cancelled as soon as the file
- size is detected. Any loaded data (and reference to it) is discarded. The amount of time a prefetch takes is not determined by the connection speed, but rather
- the latency.
- </p>
-
- <p></p>
- <p>
- <span class="classHeaderTableLabel">See also</span>
- </p>
- <div class="seeAlso">
- <a href="../load/BytesTotalPrefetcher.html#byteWaste" target="">byteWaste</a>
- </div>
- <br>
- <hr>
- </div>
- <a name="propertySummary"></a>
- <div class="summarySection">
- <div class="summaryTableTitle">Public Properties</div>
- <table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
- <tr>
- <th> </th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined by</th>
- </tr>
- <tr class="">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#prefetchComplete">prefetchComplete</a> : Boolean<div class="summaryTableDescription">[read-only]
- Indicates whether the prefetch is complete.</div>
- </td><td class="summaryTableOwnerCol">BytesTotalPrefetcher</td>
- </tr>
- </table>
- </div>
- <a name="methodSummary"></a>
- <div class="summarySection">
- <div class="summaryTableTitle">Public Methods</div>
- <div class="showHideLinks">
- <div class="hideInheritedMethod" id="hideInheritedMethod">
- <a onclick="javascript:setInheritedVisible(false,'Method');" href="#methodSummary" class="showHideLink"><img src="../../../images/expanded.gif" class="showHideLinkImage"> Hide Inherited Public Methods</a>
- </div>
- <div class="showInheritedMethod" id="showInheritedMethod">
- <a onclick="javascript:setInheritedVisible(true,'Method');" href="#methodSummary" class="showHideLink"><img src="../../../images/collapsed.gif" class="showHideLinkImage"> Show Inherited Public Methods</a>
- </div>
- </div>
- <table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
- <tr>
- <th> </th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined by</th>
- </tr>
- <tr class="">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="#BytesTotalPrefetcher()">BytesTotalPrefetcher</a>(request:URLRequest)</div>
- <div class="summaryTableDescription">
- BytesTotalPrefetcher Constructor
-
- </div>
- </td><td class="summaryTableOwnerCol">BytesTotalPrefetcher</td>
- </tr>
- <tr class="hideInheritedMethod">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="../events/WeakEventDispatcher.html#addEventListener()">addEventListener</a>(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = true):void</div>
- <div class="summaryTableDescription">
- Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.</div>
- </td><td class="summaryTableOwnerCol"><a href="../events/WeakEventDispatcher.html">WeakEventDispatcher</a></td>
- </tr>
- <tr class="">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="#cancel()">cancel</a>():void</div>
- <div class="summaryTableDescription">
- Cancels the prefetch.</div>
- </td><td class="summaryTableOwnerCol">BytesTotalPrefetcher</td>
- </tr>
- <tr class="">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="#destruct()">destruct</a>(deepDestruct:Boolean = false):void</div>
- <div class="summaryTableDescription">
-
- Destructs implementing instance of specified properties.</div>
- </td><td class="summaryTableOwnerCol">BytesTotalPrefetcher</td>
- </tr>
- <tr class="hideInheritedMethod">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="../events/WeakEventDispatcher.html#dispatchEvent()">dispatchEvent</a>(e:Event):Boolean</div>
- <div class="summaryTableDescription">
- Dispatches an event into the event flow, <i>only</i> if event property <code>hasEventListener</code> or <code>bubbles</code> are <code>true</code>.</div>
- </td><td class="summaryTableOwnerCol"><a href="../events/WeakEventDispatcher.html">WeakEventDispatcher</a></td>
- </tr>
- <tr class="">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="#getByteWaste()">getByteWaste</a>():uint</div>
- <div class="summaryTableDescription">
- Returns the number of excess loaded bytes caused by the prefetch.</div>
- </td><td class="summaryTableOwnerCol">BytesTotalPrefetcher</td>
- </tr>
- <tr class="">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="#getPrefetchedBytesTotal()">getPrefetchedBytesTotal</a>():uint</div>
- <div class="summaryTableDescription">
- Returns the prefetched file size of target file.</div>
- </td><td class="summaryTableOwnerCol">BytesTotalPrefetcher</td>
- </tr>
- <tr class="hideInheritedMethod">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="../events/ClearableEventDispatcher.html#listDestructableProperties()">listDestructableProperties</a>():Array</div>
- <div class="summaryTableDescription">
-
- Specifies an array of strings representing properties that are to be
- nullified or reset upon destruction.</div>
- </td><td class="summaryTableOwnerCol"><a href="../events/ClearableEventDispatcher.html">ClearableEventDispatcher</a></td>
- </tr>
- <tr class="hideInheritedMethod">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="../events/ClearableEventDispatcher.html#removeAllEventListeners()">removeAllEventListeners</a>():void</div>
- <div class="summaryTableDescription">
-
- Removes all event listeners from the IClearableEventDispatcher object.</div>
- </td><td class="summaryTableOwnerCol"><a href="../events/ClearableEventDispatcher.html">ClearableEventDispatcher</a></td>
- </tr>
- <tr class="hideInheritedMethod">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="../events/ClearableEventDispatcher.html#removeEventListener()">removeEventListener</a>(type:String, listener:Function, useCapture:Boolean = false):void</div>
- <div class="summaryTableDescription">
- Removes a listener from the EventDispatcher object.</div>
- </td><td class="summaryTableOwnerCol"><a href="../events/ClearableEventDispatcher.html">ClearableEventDispatcher</a></td>
- </tr>
- <tr class="hideInheritedMethod">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="../events/ClearableEventDispatcher.html#toString()">toString</a>():String</div>
- <div class="summaryTableDescription">
- Returns the string representation of the specified object.</div>
- </td><td class="summaryTableOwnerCol"><a href="../events/ClearableEventDispatcher.html">ClearableEventDispatcher</a></td>
- </tr>
- </table>
- </div>
- <script type="text/javascript" language="javascript">
- <!--
- showHideInherited();
- --></script>
- <div class="MainContent">
- <a name="propertyDetail"></a>
- <div class="detailSectionHeader">Property detail</div>
- <a name="prefetchComplete"></a>
- <table cellspacing="0" cellpadding="0" class="detailHeader">
- <tr>
- <td class="detailHeaderName">prefetchComplete</td><td class="detailHeaderType">property</td>
- </tr>
- </table>
- <div class="detailBody">
- <code>prefetchComplete:Boolean</code> [read-only]<p>
- Indicates whether the prefetch is complete.
- </p><span class="label">Implementation</span>
- <br>
- <code> public function get prefetchComplete():Boolean</code>
- <br>
- </div>
- <a name="constructorDetail"></a>
- <div class="detailSectionHeader">Constructor detail</div>
- <a name="BytesTotalPrefetcher()"></a>
- <table cellspacing="0" cellpadding="0" class="detailHeader">
- <tr>
- <td class="detailHeaderName">BytesTotalPrefetcher</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
- </tr>
- </table>
- <div class="detailBody">
- <code>public function BytesTotalPrefetcher(request:URLRequest)</code><p>
- BytesTotalPrefetcher Constructor
-
- </p><span class="label">Parameters</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20px"></td><td><code><span class="label">request</span>:URLRequest</code> — URLRequest defining the URL of the file to load.
- </td>
- </tr>
- </table>
- </div>
- <a name="methodDetail"></a>
- <div class="detailSectionHeader">Method detail</div>
- <a name="cancel()"></a>
- <table cellspacing="0" cellpadding="0" class="detailHeader">
- <tr>
- <td class="detailHeaderName">cancel</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
- </tr>
- </table>
- <div class="detailBody">
- <code>public function cancel():void</code><p>
- Cancels the prefetch.
- </p></div>
- <a name="destruct()"></a>
- <table cellspacing="0" cellpadding="0" class="detailHeader">
- <tr>
- <td class="detailHeaderName">destruct</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
- </tr>
- </table>
- <div class="detailBody">
- <code>public override function destruct(deepDestruct:Boolean = false):void</code><p>
-
- Destructs implementing instance of specified properties.
- <p />
- <b>Note:</b> You can override this method to remove unused references in your custom class.
-
- </p><span class="label">Parameters</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20px"></td><td><code><span class="label">deepDestruct</span>:Boolean</code> (default = <code>false</code>)<code></code></td>
- </tr>
- </table>
- </div>
- <a name="getByteWaste()"></a>
- <table cellspacing="0" cellpadding="0" class="detailHeader">
- <tr>
- <td class="detailHeaderName">getByteWaste</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
- </tr>
- </table>
- <div class="detailBody">
- <code>public function getByteWaste():uint</code><p>
- Returns the number of excess loaded bytes caused by the prefetch.
- </p><p>
- Note that the file size is fetched as soon as any load progress is detected, no matter how small.
- This means that the amount of excess loaded bytes is in direct proportion to the connection speed
- between client and server. A slower connection will load less excess amount of data than a fast connection.
- </p>
- <p></p>
- <span class="label">Returns</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20"></td><td><code>uint</code> — Excess loaded amount of data in bytes.
- </td>
- </tr>
- </table>
- </div>
- <a name="getPrefetchedBytesTotal()"></a>
- <table cellspacing="0" cellpadding="0" class="detailHeader">
- <tr>
- <td class="detailHeaderName">getPrefetchedBytesTotal</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
- </tr>
- </table>
- <div class="detailBody">
- <code>public function getPrefetchedBytesTotal():uint</code><p>
- Returns the prefetched file size of target file.
-
- </p><p></p>
- <span class="label">Returns</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20"></td><td><code>uint</code> — File size in bytes.
- </td>
- </tr>
- </table>
- </div>
- <br>
- <br>
- <hr>
- <br>
- <p></p>
- <center class="copyright">
- </center>
- </div>
- </body>
- </html>
- <!-- -->